1 1.17 wiz # $NetBSD: Makefile,v 1.17 2012/05/07 08:51:47 wiz 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.8 thorpej # XXX huffman.c gets mis-compiled with 2.95.3 19 1.8 thorpej .if ${MACHINE_ARCH} == "vax" 20 1.8 thorpej COPTS+= -O0 21 1.8 thorpej .endif 22 1.8 thorpej 23 1.10 mrg # XXX blocksort.c gets mis-compiled with 4.1 24 1.10 mrg .if (${MACHINE_ARCH} == "sh3el" || ${MACHINE_ARCH} == "sh3eb") && \ 25 1.15 mrg defined(HAVE_GCC) 26 1.13 tsutsui COPTS.blocksort.c+= -fno-loop-optimize 27 1.10 mrg .endif 28 1.10 mrg 29 1.4 wiz .if ${MKSHARE} != "no" 30 1.4 wiz FILESDIR= ${HTMLDOCDIR}/bzip2 31 1.12 christos FILES= manual.html 32 1.4 wiz .endif 33 1.3 wiz 34 1.3 wiz .include <bsd.info.mk> 35 1.1 ross .include <bsd.lib.mk> 36