tools/llvm: Do not build with symbols
[minix3.git] / external / public-domain / xz / lib / Makefile
bloba5d16d386d16de3048d2c58313a4a4b845945487
1 # $NetBSD: Makefile,v 1.3 2010/11/09 23:07:09 joerg Exp $
3 LIB= lzma
4 USE_SHLIBDIR= yes
5 NOLINT= yes
7 .include <bsd.init.mk>
9 # There are two different lzma.h files.
10 # Copy public version to distinguish them.
11 pub-lzma.h: ${XZSRCDIR}/src/liblzma/api/lzma.h
12 ${_MKTARGET_CREATE}
13 rm -f ${.TARGET}
14 ${TOOL_CAT} ${XZSRCDIR}/src/liblzma/api/lzma.h > ${.TARGET}
15 CLEANFILES+= pub-lzma.h
16 INCS= pub-lzma.h
17 INCSDIR_pub-lzma.h= /usr/include
18 INCSNAME_pub-lzma.h= lzma.h
20 .PATH: ${XZSRCDIR}/src/liblzma/api/lzma
21 INCS+= base.h bcj.h block.h check.h container.h delta.h \
22 filter.h hardware.h index.h index_hash.h lzma.h stream_flags.h \
23 version.h vli.h
25 INCSDIR= /usr/include/lzma
27 LDFLAGS+= -Wl,-z,defs
29 CPPFLAGS+= -I${XZSRCDIR}/src/liblzma/check
30 CPPFLAGS+= -I${XZSRCDIR}/src/liblzma/common
31 CPPFLAGS+= -I${XZSRCDIR}/src/liblzma/delta
32 CPPFLAGS+= -I${XZSRCDIR}/src/liblzma/lz
33 CPPFLAGS+= -I${XZSRCDIR}/src/liblzma/lzma
34 CPPFLAGS+= -I${XZSRCDIR}/src/liblzma/rangecoder
35 CPPFLAGS+= -I${XZSRCDIR}/src/liblzma/simple
36 CPPFLAGS+= -DTUKLIB_SYMBOL_PREFIX=lzma_
37 CPPFLAGS+= -DNETBSD_NATIVE_SHA256
39 .PATH: ${XZSRCDIR}/src/common
40 SRCS+= tuklib_physmem.c
42 .PATH: ${XZSRCDIR}/src/liblzma/check
43 SRCS+= check.c crc32_table.c crc64_table.c
44 SRCS+= crc32_fast.c crc64_fast.c
46 .PATH: ${XZSRCDIR}/src/liblzma/common
47 SRCS+= common.c block_util.c easy_preset.c filter_common.c \
48 hardware_physmem.c index.c \
49 stream_flags_common.c vli_size.c \
50 alone_encoder.c block_buffer_encoder.c block_encoder.c \
51 block_header_encoder.c easy_buffer_encoder.c easy_encoder.c \
52 easy_encoder_memusage.c filter_buffer_encoder.c \
53 filter_encoder.c filter_flags_encoder.c index_encoder.c \
54 stream_buffer_encoder.c stream_encoder.c stream_flags_encoder.c \
55 vli_encoder.c \
56 alone_decoder.c auto_decoder.c block_buffer_decoder.c \
57 block_decoder.c block_header_decoder.c easy_decoder_memusage.c \
58 filter_buffer_decoder.c filter_decoder.c filter_flags_decoder.c \
59 index_decoder.c index_hash.c stream_buffer_decoder.c \
60 stream_decoder.c stream_flags_decoder.c vli_decoder.c
62 .PATH: ${XZSRCDIR}/src/liblzma/delta
63 SRCS+= delta_common.c delta_encoder.c delta_decoder.c
65 .PATH: ${XZSRCDIR}/src/liblzma/lz
66 SRCS+= lz_decoder.c lz_encoder.c lz_encoder_mf.c
68 .PATH: ${XZSRCDIR}/src/liblzma/lzma
69 SRCS+= lzma_encoder.c lzma_encoder_presets.c \
70 lzma_encoder_optimum_fast.c lzma_encoder_optimum_normal.c \
71 lzma_decoder.c lzma2_encoder.c lzma2_decoder.c \
72 fastpos_table.c
74 .PATH: ${XZSRCDIR}/src/liblzma/rangecoder
75 SRCS+= price_table.c
77 .PATH: ${XZSRCDIR}/src/liblzma/simple
78 SRCS+= simple_coder.c simple_encoder.c simple_decoder.c \
79 arm.c armthumb.c ia64.c powerpc.c sparc.c x86.c
81 liblzma.pc: ${XZSRCDIR}/src/liblzma/liblzma.pc.in
82 ${_MKTARGET_CREATE}
83 rm -f ${.TARGET}
84 ${TOOL_SED} \
85 -e 's,@prefix@,/usr,' \
86 -e 's,@exec_prefix@,/usr,' \
87 -e 's,@libdir@,/usr/lib,' \
88 -e 's,@includedir@,/usr/include,' \
89 -e 's,@PACKAGE_HOMEPAGE@,${XZHOMEPAGE:Q},' \
90 -e 's,@PACKAGE_VERSION@,${XZVERSION:Q},' \
91 -e 's,@PTHREAD_CFLAGS@ @PTHREAD_LIBS@,,' \
92 < ${XZSRCDIR}/src/liblzma/liblzma.pc.in \
93 > ${.TARGET}.tmp && \
94 mv -f ${.TARGET}.tmp ${.TARGET}
96 CLEANFILES+= liblzma.pc
98 .include <bsd.lib.mk>