pkgsrc/devel/zlib/files/Makefile
wiz c08bd88c3d Add --tag=CC to libtool line.
Shouldn't be necessary, on the other hand, shouldn't hurt either.

Requested by jaimef@linbsd.org.
2012-09-02 14:56:17 +00:00

26 lines
666 B
Makefile

# $NetBSD: Makefile,v 1.4 2012/09/02 14:56:17 wiz Exp $
#
# Replacement Makefile for zlib.
OBJS= adler32.o compress.o crc32.o deflate.o gzclose.o gzlib.o gzread.o \
gzwrite.o infback.o inffast.o inflate.o inftrees.o trees.o \
uncompr.o zutil.o
LOBJS= ${OBJS:R:S/$/.lo/g}
all: libz.la
libz.la: ${LOBJS}
${LIBTOOL} --mode=link --tag=CC ${CC} ${LDFLAGS} ${CFLAGS} -o ${.TARGET} \
${LOBJS} -version-info 1:2 -rpath ${PREFIX}/lib
libz.a: ${OBJS}
${AR} cq ${.TARGET} ${OBJS}
${RANLIB} ${.TARGET}
.SUFFIXES: .c .o .lo
.c.o:
${CC} -c ${CFLAGS} -o ${.TARGET} ${.IMPSRC}
.c.lo:
${LIBTOOL} --mode=compile --tag=CC ${CC} -c ${CFLAGS} -o ${.TARGET} ${.IMPSRC}