minix/lib/libbz2/Makefile
Lionel Sambuc 4a711bea63 Upgrading bzip2
Change-Id: I6968b0f0401f3f42dc55a0f4938a7e12a3a55ae7
2012-11-21 18:32:06 +01:00

41 lines
829 B
Makefile

# $NetBSD: Makefile,v 1.17 2012/05/07 08:51:47 wiz 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
.include <bsd.own.mk>
LIB= bz2
DIST= ${NETBSDSRCDIR}/external/bsd/bzip2/dist
.PATH: ${DIST}
SRCS= blocksort.c huffman.c crctable.c randtable.c compress.c \
decompress.c bzlib.c
INCS= bzlib.h
INCSDIR= /usr/include
# 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)
COPTS.blocksort.c+= -fno-loop-optimize
.endif
.if ${MKSHARE} != "no"
FILESDIR= ${HTMLDOCDIR}/bzip2
FILES= manual.html
.endif
.include <bsd.info.mk>
.include <bsd.lib.mk>