1999-01-31 17:33:33 +03:00
|
|
|
# $NetBSD: Makefile,v 1.25 1999/01/31 14:33:33 kim Exp $
|
1998-03-02 22:42:25 +03:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
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
|
1994-12-22 12:31:26 +03:00
|
|
|
MAN= gzexe.1 gzip.1 zdiff.1 zforce.1 zgrep.1 zmore.1 znew.1
|
1998-09-01 07:16:48 +04:00
|
|
|
CPPFLAGS+=-DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DDIRENT=1 -Dunix
|
1993-12-21 23:27:39 +03:00
|
|
|
|
|
|
|
.if (${MACHINE_ARCH} == "m68k" || ${MACHINE_ARCH} == "i386")
|
|
|
|
SRCS+= match.S
|
1997-10-25 14:10:19 +04:00
|
|
|
CPPFLAGS+=-DASMV
|
1999-01-23 01:18:28 +03:00
|
|
|
|
1999-01-23 01:24:29 +03:00
|
|
|
.if (${OBJECT_FMT} == "ELF")
|
1999-01-23 01:18:28 +03:00
|
|
|
CPPFLAGS+=-DNO_UNDERLINE
|
1993-12-21 23:27:39 +03:00
|
|
|
.endif
|
1993-10-16 02:14:16 +03:00
|
|
|
|
1999-01-23 01:18:28 +03:00
|
|
|
.endif # m68k || i386
|
|
|
|
|
1998-03-02 22:42:25 +03:00
|
|
|
LDSTATIC?= -static
|
1993-10-16 02:14:16 +03:00
|
|
|
LDADD+= -lgnumalloc
|
1997-03-25 01:02:40 +03:00
|
|
|
DPADD+= ${LIBGNUMALLOC}
|
1993-10-16 02:14:16 +03:00
|
|
|
|
1995-10-25 01:18:34 +03:00
|
|
|
MLINKS+= gzip.1 gunzip.1 gzip.1 gzcat.1 gzip.1 zcat.1
|
|
|
|
MLINKS+= zdiff.1 zcmp.1
|
1994-10-18 00:37:28 +03:00
|
|
|
#MLINKS+= gzip.1 uncompress.1
|
1999-01-31 17:33:33 +03:00
|
|
|
MLINKS+= zgrep.1 zegrep.1 zgrep.1 zfgrep.1
|
1993-08-10 04:02:45 +04:00
|
|
|
LINKS+= ${BINDIR}/gzip ${BINDIR}/gunzip
|
|
|
|
LINKS+= ${BINDIR}/gzip ${BINDIR}/gzcat
|
1994-10-18 00:37:28 +03:00
|
|
|
LINKS+= ${BINDIR}/gzip ${BINDIR}/zcat
|
1995-10-25 01:18:34 +03:00
|
|
|
LINKS+= ${BINDIR}/zdiff ${BINDIR}/zcmp
|
|
|
|
#LINKS+= ${BINDIR}/gzip ${BINDIR}/uncompress
|
1999-01-31 17:33:33 +03:00
|
|
|
LINKS+= ${BINDIR}/zgrep ${BINDIR}/zegrep
|
|
|
|
LINKS+= ${BINDIR}/zgrep ${BINDIR}/zfgrep
|
1993-07-09 19:47:36 +04:00
|
|
|
|
1997-03-25 01:02:40 +03:00
|
|
|
FILES=zforce gzexe znew zmore zdiff zgrep
|
|
|
|
FILESMODE=${BINMODE}
|
1993-07-09 19:47:36 +04:00
|
|
|
|
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>
|