1 1.20.8.1 martin # $NetBSD: Makefile,v 1.20.8.1 2023/10/08 14:35:23 martin Exp $ 2 1.11 tls 3 1.11 tls USE_FORT?= yes # data driven bugs? 4 1.9 lukem 5 1.9 lukem NOMAN= # defined 6 1.8 thorpej 7 1.8 thorpej .include <bsd.own.mk> 8 1.1 ross 9 1.6 tv LIB= bz2 10 1.17 wiz DIST= ${NETBSDSRCDIR}/external/bsd/bzip2/dist 11 1.6 tv .PATH: ${DIST} 12 1.1 ross 13 1.6 tv SRCS= blocksort.c huffman.c crctable.c randtable.c compress.c \ 14 1.6 tv decompress.c bzlib.c 15 1.6 tv INCS= bzlib.h 16 1.6 tv INCSDIR= /usr/include 17 1.1 ross 18 1.20 mrg .if defined(HAVE_GCC) && ${HAVE_GCC} >= 7 && ${ACTIVE_CC} == "gcc" 19 1.19 mrg COPTS+= -Wno-error=implicit-fallthrough 20 1.19 mrg .endif 21 1.19 mrg 22 1.10 mrg # XXX blocksort.c gets mis-compiled with 4.1 23 1.10 mrg .if (${MACHINE_ARCH} == "sh3el" || ${MACHINE_ARCH} == "sh3eb") && \ 24 1.15 mrg defined(HAVE_GCC) 25 1.13 tsutsui COPTS.blocksort.c+= -fno-loop-optimize 26 1.10 mrg .endif 27 1.10 mrg 28 1.4 wiz .if ${MKSHARE} != "no" 29 1.18 dholland FILESDIR= /usr/share/doc/reference/ref1/bzip2 30 1.12 christos FILES= manual.html 31 1.4 wiz .endif 32 1.3 wiz 33 1.3 wiz .include <bsd.info.mk> 34 1.1 ross .include <bsd.lib.mk> 35