1 # $NetBSD: Makefile,v 1.22 2023/10/07 12:15:53 rin Exp $ 2 3 USE_FORT?= yes # data driven bugs? 4 5 NOMAN= # defined 6 7 .include <bsd.own.mk> 8 9 LIB= bz2 10 DIST= ${NETBSDSRCDIR}/external/bsd/bzip2/dist 11 .PATH: ${DIST} 12 13 SRCS= blocksort.c huffman.c crctable.c randtable.c compress.c \ 14 decompress.c bzlib.c 15 INCS= bzlib.h 16 INCSDIR= /usr/include 17 18 COPTS+= ${CC_WNO_IMPLICIT_FALLTHROUGH} 19 20 # XXX blocksort.c gets mis-compiled with 4.1 21 .if (${MACHINE_ARCH} == "sh3el" || ${MACHINE_ARCH} == "sh3eb") && \ 22 defined(HAVE_GCC) 23 COPTS.blocksort.c+= -fno-loop-optimize 24 .endif 25 26 .if ${MKSHARE} != "no" 27 FILESDIR= /usr/share/doc/reference/ref1/bzip2 28 FILES= manual.html 29 .endif 30 31 .include <bsd.info.mk> 32 .include <bsd.lib.mk> 33