dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / boot / lib / libz / Makefile
blob7a80fcbab52033e806bb6772fe58e191cce7a98e
2 # $FreeBSD$
5 LIB= z
6 SHLIBDIR?= /lib
7 SHLIB_MAJOR= 6
8 MAN= zlib.3 zopen.3
10 #CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
11 #CFLAGS=-g -DDEBUG
12 #CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
13 # -Wstrict-prototypes -Wmissing-prototypes
15 CFLAGS+= -DHAS_snprintf -DHAS_vsnprintf -I${.CURDIR}
17 WARNS?= 3
19 CLEANFILES+= example.o example foo.gz minigzip.o minigzip
21 SRCS+= adler32.c
22 SRCS+= compress.c
23 SRCS+= crc32.c
24 SRCS+= deflate.c
25 SRCS+= gzclose.c
26 SRCS+= gzlib.c
27 SRCS+= gzread.c
28 SRCS+= gzwrite.c
29 SRCS+= infback.c
30 SRCS+= inffast.c
31 SRCS+= inflate.c
32 SRCS+= inftrees.c
33 SRCS+= trees.c
34 SRCS+= uncompr.c
35 SRCS+= zopen.c
36 SRCS+= zutil.c
38 #.if ${MACHINE_ARCH} == "i386" && ${MACHINE_CPU:M*i686*}
39 #.PATH: ${.CURDIR}/contrib/asm686
40 #SRCS+= match.S
41 #CFLAGS+= -DASMV -DNO_UNDERLINE
42 #ACFLAGS+= -Wa,--noexecstack
43 #.endif
45 #.if ${MACHINE_ARCH} == "amd64"
46 #.PATH: ${.CURDIR}/contrib/gcc_gvmat64
47 #SRCS+= gvmat64.S
48 #CFLAGS+= -DASMV -DNO_UNDERLINE
49 #ACFLAGS+= -Wa,--noexecstack
50 #.endif
52 VERSION_DEF= ${.CURDIR}/Versions.def
53 SYMBOL_MAPS= ${.CURDIR}/Symbol.map
54 CFLAGS+= -DSYMBOL_VERSIONING
56 INCS= zconf.h zlib.h
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 )
71 FILES= zlib.pc
72 FILESDIR= ${LIBDATADIR}/pkgconfig
74 .include <bsd.lib.mk>
76 ## XXX: clang integrated-as doesn't grok .intel_syntax directives yet
77 #ACFLAGS.gvmat64.S= ${CLANG_NO_IAS}
78 #ACFLAGS+= ${ACFLAGS.${.IMPSRC:T}}