FreeBSD/Linux Kernel Cross Reference
sys/lib/libz/Makefile
1 # $NetBSD: Makefile,v 1.15.44.1 2009/05/03 17:31:42 snj Exp $
2
3 LIB= z
4 NOPIC= # defined
5 NOPROFILE=# defined
6
7 ZDISTDIR:=${.PARSEDIR}/../../../common/dist/zlib
8
9 CPPFLAGS+= -I${ZDISTDIR} ${ZCPPFLAGS} ${ZMISCCPPFLAGS}
10
11 .PATH.c: ${ZDISTDIR} ${.PARSEDIR}
12
13 # files to be copied down from libz.
14 LIBZSRCS= adler32.c compress.c deflate.c infback.c inffast.c \
15 inflate.c inftrees.c trees.c uncompr.c
16 LIBZHDRS= deflate.h inffast.h inffixed.h inflate.h inftrees.h \
17 trees.h zconf.h zlib.h
18
19 # Other stuff
20 SRCS= ${LIBZSRCS} zalloc.c
21
22 # Files to clean up
23 CLEANFILES+= lib${LIB}.o
24
25 # only needed during build
26 libinstall::
27
28 .undef DESTDIR
29 .include <bsd.lib.mk>
30
31 lib${LIB}.o:: ${OBJS}
32 @echo building standard ${LIB} library
33 @rm -f lib${LIB}.o
34 @${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`
Cache object: f27e05e7e0bfad19350f9550d36c02ca
|