xref: /minix/lib/libbz2/Makefile (revision 2a404668)
1#	$NetBSD: Makefile,v 1.18 2014/07/05 19:22:42 dholland Exp $
2
3USE_FORT?= yes	# data driven bugs?
4
5NOMAN=		# defined
6
7.include <bsd.own.mk>
8
9LIB=		bz2
10DIST=		${NETBSDSRCDIR}/external/bsd/bzip2/dist
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
18.if defined(__MINIX)
19.if !empty(DBG:M-Og) || !empty(CFLAGS:M-Og) || \
20	!empty(DBG:M-g) || !empty(CFLAGS:M-g)
21#LSC: -Wno-maybe-uninitialized while compiling with -DNDEBUG -Og
22CWARNFLAGS.gcc+=	-Wno-maybe-uninitialized
23.endif
24.endif # defined(__MINIX)
25
26# XXX huffman.c gets mis-compiled with 2.95.3
27.if ${MACHINE_ARCH} == "vax"
28COPTS+=		-O0
29.endif
30
31# XXX blocksort.c gets mis-compiled with 4.1
32.if (${MACHINE_ARCH} == "sh3el" || ${MACHINE_ARCH} == "sh3eb") && \
33    defined(HAVE_GCC)
34COPTS.blocksort.c+=	-fno-loop-optimize
35.endif
36
37.if ${MKSHARE} != "no"
38FILESDIR=	/usr/share/doc/reference/ref1/bzip2
39FILES=		manual.html
40.endif
41
42.include <bsd.info.mk>
43.include <bsd.lib.mk>
44