]> icculus.org git repositories - icculus/xz.git/blob - src/liblzma/Makefile.am
Show both elapsed time and estimated remaining time in xz -v.
[icculus/xz.git] / src / liblzma / Makefile.am
1 ##
2 ## Author: Lasse Collin
3 ##
4 ## This file has been put into the public domain.
5 ## You can do whatever you want with this file.
6 ##
7
8 SUBDIRS = api
9
10 EXTRA_DIST =
11 CLEANFILES =
12 doc_DATA =
13
14 lib_LTLIBRARIES = liblzma.la
15 liblzma_la_SOURCES = $(top_srcdir)/src/common/tuklib_physmem.c
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         -DTUKLIB_SYMBOL_PREFIX=lzma_
28 liblzma_la_LDFLAGS = -no-undefined -version-info 0:0:0
29
30 include $(srcdir)/common/Makefile.inc
31 include $(srcdir)/check/Makefile.inc
32
33 if COND_FILTER_LZ
34 include $(srcdir)/lz/Makefile.inc
35 endif
36
37 if COND_FILTER_LZMA1
38 include $(srcdir)/lzma/Makefile.inc
39 include $(srcdir)/rangecoder/Makefile.inc
40 endif
41
42 if COND_FILTER_SUBBLOCK
43 include $(srcdir)/subblock/Makefile.inc
44 endif
45
46 if COND_FILTER_DELTA
47 include $(srcdir)/delta/Makefile.inc
48 endif
49
50 if COND_FILTER_SIMPLE
51 include $(srcdir)/simple/Makefile.inc
52 endif
53
54
55 ## Windows-specific stuff
56
57 # Windows resource compiler support. libtool knows what to do with .rc
58 # files, but Automake (<= 1.11 at least) doesn't know.
59 #
60 # We want the resource file only in shared liblzma. To avoid linking it into
61 # static liblzma, we overwrite the static object file with an object file
62 # compiled from empty input. Note that GNU-specific features are OK here,
63 # because on Windows we are compiled with the GNU toolchain.
64 .rc.lo:
65         $(LIBTOOL) --mode=compile $(RC) $(DEFS) $(DEFAULT_INCLUDES) \
66                 $(INCLUDES) $(liblzma_la_CPPFLAGS) $(CPPFLAGS) $(RCFLAGS) \
67                 -i $< -o $@
68         echo > empty.c
69         $(COMPILE) -c empty.c -o $(*D)/$(*F).o
70
71 # Remove ordinals from the generated .def file. People must link by name,
72 # not by ordinal, because no one is going to track the ordinal numbers.
73 liblzma.def: liblzma.la liblzma.def.in
74         sed 's/ \+@ *[0-9]\+//' liblzma.def.in > liblzma.def
75
76 # Creating liblzma.def.in is a side effect of linking the library.
77 liblzma.def.in: liblzma.la
78
79 if COND_W32
80 CLEANFILES += liblzma.def liblzma.def.in empty.c
81 liblzma_la_SOURCES += liblzma_w32res.rc
82 liblzma_la_LDFLAGS += -Xlinker --output-def -Xlinker liblzma.def.in
83
84 ## liblzma.def.in is created only when building shared liblzma, so don't
85 ## try to create liblzma.def when not building shared liblzma.
86 if COND_SHARED
87 doc_DATA += liblzma.def
88 endif
89 endif
90
91
92 ## pkg-config
93 pkgconfigdir = $(libdir)/pkgconfig
94 pkgconfig_DATA = liblzma.pc
95 EXTRA_DIST += liblzma.pc.in