10 MLINKS+= zopen.3 zdopen.3
12 ZLIBSRC= ${SRCTOP}/contrib/zlib
16 #CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
18 #CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
19 # -Wstrict-prototypes -Wmissing-prototypes
21 CFLAGS+= -DHAS_snprintf -DHAS_vsnprintf -I${.CURDIR}
25 CLEANFILES+= example.o example foo.gz minigzip.o minigzip
44 .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
45 CFLAGS+= -DUNALIGNED_OK
48 VERSION_DEF= ${.CURDIR}/Versions.def
49 SYMBOL_MAPS= ${.CURDIR}/Symbol.map
50 CFLAGS+= -DSYMBOL_VERSIONING
54 .PATH: ${ZLIBSRC}/test
56 minigzip: all minigzip.o
57 $(CC) -o minigzip minigzip.o -L. -lz
59 example: all example.o
60 $(CC) -o example example.o -L. -lz
62 test: example minigzip
63 (export LD_LIBRARY_PATH=. ; ./example )
64 (export LD_LIBRARY_PATH=. ; \
65 echo hello world | ./minigzip | ./minigzip -d )
68 FILESDIR= ${LIBDATADIR}/pkgconfig
72 ## XXX: clang integrated-as doesn't grok .intel_syntax directives yet
73 #ACFLAGS.gvmat64.S= ${CLANG_NO_IAS}