VirtualBox

source: vbox/trunk/src/libs/liblzma-5.4.1/Makefile.am@ 107044

Last change on this file since 107044 was 98730, checked in by vboxsync, 21 months ago

libs/liblzma-5.4.1: Export to OSE, bugref:10254

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.5 KB
Line 
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
8SUBDIRS = api
9
10EXTRA_DIST =
11CLEANFILES =
12doc_DATA =
13
14lib_LTLIBRARIES = liblzma.la
15liblzma_la_SOURCES =
16liblzma_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_
27liblzma_la_LDFLAGS = -no-undefined -version-info 9:1:4
28
29EXTRA_DIST += liblzma_generic.map liblzma_linux.map validate_map.sh
30if COND_SYMVERS_GENERIC
31liblzma_la_LDFLAGS += \
32 -Wl,--version-script=$(top_srcdir)/src/liblzma/liblzma_generic.map
33endif
34if COND_SYMVERS_LINUX
35liblzma_la_LDFLAGS += \
36 -Wl,--version-script=$(top_srcdir)/src/liblzma/liblzma_linux.map
37endif
38
39liblzma_la_SOURCES += ../common/tuklib_physmem.c
40
41if COND_THREADS
42liblzma_la_SOURCES += ../common/tuklib_cpucores.c
43endif
44
45include $(srcdir)/common/Makefile.inc
46include $(srcdir)/check/Makefile.inc
47
48if COND_FILTER_LZ
49include $(srcdir)/lz/Makefile.inc
50endif
51
52if COND_FILTER_LZMA1
53include $(srcdir)/lzma/Makefile.inc
54include $(srcdir)/rangecoder/Makefile.inc
55endif
56
57if COND_FILTER_DELTA
58include $(srcdir)/delta/Makefile.inc
59endif
60
61if COND_FILTER_SIMPLE
62include $(srcdir)/simple/Makefile.inc
63endif
64
65
66## Windows-specific stuff
67
68# Windows resource compiler support. libtool knows what to do with .rc
69# files, but Automake (<= 1.11 at least) doesn't know.
70#
71# We want the resource file only in shared liblzma. To avoid linking it into
72# static liblzma, we overwrite the static object file with an object file
73# compiled from empty input. Note that GNU-specific features are OK here,
74# because on Windows we are compiled with the GNU toolchain.
75.rc.lo:
76 $(LIBTOOL) --mode=compile $(RC) $(DEFS) $(DEFAULT_INCLUDES) \
77 $(INCLUDES) $(liblzma_la_CPPFLAGS) $(CPPFLAGS) $(RCFLAGS) \
78 -i $< -o $@
79 echo > empty.c
80 $(COMPILE) -c empty.c -o $(*D)/$(*F).o
81
82# Remove ordinals from the generated .def file. People must link by name,
83# not by ordinal, because no one is going to track the ordinal numbers.
84liblzma.def: liblzma.la liblzma.def.in
85 sed 's/ \+@ *[0-9]\+//' liblzma.def.in > liblzma.def
86
87# Creating liblzma.def.in is a side effect of linking the library.
88liblzma.def.in: liblzma.la
89
90if COND_W32
91CLEANFILES += liblzma.def liblzma.def.in empty.c
92liblzma_la_SOURCES += liblzma_w32res.rc
93liblzma_la_LDFLAGS += -Xlinker --output-def -Xlinker liblzma.def.in
94
95## liblzma.def.in is created only when building shared liblzma, so don't
96## try to create liblzma.def when not building shared liblzma.
97if COND_SHARED
98doc_DATA += liblzma.def
99endif
100endif
101
102
103## pkg-config
104pkgconfigdir = $(libdir)/pkgconfig
105pkgconfig_DATA = liblzma.pc
106EXTRA_DIST += liblzma.pc.in
107
108pc_verbose = $(pc_verbose_@AM_V@)
109pc_verbose_ = $(pc_verbose_@AM_DEFAULT_V@)
110pc_verbose_0 = @echo " PC " $@;
111
112liblzma.pc: $(srcdir)/liblzma.pc.in
113 $(AM_V_at)rm -f $@
114 $(pc_verbose)sed \
115 -e 's,@prefix[@],$(prefix),g' \
116 -e 's,@exec_prefix[@],$(exec_prefix),g' \
117 -e 's,@libdir[@],$(libdir),g' \
118 -e 's,@includedir[@],$(includedir),g' \
119 -e 's,@PACKAGE_URL[@],$(PACKAGE_URL),g' \
120 -e 's,@PACKAGE_VERSION[@],$(PACKAGE_VERSION),g' \
121 -e 's,@PTHREAD_CFLAGS[@],$(PTHREAD_CFLAGS),g' \
122 -e 's,@LIBS[@],$(LIBS),g' \
123 < $(srcdir)/liblzma.pc.in > $@ || { rm -f $@; exit 1; }
124
125clean-local:
126 rm -f liblzma.pc
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette