xref: /netbsd/lib/libbz2/Makefile (revision c4a72b64)
1#	$NetBSD: Makefile,v 1.9 2002/08/19 09:41:28 lukem Exp $
2
3NOMAN=		# defined
4
5.include <bsd.own.mk>
6
7LIB=		bz2
8DIST=		${NETBSDSRCDIR}/dist/bzip2
9.PATH:		${DIST}
10
11SRCS=		blocksort.c huffman.c crctable.c randtable.c compress.c \
12		decompress.c bzlib.c
13INCS=		bzlib.h
14INCSDIR=	/usr/include
15
16TEXINFO=	bzip2.info
17CLEANFILES+=	bzip2.texi
18
19# XXX huffman.c gets mis-compiled with 2.95.3
20.if ${MACHINE_ARCH} == "vax"
21COPTS+=		-O0
22.endif
23
24bzip2.texi: manual.texi
25	@-rm -f $@
26	sed -e 's/@parindent.*//' \
27	    -e 's/@parskip.*//' \
28	    -e 's/@node Overview, Implementation, Top, Top/@node Overview, (dir), Top, (dir)/' \
29	    -e 's/@itemize$$/@itemize @bullet/' \
30	    -e 's/@bf{\(.*\)}/\1/' \
31	    <$> >$@
32
33.if ${MKSHARE} != "no"
34FILESDIR=	${HTMLDOCDIR}/bzip2
35FILES=		manual_toc.html manual_1.html manual_2.html manual_3.html \
36		manual_4.html
37.endif
38
39.include <bsd.info.mk>
40.include <bsd.lib.mk>
41