1LIB= lzma 2LZMADIR= ${.CURDIR}/../../contrib/xz/src/liblzma 3 4.PATH: ${LZMADIR}/api/lzma 5MAININCS= ../lzma.h 6LZMAINCS= 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 lzma.h \ 17 stream_flags.h \ 18 version.h \ 19 vli.h 20LZMAINCSDIR= ${INCLUDEDIR}/lzma 21INCSGROUPS= MAININCS LZMAINCS 22 23.PATH: ${LZMADIR}/../common 24SRCS+= tuklib_physmem.c 25 26.PATH: ${LZMADIR}/common 27SRCS+= common.c \ 28 block_util.c \ 29 easy_preset.c \ 30 filter_common.c \ 31 hardware_physmem.c \ 32 index.c \ 33 stream_flags_common.c \ 34 vli_size.c \ 35 alone_encoder.c \ 36 block_buffer_encoder.c \ 37 block_encoder.c \ 38 block_header_encoder.c \ 39 easy_buffer_encoder.c \ 40 easy_encoder.c \ 41 easy_encoder_memusage.c \ 42 filter_buffer_encoder.c \ 43 filter_encoder.c \ 44 filter_flags_encoder.c \ 45 index_encoder.c \ 46 stream_buffer_encoder.c \ 47 stream_encoder.c \ 48 stream_flags_encoder.c \ 49 vli_encoder.c \ 50 alone_decoder.c \ 51 auto_decoder.c \ 52 block_buffer_decoder.c \ 53 block_decoder.c \ 54 block_header_decoder.c \ 55 easy_decoder_memusage.c \ 56 filter_buffer_decoder.c \ 57 filter_decoder.c \ 58 filter_flags_decoder.c \ 59 index_decoder.c \ 60 index_hash.c \ 61 stream_buffer_decoder.c \ 62 stream_decoder.c \ 63 stream_flags_decoder.c \ 64 vli_decoder.c 65 66.PATH: ${LZMADIR}/check 67SRCS+= check.c \ 68 crc32_table.c \ 69 crc64_table.c \ 70 sha256.c 71.if ${MACHINE_ARCH} == "i386" 72SRCS+= crc32_x86.S crc64_x86.S 73.else 74SRCS+= crc32_fast.c crc64_fast.c 75.endif 76 77.PATH: ${LZMADIR}/lz 78SRCS+= lz_encoder.c \ 79 lz_encoder_mf.c \ 80 lz_decoder.c 81 82.PATH: ${LZMADIR}/lzma 83SRCS+= lzma_encoder.c \ 84 lzma_encoder_presets.c \ 85 lzma_encoder_optimum_fast.c \ 86 lzma_encoder_optimum_normal.c \ 87 fastpos_table.c \ 88 lzma_decoder.c \ 89 lzma2_encoder.c \ 90 lzma2_decoder.c 91 92.PATH: ${LZMADIR}/rangecoder 93SRCS+= price_table.c 94 95.PATH: ${LZMADIR}/delta 96SRCS+= delta_common.c \ 97 delta_encoder.c \ 98 delta_decoder.c 99 100.PATH: ${LZMADIR}/simple 101SRCS+= simple_coder.c \ 102 simple_encoder.c \ 103 simple_decoder.c \ 104 x86.c \ 105 powerpc.c \ 106 ia64.c \ 107 arm.c \ 108 armthumb.c \ 109 sparc.c 110 111WARNS?= 3 112 113CFLAGS+= -DHAVE_CONFIG_H -DTUKLIB_SYMBOL_PREFIX=lzma_ \ 114 -I${.CURDIR} \ 115 -I${LZMADIR}/api \ 116 -I${LZMADIR}/common \ 117 -I${LZMADIR}/check \ 118 -I${LZMADIR}/lz \ 119 -I${LZMADIR}/rangecoder \ 120 -I${LZMADIR}/lzma \ 121 -I${LZMADIR}/delta \ 122 -I${LZMADIR}/simple \ 123 -I${LZMADIR}/../common 124 125.include <bsd.lib.mk> 126