pkgin_all: script to auto-install all packages
[minix.git] / lib / libbz2 / Makefile
blob82258e62642e2b0b8e01d914e8e00565345ce9a4
1 # $NetBSD: Makefile,v 1.17 2012/05/07 08:51:47 wiz Exp $
3 .if defined(__MINIX)
4 # ssp-buffer-size=0, __SSP_FORTIFY_LEVEL=0
5 USE_FORT=no
6 .else
7 USE_FORT?= yes # data driven bugs?
8 .endif
10 NOMAN= # defined
12 .include <bsd.own.mk>
14 LIB= bz2
15 DIST= ${NETBSDSRCDIR}/external/bsd/bzip2/dist
16 .PATH: ${DIST}
18 SRCS= blocksort.c huffman.c crctable.c randtable.c compress.c \
19 decompress.c bzlib.c
20 INCS= bzlib.h
21 INCSDIR= /usr/include
23 # XXX huffman.c gets mis-compiled with 2.95.3
24 .if ${MACHINE_ARCH} == "vax"
25 COPTS+= -O0
26 .endif
28 # XXX blocksort.c gets mis-compiled with 4.1
29 .if (${MACHINE_ARCH} == "sh3el" || ${MACHINE_ARCH} == "sh3eb") && \
30 defined(HAVE_GCC)
31 COPTS.blocksort.c+= -fno-loop-optimize
32 .endif
34 .if ${MKSHARE} != "no"
35 FILESDIR= ${HTMLDOCDIR}/bzip2
36 FILES= manual.html
37 .endif
39 .include <bsd.info.mk>
40 .include <bsd.lib.mk>