1 1.10 mrg # $NetBSD: Makefile,v 1.10 2006/05/21 03:34:57 mrg Exp $ 2 1.9 lukem 3 1.9 lukem NOMAN= # defined 4 1.8 thorpej 5 1.8 thorpej .include <bsd.own.mk> 6 1.1 ross 7 1.6 tv LIB= bz2 8 1.9 lukem DIST= ${NETBSDSRCDIR}/dist/bzip2 9 1.6 tv .PATH: ${DIST} 10 1.1 ross 11 1.6 tv SRCS= blocksort.c huffman.c crctable.c randtable.c compress.c \ 12 1.6 tv decompress.c bzlib.c 13 1.6 tv INCS= bzlib.h 14 1.6 tv INCSDIR= /usr/include 15 1.1 ross 16 1.5 simonb TEXINFO= bzip2.info 17 1.3 wiz CLEANFILES+= bzip2.texi 18 1.3 wiz 19 1.8 thorpej # XXX huffman.c gets mis-compiled with 2.95.3 20 1.8 thorpej .if ${MACHINE_ARCH} == "vax" 21 1.8 thorpej COPTS+= -O0 22 1.8 thorpej .endif 23 1.8 thorpej 24 1.10 mrg # XXX blocksort.c gets mis-compiled with 4.1 25 1.10 mrg .if (${MACHINE_ARCH} == "sh3el" || ${MACHINE_ARCH} == "sh3eb") && \ 26 1.10 mrg ${HAVE_GCC} == 4 27 1.10 mrg COPTS.blocksort.c+= -O0 28 1.10 mrg .endif 29 1.10 mrg 30 1.6 tv bzip2.texi: manual.texi 31 1.6 tv @-rm -f $@ 32 1.6 tv sed -e 's/@parindent.*//' \ 33 1.6 tv -e 's/@parskip.*//' \ 34 1.6 tv -e 's/@node Overview, Implementation, Top, Top/@node Overview, (dir), Top, (dir)/' \ 35 1.6 tv -e 's/@itemize$$/@itemize @bullet/' \ 36 1.7 mjl -e 's/@bf{\(.*\)}/\1/' \ 37 1.6 tv <$> >$@ 38 1.4 wiz 39 1.4 wiz .if ${MKSHARE} != "no" 40 1.4 wiz FILESDIR= ${HTMLDOCDIR}/bzip2 41 1.4 wiz FILES= manual_toc.html manual_1.html manual_2.html manual_3.html \ 42 1.4 wiz manual_4.html 43 1.4 wiz .endif 44 1.3 wiz 45 1.3 wiz .include <bsd.info.mk> 46 1.1 ross .include <bsd.lib.mk> 47