Drop main() prototype. Syncs with NetBSD-8
[minix.git] / sys / lib / libz / Makefile
blob2b4509a77fcc092661670ada470c3208ef545f66
1 # $NetBSD: Makefile,v 1.21 2015/09/07 03:44:19 uebayasi Exp $
3 LIB= z
4 LIBISPRIVATE= yes
6 ZDISTDIR:=${.PARSEDIR}/../../../common/dist/zlib
8 CPPFLAGS+= -I${ZDISTDIR} ${ZCPPFLAGS} ${ZMISCCPPFLAGS}
10 .PATH.c: ${ZDISTDIR} ${.PARSEDIR}
12 # files to be copied down from libz.
13 LIBZSRCS= adler32.c compress.c deflate.c infback.c inffast.c \
14 inflate.c inftrees.c trees.c uncompr.c
15 LIBZHDRS= deflate.h inffast.h inffixed.h inflate.h inftrees.h \
16 trees.h zconf.h zlib.h
18 # Other stuff
19 SRCS= ${LIBZSRCS} zalloc.c
21 # Files to clean up
22 CLEANFILES+= lib${LIB}.o
24 .undef DESTDIR
25 .include <bsd.lib.mk>
27 lib${LIB}.o:: ${OBJS:O}
28 @echo building standard ${LIB} library
29 @rm -f lib${LIB}.o
30 @${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`
31 @echo done
33 .if defined(HAVE_GCC) && ${MACHINE_ARCH} == "vax"
34 COPTS.inftrees.c+= -O0
35 .endif