Makefile revision 199767f8919635c4928607450d9e0abb932109ce
10139N/A#
10139N/A# $FreeBSD$
10139N/A#
20901N/A
10139N/ALIB= z
10139N/ASHLIBDIR?= /lib
10139N/ASHLIB_MAJOR= 6
17185N/AMAN= zlib.3 zopen.3
10139N/A
17178N/A#CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
17178N/A#CFLAGS=-g -DDEBUG
17178N/A#CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
10139N/A# -Wstrict-prototypes -Wmissing-prototypes
15322N/A
10139N/ACFLAGS+= -DHAS_snprintf -DHAS_vsnprintf -I${.CURDIR}
20903N/A
12282N/AWARNS?= 3
10139N/A
18615N/ACLEANFILES+= example.o example foo.gz minigzip.o minigzip
10139N/A
10139N/ASRCS+= adler32.c
12773N/ASRCS+= compress.c
15694N/ASRCS+= crc32.c
12773N/ASRCS+= deflate.c
10139N/ASRCS+= gzclose.c
13483N/ASRCS+= gzlib.c
10139N/ASRCS+= gzread.c
20901N/ASRCS+= gzwrite.c
20901N/ASRCS+= infback.c
20903N/ASRCS+= inffast.c
20903N/ASRCS+= inflate.c
10139N/ASRCS+= inftrees.c
10139N/ASRCS+= trees.c
10139N/ASRCS+= uncompr.c
10139N/ASRCS+= zopen.c
10139N/ASRCS+= zutil.c
10139N/A
10139N/A#.if ${MACHINE_ARCH} == "i386" && ${MACHINE_CPU:M*i686*}
10139N/A#.PATH: ${.CURDIR}/contrib/asm686
18584N/A#SRCS+= match.S
18584N/A#CFLAGS+= -DASMV -DNO_UNDERLINE
10139N/A#ACFLAGS+= -Wa,--noexecstack
10139N/A#.endif
10139N/A
10139N/A#.if ${MACHINE_ARCH} == "amd64"
10139N/A#.PATH: ${.CURDIR}/contrib/gcc_gvmat64
10139N/A#SRCS+= gvmat64.S
10139N/A#CFLAGS+= -DASMV -DNO_UNDERLINE
10139N/A#ACFLAGS+= -Wa,--noexecstack
10139N/A#.endif
10139N/A
10139N/AVERSION_DEF= ${.CURDIR}/Versions.def
10139N/ASYMBOL_MAPS= ${.CURDIR}/Symbol.map
10139N/ACFLAGS+= -DSYMBOL_VERSIONING
10139N/A
10139N/AINCS= zconf.h zlib.h
10139N/A
10139N/A.PATH: ${.CURDIR}/test
10139N/A
10139N/Aminigzip: all minigzip.o
10139N/A $(CC) -o minigzip minigzip.o -L. -lz
10139N/A
10139N/Aexample: all example.o
10139N/A $(CC) -o example example.o -L. -lz
10139N/A
10139N/Atest: example minigzip
10139N/A (export LD_LIBRARY_PATH=. ; ./example )
10139N/A (export LD_LIBRARY_PATH=. ; \
10139N/A echo hello world | ./minigzip | ./minigzip -d )
10139N/A
10139N/AFILES= zlib.pc
10139N/AFILESDIR= ${LIBDATADIR}/pkgconfig
10139N/A
10139N/A.include <bsd.lib.mk>
10139N/A
10139N/A## XXX: clang integrated-as doesn't grok .intel_syntax directives yet
10139N/A#ACFLAGS.gvmat64.S= ${CLANG_NO_IAS}
10139N/A#ACFLAGS+= ${ACFLAGS.${.IMPSRC:T}}
10139N/A