2 # $FreeBSD: head/lib/libz/Makefile 232263 2012-02-28 18:30:18Z dim $
10 ZLIBSRC= ${SRCTOP}/contrib/zlib
14 #CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
16 #CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
17 # -Wstrict-prototypes -Wmissing-prototypes
19 CFLAGS+= -DHAS_snprintf -DHAS_vsnprintf -I${.CURDIR}
23 CLEANFILES+= example.o example foo.gz minigzip.o minigzip
42 .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
43 CFLAGS+= -DUNALIGNED_OK
46 VERSION_DEF= ${.CURDIR}/Versions.def
47 SYMBOL_MAPS= ${.CURDIR}/Symbol.map
48 CFLAGS+= -DSYMBOL_VERSIONING
52 .PATH: ${ZLIBSRC}/test
54 minigzip: all minigzip.o
55 $(CC) -o minigzip minigzip.o -L. -lz
57 example: all example.o
58 $(CC) -o example example.o -L. -lz
60 test: example minigzip
61 (export LD_LIBRARY_PATH=. ; ./example )
62 (export LD_LIBRARY_PATH=. ; \
63 echo hello world | ./minigzip | ./minigzip -d )
67 FILESDIR= ${LIBDATADIR}/pkgconfig
72 ## XXX: clang integrated-as doesn't grok .intel_syntax directives yet
73 #ACFLAGS.gvmat64.S= ${CLANG_NO_IAS}
74 #ACFLAGS+= ${ACFLAGS.${.IMPSRC:T}}