NetBSD/sys/lib/libz/Makefile

36 lines
813 B
Makefile
Raw Normal View History

2015-09-07 06:44:19 +03:00
# $NetBSD: Makefile,v 1.21 2015/09/07 03:44:19 uebayasi Exp $
LIB= z
LIBISPRIVATE= yes
2006-01-14 23:15:38 +03:00
ZDISTDIR:=${.PARSEDIR}/../../../common/dist/zlib
CPPFLAGS+= -I${ZDISTDIR} ${ZCPPFLAGS} ${ZMISCCPPFLAGS}
2006-01-14 23:15:38 +03:00
.PATH.c: ${ZDISTDIR} ${.PARSEDIR}
# files to be copied down from libz.
LIBZSRCS= adler32.c compress.c deflate.c infback.c inffast.c \
2006-01-14 23:15:38 +03:00
inflate.c inftrees.c trees.c uncompr.c
LIBZHDRS= deflate.h inffast.h inffixed.h inflate.h inftrees.h \
2006-01-14 23:15:38 +03:00
trees.h zconf.h zlib.h
# Other stuff
SRCS= ${LIBZSRCS} zalloc.c
# Files to clean up
CLEANFILES+= lib${LIB}.o
.undef DESTDIR
.include <bsd.lib.mk>
2015-09-07 06:44:19 +03:00
lib${LIB}.o:: ${OBJS:O}
@echo building standard ${LIB} library
@rm -f lib${LIB}.o
@${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`
2015-09-07 06:20:18 +03:00
@echo done
2011-07-03 19:29:34 +04:00
.if defined(HAVE_GCC) && ${MACHINE_ARCH} == "vax"
2011-07-03 19:29:34 +04:00
COPTS.inftrees.c+= -O0
.endif