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