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