39 lines
1.0 KiB
Makefile
39 lines
1.0 KiB
Makefile
# $NetBSD: Makefile,v 1.19 1997/03/24 22:06:35 christos Exp $
|
|
|
|
PROG= gzip
|
|
SRCS= gzip.c zip.c deflate.c trees.c bits.c unzip.c inflate.c util.c \
|
|
crypt.c lzw.c unlzw.c unlzh.c unpack.c getopt.c
|
|
MAN= gzexe.1 gzip.1 zdiff.1 zforce.1 zgrep.1 zmore.1 znew.1
|
|
CFLAGS+=-DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DDIRENT=1
|
|
|
|
.if (${MACHINE_ARCH} == "m68k" || ${MACHINE_ARCH} == "i386")
|
|
SRCS+= match.S
|
|
CFLAGS+=-DASMV
|
|
.endif
|
|
|
|
LDSTATIC= -static
|
|
LDADD+= -lgnumalloc
|
|
DPADD+= ${LIBGNUMALLOC}
|
|
|
|
MLINKS+= gzip.1 gunzip.1 gzip.1 gzcat.1 gzip.1 zcat.1
|
|
MLINKS+= zdiff.1 zcmp.1
|
|
#MLINKS+= gzip.1 uncompress.1
|
|
LINKS+= ${BINDIR}/gzip ${BINDIR}/gunzip
|
|
LINKS+= ${BINDIR}/gzip ${BINDIR}/gzcat
|
|
LINKS+= ${BINDIR}/gzip ${BINDIR}/zcat
|
|
LINKS+= ${BINDIR}/zdiff ${BINDIR}/zcmp
|
|
#LINKS+= ${BINDIR}/gzip ${BINDIR}/uncompress
|
|
|
|
FILES=zforce gzexe znew zmore zdiff zgrep
|
|
FILESMODE=${BINMODE}
|
|
|
|
.if (${MACHINE_ARCH} == "m68k" || ${MACHINE_ARCH} == "i386")
|
|
match.o: ${.CURDIR}/match.S
|
|
$(CPP) -D__NetBSD__ ${.CURDIR}/match.S >_match.s
|
|
$(CC) -c _match.s
|
|
mv _match.o match.o
|
|
rm -f _match.s
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|