Remove building with NOCRYPTO option
[minix.git] / lib / libbz2 / Makefile
blob11b6c1b4911a22be38b5e416cee4d39fdba0359a
1 # $NetBSD: Makefile,v 1.18 2014/07/05 19:22:42 dholland Exp $
3 USE_FORT?= yes # data driven bugs?
5 NOMAN= # defined
7 .include <bsd.own.mk>
9 LIB= bz2
10 DIST= ${NETBSDSRCDIR}/external/bsd/bzip2/dist
11 .PATH: ${DIST}
13 SRCS= blocksort.c huffman.c crctable.c randtable.c compress.c \
14 decompress.c bzlib.c
15 INCS= bzlib.h
16 INCSDIR= /usr/include
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
22 CWARNFLAGS.gcc+= -Wno-maybe-uninitialized
23 .endif
24 .endif # defined(__MINIX)
26 # XXX huffman.c gets mis-compiled with 2.95.3
27 .if ${MACHINE_ARCH} == "vax"
28 COPTS+= -O0
29 .endif
31 # XXX blocksort.c gets mis-compiled with 4.1
32 .if (${MACHINE_ARCH} == "sh3el" || ${MACHINE_ARCH} == "sh3eb") && \
33 defined(HAVE_GCC)
34 COPTS.blocksort.c+= -fno-loop-optimize
35 .endif
37 .if ${MKSHARE} != "no"
38 FILESDIR= /usr/share/doc/reference/ref1/bzip2
39 FILES= manual.html
40 .endif
42 .include <bsd.info.mk>
43 .include <bsd.lib.mk>