aboutsummaryrefslogtreecommitdiff
path: root/gnu/gzip/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/gzip/Makefile')
-rw-r--r--gnu/gzip/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/gzip/Makefile b/gnu/gzip/Makefile
new file mode 100644
index 000000000000..cd9ae24ebcce
--- /dev/null
+++ b/gnu/gzip/Makefile
@@ -0,0 +1,25 @@
+# @(#)Makefile 5.3 (Berkeley) 5/12/90
+
+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 match.S
+MAN1= gzexe.1 gzip.1 zdiff.1 zforce.1 zmore.1 znew.1
+CFLAGS+=-DASMV -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DDIRENT=1
+MLINKS= gzip.1 gunzip.1 gzip.1 zcat.1 gzip.1 gzcat.1
+LINKS+= ${BINDIR}/gzip ${BINDIR}/gunzip
+LINKS+= ${BINDIR}/gzip ${BINDIR}/gzcat
+LINKS+= ${BINDIR}/gzip ${BINDIR}/zcat
+
+afterinstall:
+ install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
+ ${.CURDIR}/zforce ${.CURDIR}/gzexe ${.CURDIR}/znew \
+ ${.CURDIR}/zmore ${.CURDIR}/zdiff ${.CURDIR}/zgrep \
+ ${DESTDIR}${BINDIR}
+
+match.o: ${.CURDIR}/match.S
+ $(CPP) ${.CURDIR}/match.S >_match.s
+ $(CC) -c _match.s
+ mv _match.o match.o
+ rm -f _match.s
+
+.include <bsd.prog.mk>