kernel/ath_hal: Add missing header to fix build with -Wundef.
[dragonfly.git] / lib / liblzma / Makefile
blobbcc6418ee186ca8f2de39bef96e032cf7e32be6f
1 LIB= lzma
2 LZMADIR= ${.CURDIR}/../../contrib/xz/src/liblzma
4 .PATH: ${LZMADIR}/api/lzma
5 MAININCS= ../lzma.h
6 LZMAINCS= base.h \
7 bcj.h \
8 block.h \
9 check.h \
10 container.h \
11 delta.h \
12 filter.h \
13 hardware.h \
14 index.h \
15 index_hash.h \
16 lzma12.h \
17 stream_flags.h \
18 version.h \
19 vli.h
20 LZMAINCSDIR= ${INCLUDEDIR}/lzma
21 INCSGROUPS= MAININCS LZMAINCS
23 .PATH: ${LZMADIR}/../common
24 SRCS+= tuklib_physmem.c tuklib_cpucores.c
26 .PATH: ${LZMADIR}/common
27 SRCS+= common.c \
28 block_util.c \
29 easy_preset.c \
30 filter_common.c \
31 hardware_physmem.c \
32 hardware_cputhreads.c \
33 index.c \
34 stream_flags_common.c \
35 vli_size.c \
36 alone_encoder.c \
37 block_buffer_encoder.c \
38 block_encoder.c \
39 block_header_encoder.c \
40 easy_buffer_encoder.c \
41 easy_encoder.c \
42 easy_encoder_memusage.c \
43 filter_buffer_encoder.c \
44 filter_encoder.c \
45 filter_flags_encoder.c \
46 index_encoder.c \
47 stream_buffer_encoder.c \
48 stream_encoder.c \
49 stream_flags_encoder.c \
50 vli_encoder.c \
51 alone_decoder.c \
52 auto_decoder.c \
53 block_buffer_decoder.c \
54 block_decoder.c \
55 block_header_decoder.c \
56 easy_decoder_memusage.c \
57 filter_buffer_decoder.c \
58 filter_decoder.c \
59 filter_flags_decoder.c \
60 index_decoder.c \
61 index_hash.c \
62 stream_buffer_decoder.c \
63 stream_decoder.c \
64 stream_flags_decoder.c \
65 stream_encoder_mt.c \
66 vli_decoder.c \
67 outqueue.c
69 .PATH: ${LZMADIR}/check
70 SRCS+= check.c \
71 crc32_table.c \
72 crc64_table.c \
73 sha256.c
75 # For x86_64 (other arch could have their own versions)
76 SRCS+= crc32_fast.c crc64_fast.c
78 .PATH: ${LZMADIR}/lz
79 SRCS+= lz_encoder.c \
80 lz_encoder_mf.c \
81 lz_decoder.c
83 .PATH: ${LZMADIR}/lzma
84 SRCS+= lzma_encoder.c \
85 lzma_encoder_presets.c \
86 lzma_encoder_optimum_fast.c \
87 lzma_encoder_optimum_normal.c \
88 fastpos_table.c \
89 lzma_decoder.c \
90 lzma2_encoder.c \
91 lzma2_decoder.c
93 .PATH: ${LZMADIR}/rangecoder
94 SRCS+= price_table.c
96 .PATH: ${LZMADIR}/delta
97 SRCS+= delta_common.c \
98 delta_encoder.c \
99 delta_decoder.c
101 .PATH: ${LZMADIR}/simple
102 SRCS+= simple_coder.c \
103 simple_encoder.c \
104 simple_decoder.c \
105 x86.c \
106 powerpc.c \
107 ia64.c \
108 arm.c \
109 armthumb.c \
110 sparc.c
112 WARNS?= 3
114 CFLAGS+= -DHAVE_CONFIG_H -DTUKLIB_SYMBOL_PREFIX=lzma_ \
115 -I${.CURDIR} \
116 -I${LZMADIR}/api \
117 -I${LZMADIR}/common \
118 -I${LZMADIR}/check \
119 -I${LZMADIR}/lz \
120 -I${LZMADIR}/rangecoder \
121 -I${LZMADIR}/lzma \
122 -I${LZMADIR}/delta \
123 -I${LZMADIR}/simple \
124 -I${LZMADIR}/../common
126 VERSION_DEF= ${.CURDIR}/Versions.def
127 SYMBOL_MAPS= ${.CURDIR}/Symbol.map
129 LDADD= -lpthread
130 DPADD= ${LIBPTHREAD}
132 .include <bsd.lib.mk>