Makefile revision 1.21
11.21Smatt# $NetBSD: Makefile,v 1.21 2012/03/21 10:08:31 matt Exp $ 21.21Smatt 31.21SmattWARNS= 3 41.20Stls 51.20StlsUSE_FORT?= yes # data-driven bugs? 61.19Schristos 71.19Schristos.include <bsd.own.mk> 81.1Sgwr 91.16SlukemUSE_SHLIBDIR= yes 101.17Slukem 111.19SchristosZLIBDIR=${NETBSDSRCDIR}/common/dist/zlib 121.19Schristos.PATH: ${ZLIBDIR} 131.17SlukemLIB= z 141.6Sgwr 151.19SchristosSRCS= adler32.c compress.c crc32.c deflate.c gzio.c infback.c inffast.c \ 161.19Schristos inflate.c inftrees.c trees.c uncompr.c zutil.c 171.18SwizMAN= zlib.3 181.1Sgwr 191.19SchristosCPPFLAGS+= -I${ZLIBDIR} 201.15StvCLEANFILES+= minigzip 211.1Sgwr 221.15StvINCS= zconf.h zlib.h 231.15StvINCSDIR= /usr/include 241.1Sgwr 251.1Sgwr.include <bsd.lib.mk> 261.1Sgwr 271.1Sgwrtest: minigzip 281.1Sgwr echo hello world | ./minigzip | ./minigzip -d 291.1Sgwr 301.1Sgwr# Note: CFLAGS ommitted by intention! 311.1Sgwr# This is to verify that zlib.h works standalone. 321.15Stvminigzip: minigzip.c libz.a 331.15Stv ${CC} -o minigzip ${.CURDIR}/minigzip.c libz.a 34