minix/sys/lib/libz/Makefile
Evgeniy Ivanov 7f2d47d84c Remove libkern, leave just header.
Boot stuff dependencies from NetBSD.

Patch by Antoine Leca. Relocated to src/sys.

The port is using the same libminc.a as usual MINIX services (and does
not use NetBSD libkern); the headers imported from NetBSD sys/ tree
have been kept to a minimum (still numbers higher than 30 though.)

Note the peculiar way to use libraries (libsa, libi386, etc.): the
source code is shared, but each component builds its own copy of the
library, with its own set of preprocessor defines.
2012-02-09 18:54:42 +01:00

38 lines
885 B
Makefile

# $NetBSD: Makefile,v 1.18 2011/10/30 00:28:57 mrg Exp $
LIB= z
LIBISPRIVATE= yes
.ifndef __MINIX
ZDISTDIR:=${.PARSEDIR}/../../../common/dist/zlib
.else
ZDISTDIR:=${.PARSEDIR}/../../../lib/libz
.endif
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}
@echo building standard ${LIB} library
@rm -f lib${LIB}.o
@${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`
.if defined(HAVE_GCC) && ${HAVE_GCC} >= 45 && ${MACHINE_ARCH} == "vax"
COPTS.inftrees.c+= -O0
.endif