2011-08-17 21:48:49 +02:00
|
|
|
# $NetBSD: Makefile,v 1.14 2008/08/29 00:02:22 gmcgarry Exp $
|
|
|
|
|
|
|
|
.if defined(__MINIX)
|
|
|
|
# ssp-buffer-size=0, __SSP_FORTIFY_LEVEL=0
|
|
|
|
USE_FORT=no
|
|
|
|
.else
|
|
|
|
USE_FORT?= yes # data driven bugs?
|
|
|
|
.endif
|
|
|
|
|
|
|
|
NOMAN= # defined
|
|
|
|
|
2010-06-25 20:29:09 +02:00
|
|
|
.include <bsd.own.mk>
|
2010-05-12 18:28:54 +02:00
|
|
|
|
|
|
|
LIB= bz2
|
2011-08-17 21:48:49 +02:00
|
|
|
DIST= ${NETBSDSRCDIR}/dist/bzip2
|
|
|
|
.PATH: ${DIST}
|
2010-05-12 18:28:54 +02:00
|
|
|
|
2011-08-17 21:48:49 +02:00
|
|
|
SRCS= blocksort.c huffman.c crctable.c randtable.c compress.c \
|
|
|
|
decompress.c bzlib.c
|
2010-05-12 18:28:54 +02:00
|
|
|
INCS= bzlib.h
|
2011-08-17 21:48:49 +02:00
|
|
|
INCSDIR= /usr/include
|
2011-07-01 15:57:43 +02:00
|
|
|
|
2011-08-17 21:48:49 +02:00
|
|
|
# XXX huffman.c gets mis-compiled with 2.95.3
|
|
|
|
.if ${MACHINE_ARCH} == "vax"
|
|
|
|
COPTS+= -O0
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# XXX blocksort.c gets mis-compiled with 4.1
|
|
|
|
.if (${MACHINE_ARCH} == "sh3el" || ${MACHINE_ARCH} == "sh3eb") && \
|
|
|
|
(defined(HAVE_GCC) && ${HAVE_GCC} == 4)
|
|
|
|
COPTS.blocksort.c+= -fno-loop-optimize
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MKSHARE} != "no"
|
|
|
|
FILESDIR= ${HTMLDOCDIR}/bzip2
|
|
|
|
FILES= manual.html
|
2011-04-27 15:00:52 +02:00
|
|
|
.endif
|
2010-05-12 18:28:54 +02:00
|
|
|
|
2011-08-17 21:48:49 +02:00
|
|
|
.include <bsd.info.mk>
|
2010-06-25 20:29:09 +02:00
|
|
|
.include <bsd.lib.mk>
|