1 # $NetBSD: Makefile,v 1.10.4.1 2008/03/24 20:22:37 bouyer Exp $ 2 3 NOMAN= # defined 4 5 .include <bsd.own.mk> 6 7 LIB= bz2 8 DIST= ${NETBSDSRCDIR}/dist/bzip2 9 .PATH: ${DIST} 10 11 SRCS= blocksort.c huffman.c crctable.c randtable.c compress.c \ 12 decompress.c bzlib.c 13 INCS= bzlib.h 14 INCSDIR= /usr/include 15 16 # XXX huffman.c gets mis-compiled with 2.95.3 17 .if ${MACHINE_ARCH} == "vax" 18 COPTS+= -O0 19 .endif 20 21 # XXX blocksort.c gets mis-compiled with 4.1 22 .if (${MACHINE_ARCH} == "sh3el" || ${MACHINE_ARCH} == "sh3eb") && \ 23 ${HAVE_GCC} == 4 24 COPTS.blocksort.c+= -O0 25 .endif 26 27 .if ${MKSHARE} != "no" 28 FILESDIR= ${HTMLDOCDIR}/bzip2 29 FILES= manual.html 30 .endif 31 32 .include <bsd.info.mk> 33 .include <bsd.lib.mk> 34