1994-10-18 00:37:28 +03:00
|
|
|
# $Id: Makefile,v 1.13 1994/10/17 21:37:28 cgd Exp $
|
1993-07-09 19:47:36 +04:00
|
|
|
|
|
|
|
PROG= gzip
|
|
|
|
SRCS= gzip.c zip.c deflate.c trees.c bits.c unzip.c inflate.c util.c \
|
1993-12-21 23:27:39 +03:00
|
|
|
crypt.c lzw.c unlzw.c unlzh.c unpack.c getopt.c
|
1993-10-16 02:14:16 +03:00
|
|
|
MAN1= gzexe.0 gzip.0 zdiff.0 zforce.0 zmore.0 znew.0
|
1993-12-21 23:27:39 +03:00
|
|
|
CFLAGS+=-DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DDIRENT=1
|
|
|
|
|
|
|
|
.if (${MACHINE_ARCH} == "m68k" || ${MACHINE_ARCH} == "i386")
|
|
|
|
SRCS+= match.S
|
|
|
|
CFLAGS+=-DASMV
|
|
|
|
.endif
|
1993-10-16 02:14:16 +03:00
|
|
|
|
1994-06-19 04:03:41 +04:00
|
|
|
LDSTATIC= -static
|
1993-10-16 02:14:16 +03:00
|
|
|
LDADD+= -lgnumalloc
|
|
|
|
DPADD+= /usr/lib/libgnumalloc.a
|
|
|
|
|
1994-10-18 00:37:28 +03:00
|
|
|
MLINKS= gzip.1 gunzip.1 gzip.1 gzcat.1 gzip.1 zcat.1
|
|
|
|
#MLINKS+= gzip.1 uncompress.1
|
1993-08-10 04:02:45 +04:00
|
|
|
LINKS+= ${BINDIR}/gzip ${BINDIR}/gunzip
|
|
|
|
LINKS+= ${BINDIR}/gzip ${BINDIR}/gzcat
|
1994-06-13 19:18:46 +04:00
|
|
|
#LINKS+= ${BINDIR}/gzip ${BINDIR}/uncompress
|
1994-10-18 00:37:28 +03:00
|
|
|
LINKS+= ${BINDIR}/gzip ${BINDIR}/zcat
|
1993-07-09 19:47:36 +04:00
|
|
|
|
|
|
|
afterinstall:
|
|
|
|
install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
|
|
|
|
${.CURDIR}/zforce ${.CURDIR}/gzexe ${.CURDIR}/znew \
|
|
|
|
${.CURDIR}/zmore ${.CURDIR}/zdiff ${.CURDIR}/zgrep \
|
|
|
|
${DESTDIR}${BINDIR}
|
|
|
|
|
1993-12-21 23:27:39 +03:00
|
|
|
.if (${MACHINE_ARCH} == "m68k" || ${MACHINE_ARCH} == "i386")
|
1993-07-09 19:47:36 +04:00
|
|
|
match.o: ${.CURDIR}/match.S
|
1993-12-09 00:31:57 +03:00
|
|
|
$(CPP) -D__NetBSD__ ${.CURDIR}/match.S >_match.s
|
1993-07-09 19:47:36 +04:00
|
|
|
$(CC) -c _match.s
|
|
|
|
mv _match.o match.o
|
|
|
|
rm -f _match.s
|
1993-12-21 23:27:39 +03:00
|
|
|
.endif
|
1993-07-09 19:47:36 +04:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|