10 #CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
12 #CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
13 # -Wstrict-prototypes -Wmissing-prototypes
15 CFLAGS
+= -DHAS_snprintf
-DHAS_vsnprintf
-I
${.CURDIR
}
19 CLEANFILES
+= example.o example foo.gz minigzip.o minigzip
38 #.if ${MACHINE_ARCH} == "i386" && ${MACHINE_CPU:M*i686*}
39 #.PATH: ${.CURDIR}/contrib/asm686
41 #CFLAGS+= -DASMV -DNO_UNDERLINE
42 #ACFLAGS+= -Wa,--noexecstack
45 #.if ${MACHINE_ARCH} == "amd64"
46 #.PATH: ${.CURDIR}/contrib/gcc_gvmat64
48 #CFLAGS+= -DASMV -DNO_UNDERLINE
49 #ACFLAGS+= -Wa,--noexecstack
52 VERSION_DEF
= ${.CURDIR
}/Versions.def
53 SYMBOL_MAPS
= ${.CURDIR
}/Symbol.map
54 CFLAGS
+= -DSYMBOL_VERSIONING
58 .PATH
: ${.CURDIR
}/test
60 minigzip
: all minigzip.o
61 $(CC
) -o minigzip minigzip.o
-L.
-lz
63 example
: all example.o
64 $(CC
) -o example example.o
-L.
-lz
66 test: example minigzip
67 (export LD_LIBRARY_PATH
=.
; .
/example
)
68 (export LD_LIBRARY_PATH
=.
; \
69 echo hello world | .
/minigzip | .
/minigzip
-d
)
72 FILESDIR
= ${LIBDATADIR}/pkgconfig
76 ## XXX: clang integrated-as doesn't grok .intel_syntax directives yet
77 #ACFLAGS.gvmat64.S= ${CLANG_NO_IAS}
78 #ACFLAGS+= ${ACFLAGS.${.IMPSRC:T}}