d19d7d58aa
upgrade to NetBSD CVS release from 2012/10/17 12:00:00 UTC Makefiles updates to imporve portability Made sure to be consistent in the usage of braces/parenthesis at least on a per file basis. For variables, it is recommended to continue to use braces.
38 lines
756 B
Makefile
38 lines
756 B
Makefile
# $NetBSD: Makefile,v 1.12 2012/05/07 08:51:47 wiz Exp $
|
|
|
|
.include <bsd.own.mk> # for MKDYNAMICROOT definition
|
|
|
|
.if defined(__MINIX)
|
|
MKDYNAMICROOT= no
|
|
SMALLPROG= yes
|
|
.endif
|
|
USE_FORT?= yes # data-driven bugs?
|
|
|
|
|
|
PROG= bzip2
|
|
LDDIR!= cd ${NETBSDSRCDIR}/lib/libbz2 && ${PRINTOBJDIR}
|
|
LDADD+= -L${LDDIR} -lbz2
|
|
DPADD+= ${LIBBZ2}
|
|
|
|
.if (${MKDYNAMICROOT} == "no")
|
|
LDSTATIC?= -static
|
|
.endif
|
|
.ifdef SMALLPROG
|
|
CPPFLAGS+= -DSMALL
|
|
.endif
|
|
|
|
DIST= ${NETBSDSRCDIR}/dist/bzip2
|
|
.PATH: ${DIST}
|
|
|
|
MLINKS+= bzip2.1 bunzip2.1\
|
|
bzip2.1 bzcat.1\
|
|
bzip2.1 bzip2recover.1
|
|
|
|
LINKS+= ${BINDIR}/bzip2 ${BINDIR}/bunzip2
|
|
LINKS+= ${BINDIR}/bzip2 ${BINDIR}/bzcat
|
|
|
|
test:
|
|
make -C dist/bzip2 test
|
|
install-extra:
|
|
make -C dist/bzip2 install
|
|
.include <bsd.prog.mk>
|