phunix/sys/lib/libz/Makefile
Lionel Sambuc 0a6a1f1d05 NetBSD re-synchronization of the source tree
This brings our tree to NetBSD 7.0, as found on -current on the
10-10-2015.

This updates:
 - LLVM to 3.6.1
 - GCC to GCC 5.1
 - Replace minix/commands/zdump with usr.bin/zdump
 - external/bsd/libelf has moved to /external/bsd/elftoolchain/
 - Import ctwm
 - Drop sprintf from libminc

Change-Id: I149836ac18e9326be9353958bab9b266efb056f0
2016-01-13 20:32:14 +01:00

36 lines
813 B
Makefile

# $NetBSD: Makefile,v 1.21 2015/09/07 03:44:19 uebayasi Exp $
LIB= z
LIBISPRIVATE= yes
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
.undef DESTDIR
.include <bsd.lib.mk>
lib${LIB}.o:: ${OBJS:O}
@echo building standard ${LIB} library
@rm -f lib${LIB}.o
@${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`
@echo done
.if defined(HAVE_GCC) && ${MACHINE_ARCH} == "vax"
COPTS.inftrees.c+= -O0
.endif