Makefile revision 1.11
1#	$NetBSD: Makefile,v 1.11 2007/05/28 12:06:18 tls Exp $
2
3USE_FORT?= yes	# data driven bugs?
4
5NOMAN=		# defined
6
7.include <bsd.own.mk>
8
9LIB=		bz2
10DIST=		${NETBSDSRCDIR}/dist/bzip2
11.PATH:		${DIST}
12
13SRCS=		blocksort.c huffman.c crctable.c randtable.c compress.c \
14		decompress.c bzlib.c
15INCS=		bzlib.h
16INCSDIR=	/usr/include
17
18TEXINFO=	bzip2.info
19CLEANFILES+=	bzip2.texi
20
21# XXX huffman.c gets mis-compiled with 2.95.3
22.if ${MACHINE_ARCH} == "vax"
23COPTS+=		-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
29COPTS.blocksort.c+=		-O0
30.endif
31
32bzip2.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"
42FILESDIR=	${HTMLDOCDIR}/bzip2
43FILES=		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