2
## Author: Lasse Collin
4
## This file has been put into the public domain.
5
## You can do whatever you want with this file.
14
lib_LTLIBRARIES = liblzma.la
16
liblzma_la_CPPFLAGS = \
17
-I$(top_srcdir)/src/liblzma/api \
18
-I$(top_srcdir)/src/liblzma/common \
19
-I$(top_srcdir)/src/liblzma/check \
20
-I$(top_srcdir)/src/liblzma/lz \
21
-I$(top_srcdir)/src/liblzma/rangecoder \
22
-I$(top_srcdir)/src/liblzma/lzma \
23
-I$(top_srcdir)/src/liblzma/subblock \
24
-I$(top_srcdir)/src/liblzma/delta \
25
-I$(top_srcdir)/src/liblzma/simple \
26
-I$(top_srcdir)/src/common
27
liblzma_la_LDFLAGS = -no-undefined -version-info 0:0:0
29
include $(srcdir)/common/Makefile.inc
30
include $(srcdir)/check/Makefile.inc
33
include $(srcdir)/lz/Makefile.inc
37
include $(srcdir)/lzma/Makefile.inc
38
include $(srcdir)/rangecoder/Makefile.inc
41
if COND_FILTER_SUBBLOCK
42
include $(srcdir)/subblock/Makefile.inc
46
include $(srcdir)/delta/Makefile.inc
50
include $(srcdir)/simple/Makefile.inc
54
## Windows-specific stuff
56
# Windows resource compiler support. libtool knows what to do with .rc
57
# files, but Automake (<= 1.11 at least) doesn't know.
59
# We want the resource file only in shared liblzma. To avoid linking it into
60
# static liblzma, we overwrite the static object file with an object file
61
# compiled from empty input. Note that GNU-specific features are OK here,
62
# because on Windows we are compiled with the GNU toolchain.
64
$(LIBTOOL) --mode=compile $(RC) $(DEFS) $(DEFAULT_INCLUDES) \
65
$(INCLUDES) $(liblzma_la_CPPFLAGS) $(CPPFLAGS) $(RCFLAGS) \
68
$(COMPILE) -c empty.c -o $(*D)/$(*F).o
70
# Remove ordinals from the generated .def file. People must link by name,
71
# not by ordinal, because no one is going to track the ordinal numbers.
72
liblzma.def: liblzma.la liblzma.def.in
73
sed 's/ \+@ *[0-9]\+//' liblzma.def.in > liblzma.def
75
# Creating liblzma.def.in is a side effect of linking the library.
76
liblzma.def.in: liblzma.la
79
CLEANFILES += liblzma.def liblzma.def.in empty.c
80
liblzma_la_SOURCES += liblzma_w32res.rc
81
liblzma_la_LDFLAGS += -Xlinker --output-def -Xlinker liblzma.def.in
83
## liblzma.def.in is created only when building shared liblzma, so don't
84
## try to create liblzma.def when not building shared liblzma.
86
doc_DATA += liblzma.def
92
pkgconfigdir = $(libdir)/pkgconfig
93
pkgconfig_DATA = liblzma.pc
94
EXTRA_DIST += liblzma.pc.in