NetBSD/sys/lib/libz/Makefile
tls a34cd18b76 Fix build problems caused by crc32 addition to libkern. Also, this makes
the i386 bootblocks about 2K smaller than they were before we monkeyed
with crc32 at all.
2009-03-25 18:41:06 +00:00

35 lines
773 B
Makefile

# $NetBSD: Makefile,v 1.16 2009/03/25 18:41:06 tls Exp $
LIB= z
NOPIC= # defined
NOPROFILE=# defined
ZDISTDIR:=${.PARSEDIR}/../../../common/dist/zlib
CPPFLAGS+= -I${ZDISTDIR} ${ZCPPFLAGS} ${ZMISCCPPFLAGS}
.PATH.c: ${ZDISTDIR} ${.PARSEDIR}
# files to be copied down from libz.
LIBZSRCS= adler32.c compress.c deflate.c infback.c inffast.c \
inflate.c inftrees.c trees.c uncompr.c
LIBZHDRS= deflate.h inffast.h inffixed.h inflate.h inftrees.h \
trees.h zconf.h zlib.h
# Other stuff
SRCS= ${LIBZSRCS} zalloc.c
# Files to clean up
CLEANFILES+= lib${LIB}.o
# only needed during build
libinstall::
.undef DESTDIR
.include <bsd.lib.mk>
lib${LIB}.o:: ${OBJS}
@echo building standard ${LIB} library
@rm -f lib${LIB}.o
@${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`