GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / tools / misc / xz / src / liblzma / Makefile.am
blob7b3d69ae9f460b6e5b691bb438e566063ca47b3f
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 ##
8 SUBDIRS = api
10 EXTRA_DIST =
11 CLEANFILES =
12 doc_DATA =
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/delta \
24         -I$(top_srcdir)/src/liblzma/simple \
25         -I$(top_srcdir)/src/common \
26         -DTUKLIB_SYMBOL_PREFIX=lzma_
27 liblzma_la_LDFLAGS = -no-undefined -version-info 5:3:0
29 include $(srcdir)/common/Makefile.inc
30 include $(srcdir)/check/Makefile.inc
32 if COND_FILTER_LZ
33 include $(srcdir)/lz/Makefile.inc
34 endif
36 if COND_FILTER_LZMA1
37 include $(srcdir)/lzma/Makefile.inc
38 include $(srcdir)/rangecoder/Makefile.inc
39 endif
41 if COND_FILTER_DELTA
42 include $(srcdir)/delta/Makefile.inc
43 endif
45 if COND_FILTER_SIMPLE
46 include $(srcdir)/simple/Makefile.inc
47 endif
50 ## Windows-specific stuff
52 # Windows resource compiler support. libtool knows what to do with .rc
53 # files, but Automake (<= 1.11 at least) doesn't know.
55 # We want the resource file only in shared liblzma. To avoid linking it into
56 # static liblzma, we overwrite the static object file with an object file
57 # compiled from empty input. Note that GNU-specific features are OK here,
58 # because on Windows we are compiled with the GNU toolchain.
59 .rc.lo:
60         $(LIBTOOL) --mode=compile $(RC) $(DEFS) $(DEFAULT_INCLUDES) \
61                 $(INCLUDES) $(liblzma_la_CPPFLAGS) $(CPPFLAGS) $(RCFLAGS) \
62                 -i $< -o $@
63         echo > empty.c
64         $(COMPILE) -c empty.c -o $(*D)/$(*F).o
66 # Remove ordinals from the generated .def file. People must link by name,
67 # not by ordinal, because no one is going to track the ordinal numbers.
68 liblzma.def: liblzma.la liblzma.def.in
69         sed 's/ \+@ *[0-9]\+//' liblzma.def.in > liblzma.def
71 # Creating liblzma.def.in is a side effect of linking the library.
72 liblzma.def.in: liblzma.la
74 if COND_W32
75 CLEANFILES += liblzma.def liblzma.def.in empty.c
76 liblzma_la_SOURCES += liblzma_w32res.rc
77 liblzma_la_LDFLAGS += -Xlinker --output-def -Xlinker liblzma.def.in
79 ## liblzma.def.in is created only when building shared liblzma, so don't
80 ## try to create liblzma.def when not building shared liblzma.
81 if COND_SHARED
82 doc_DATA += liblzma.def
83 endif
84 endif
87 ## pkg-config
88 pkgconfigdir = $(libdir)/pkgconfig
89 pkgconfig_DATA = liblzma.pc
90 EXTRA_DIST += liblzma.pc.in