1 # $NetBSD: Makefile,v 1.11 2007/05/28 12:06:18 tls 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}/dist/bzip2 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 TEXINFO= bzip2.info 19 CLEANFILES+= bzip2.texi 20 21 # XXX huffman.c gets mis-compiled with 2.95.3 22 .if ${MACHINE_ARCH} == "vax" 23 COPTS+= -O0 24 .endif 25 26 # XXX blocksort.c gets mis-compiled with 4.1 27 .if (${MACHINE_ARCH} == "sh3el" || ${MACHINE_ARCH} == "sh3eb") && \ 28 ${HAVE_GCC} == 4 29 COPTS.blocksort.c+= -O0 30 .endif 31 32 bzip2.texi: manual.texi 33 @-rm -f $@ 34 sed -e 's/@parindent.*//' \ 35 -e 's/@parskip.*//' \ 36 -e 's/@node Overview, Implementation, Top, Top/@node Overview, (dir), Top, (dir)/' \ 37 -e 's/@itemize$$/@itemize @bullet/' \ 38 -e 's/@bf{\(.*\)}/\1/' \ 39 <$> >$@ 40 41 .if ${MKSHARE} != "no" 42 FILESDIR= ${HTMLDOCDIR}/bzip2 43 FILES= manual_toc.html manual_1.html manual_2.html manual_3.html \ 44 manual_4.html 45 .endif 46 47 .include <bsd.info.mk> 48 .include <bsd.lib.mk> 49