1999-02-13 05:54:17 +03:00
|
|
|
# $NetBSD: Makefile,v 1.7 1999/02/13 02:54:51 lukem Exp $
|
1997-01-16 03:19:04 +03:00
|
|
|
|
|
|
|
LIB= z
|
1999-02-13 05:54:17 +03:00
|
|
|
MKPIC= no
|
|
|
|
MKPROFILE=no
|
1997-01-16 03:19:04 +03:00
|
|
|
|
1997-02-17 00:25:18 +03:00
|
|
|
CPPFLAGS= -I. ${ZCPPFLAGS} ${ZMISCCPPFLAGS} -D_ZLIB_PRIVATE
|
1997-01-16 03:19:04 +03:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
1997-06-01 01:21:13 +04:00
|
|
|
# only needed during build
|
|
|
|
libinstall::
|
|
|
|
|
1997-01-16 03:19:04 +03:00
|
|
|
.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
|