2011-02-26 14:17:29 +01:00
|
|
|
MAINTAINERCLEANFILES = Makefile.in
|
|
|
|
|
|
2019-11-25 15:44:46 +01:00
|
|
|
# Update -D
|
2012-03-15 01:16:57 +01:00
|
|
|
AM_CFLAGS = \
|
|
|
|
|
-D_REENTRANT \
|
|
|
|
|
-I@top_builddir@ \
|
|
|
|
|
-I@top_srcdir@
|
|
|
|
|
|
2011-02-26 14:17:29 +01:00
|
|
|
ASM_S =
|
2019-11-25 15:44:46 +01:00
|
|
|
ASM_7z =
|
|
|
|
|
C_S =
|
2011-02-26 14:17:29 +01:00
|
|
|
if USE_ASM
|
2019-11-25 15:44:46 +01:00
|
|
|
ASM_7z += 7zCrcOpt_asm
|
2020-11-14 23:30:28 +01:00
|
|
|
ASM_S += @abs_top_srcdir@/lzma/ASM/x86/$(ASM_7z).asm
|
2019-11-25 15:44:46 +01:00
|
|
|
C_S += 7zCrcT8.c
|
2011-02-26 14:17:29 +01:00
|
|
|
else
|
2019-12-02 19:30:26 +01:00
|
|
|
C_S += 7zCrc.c
|
2011-02-26 14:17:29 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
noinst_LTLIBRARIES = liblzma.la
|
2019-11-25 15:44:46 +01:00
|
|
|
# need separate variable for ASM so that make will compile later
|
|
|
|
|
# to prevent an error even if -j## is used.
|
2011-02-26 14:17:29 +01:00
|
|
|
liblzma_la_SOURCES = \
|
2019-11-25 15:44:46 +01:00
|
|
|
$(C_S) \
|
2020-11-14 23:30:28 +01:00
|
|
|
7zCrc.h \
|
2011-09-14 00:07:46 +02:00
|
|
|
LzmaDec.h \
|
|
|
|
|
LzmaEnc.h \
|
|
|
|
|
LzFind.c \
|
|
|
|
|
LzFind.h \
|
|
|
|
|
LzFindMt.c \
|
|
|
|
|
LzFindMt.h \
|
|
|
|
|
LzmaDec.c \
|
|
|
|
|
LzmaEnc.c \
|
|
|
|
|
LzmaLib.c \
|
|
|
|
|
LzmaLib.h \
|
|
|
|
|
Alloc.c \
|
|
|
|
|
Alloc.h \
|
|
|
|
|
Threads.c \
|
|
|
|
|
Threads.h \
|
|
|
|
|
Types.h \
|
|
|
|
|
LzHash.h \
|
|
|
|
|
windows.h \
|
|
|
|
|
basetyps.h \
|
|
|
|
|
MyWindows.h \
|
2021-02-15 12:45:37 +01:00
|
|
|
MyGuidDef.h
|
2011-02-26 14:17:29 +01:00
|
|
|
|
2019-11-25 15:44:46 +01:00
|
|
|
## hack to force asm compilation and to trick libtool with .lo file
|
|
|
|
|
if USE_ASM
|
|
|
|
|
liblzma_la_LIBADD = $(ASM_7z).lo
|
2011-02-26 14:17:29 +01:00
|
|
|
|
2019-11-25 15:44:46 +01:00
|
|
|
7ZIPASMLOFILE := \
|
|
|
|
|
\# $(ASM_7z).lo - a libtool object file\
|
|
|
|
|
\n\# Generated by libtool -- hack to allow asm linking\
|
|
|
|
|
\n\# Peter Hyman\
|
|
|
|
|
\npic_object='.libs/$(ASM_7z).o'\
|
2025-02-06 16:53:48 +01:00
|
|
|
\nnon_pic_object='$(ASM_7z).o'\
|
|
|
|
|
\n
|
2019-11-25 15:44:46 +01:00
|
|
|
|
|
|
|
|
$(ASM_7z).lo: $(ASM_S)
|
|
|
|
|
$(ASM_PROG) $(ASM_OPT) -o $(ASM_7z).o $(ASM_S)
|
2020-05-22 18:42:19 +02:00
|
|
|
mkdir -p .libs
|
2019-11-25 15:44:46 +01:00
|
|
|
cp $(ASM_7z).o .libs/
|
2025-02-06 16:53:48 +01:00
|
|
|
@printf "$(7ZIPASMLOFILE)" > $(ASM_7z).lo
|
2019-11-25 15:44:46 +01:00
|
|
|
endif
|