NetBSD/gnu/usr.bin/gzip/Makefile

49 lines
1.3 KiB
Makefile
Raw Normal View History

1999-01-31 17:33:33 +03:00
# $NetBSD: Makefile,v 1.25 1999/01/31 14:33:33 kim Exp $
.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 \
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
CPPFLAGS+=-DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DDIRENT=1 -Dunix
.if (${MACHINE_ARCH} == "m68k" || ${MACHINE_ARCH} == "i386")
SRCS+= match.S
1997-10-25 14:10:19 +04:00
CPPFLAGS+=-DASMV
1999-01-23 01:24:29 +03:00
.if (${OBJECT_FMT} == "ELF")
CPPFLAGS+=-DNO_UNDERLINE
.endif
.endif # m68k || i386
LDSTATIC?= -static
LDADD+= -lgnumalloc
1997-03-25 01:02:40 +03:00
DPADD+= ${LIBGNUMALLOC}
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
#MLINKS+= gzip.1 uncompress.1
1999-01-31 17:33:33 +03:00
MLINKS+= zgrep.1 zegrep.1 zgrep.1 zfgrep.1
LINKS+= ${BINDIR}/gzip ${BINDIR}/gunzip
LINKS+= ${BINDIR}/gzip ${BINDIR}/gzcat
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
.if (${MACHINE_ARCH} == "m68k" || ${MACHINE_ARCH} == "i386")
1993-07-09 19:47:36 +04:00
match.o: ${.CURDIR}/match.S
$(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
.endif
1993-07-09 19:47:36 +04:00
.include <bsd.prog.mk>