34 lines
738 B
Makefile
34 lines
738 B
Makefile
# $NetBSD: Makefile,v 1.3 1997/02/16 21:25:22 cgd Exp $
|
|
|
|
LIB= z
|
|
NOPIC=
|
|
NOPROFILE=
|
|
|
|
CPPFLAGS= -I. ${ZCPPFLAGS} ${ZMISCCPPFLAGS} -D_ZLIB_PRIVATE
|
|
|
|
# files to be copied down from libz.
|
|
LIBZSRCS= adler32.c crc32.c infblock.c infcodes.c inffast.c \
|
|
inflate.c inftrees.c infutil.c
|
|
LIBZHDRS= infblock.h infcodes.h inffast.h inftrees.h infutil.h \
|
|
zconf.h zlib.h zutil.h
|
|
|
|
# Other stuff
|
|
SRCS= ${LIBZSRCS}
|
|
|
|
# Files to clean up
|
|
CLEANFILES+= lib${LIB}.o
|
|
|
|
install:
|
|
|
|
.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`
|
|
|
|
update-sources:
|
|
for file in ${LIBZSRCS} ${LIBZHDRS}; do \
|
|
cp ${.CURDIR}/../../../lib/libz/$$file ${.CURDIR}; \
|
|
done
|