Home | History | Annotate | Line # | Download | only in libz
Makefile revision 1.18.26.1
      1  1.18.26.1       tls #	$NetBSD: Makefile,v 1.18.26.1 2014/08/10 06:56:02 tls Exp $
      2        1.1       cgd 
      3        1.1       cgd LIB=	z
      4       1.18       mrg LIBISPRIVATE=	yes
      5        1.1       cgd 
      6       1.14  christos ZDISTDIR:=${.PARSEDIR}/../../../common/dist/zlib
      7       1.10  drochner 
      8       1.15     isaki CPPFLAGS+=	-I${ZDISTDIR} ${ZCPPFLAGS} ${ZMISCCPPFLAGS}
      9       1.14  christos 
     10       1.14  christos .PATH.c: ${ZDISTDIR} ${.PARSEDIR}
     11        1.1       cgd 
     12        1.1       cgd # files to be copied down from libz.
     13       1.16       tls LIBZSRCS= adler32.c compress.c deflate.c infback.c inffast.c \
     14       1.14  christos 	inflate.c inftrees.c trees.c uncompr.c
     15       1.16       tls LIBZHDRS= deflate.h inffast.h inffixed.h inflate.h inftrees.h \
     16       1.14  christos 	trees.h zconf.h zlib.h
     17        1.1       cgd 
     18        1.1       cgd # Other stuff
     19        1.8    simonb SRCS=	${LIBZSRCS} zalloc.c
     20        1.1       cgd 
     21        1.1       cgd # Files to clean up
     22        1.1       cgd CLEANFILES+= lib${LIB}.o
     23        1.6       cjs 
     24       1.11        tv .undef DESTDIR
     25        1.1       cgd .include <bsd.lib.mk>
     26        1.1       cgd 
     27        1.1       cgd lib${LIB}.o:: ${OBJS}
     28        1.1       cgd 	@echo building standard ${LIB} library
     29        1.1       cgd 	@rm -f lib${LIB}.o
     30        1.1       cgd 	@${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`
     31       1.17       mrg 
     32  1.18.26.1       tls .if defined(HAVE_GCC) && ${MACHINE_ARCH} == "vax"
     33       1.17       mrg COPTS.inftrees.c+=	-O0
     34       1.17       mrg .endif
     35