aboutsummaryrefslogtreecommitdiffstats
path: root/usr.bin/cpio/Makefile
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@FreeBSD.org>2008-05-26 17:15:35 +0000
committerTim Kientzle <kientzle@FreeBSD.org>2008-05-26 17:15:35 +0000
commit1e38350b0a926ab2f42183f7798eb17d528b89ae (patch)
tree77cecd8fd6408385dac912ef7066edb8f24181a8 /usr.bin/cpio/Makefile
parenteb36031906b623c41398f29df9178b5214a4c9fa (diff)
downloadsrc-1e38350b0a926ab2f42183f7798eb17d528b89ae.tar.gz
src-1e38350b0a926ab2f42183f7798eb17d528b89ae.zip
Initial commit of bsdcpio 0.9.11b.
A new implementation of cpio that uses libarchive as it's back-end archiving/dearchiving infrastructure. Includes test harness; "make check" in the bsdcpio directory to build and run the test harness.
Notes
Notes: svn path=/head/; revision=179323
Diffstat (limited to 'usr.bin/cpio/Makefile')
-rw-r--r--usr.bin/cpio/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/usr.bin/cpio/Makefile b/usr.bin/cpio/Makefile
new file mode 100644
index 000000000000..3685f1874956
--- /dev/null
+++ b/usr.bin/cpio/Makefile
@@ -0,0 +1,19 @@
+# $FreeBSD$
+
+PROG= bsdcpio
+BSDCPIO_VERSION_STRING=0.9.11b
+SRCS= cpio.c cmdline.c err.c matching.c pathmatch.c
+WARNS?= 6
+DPADD= ${LIBARCHIVE} ${LIBZ} ${LIBBZ2}
+CFLAGS+= -DBSDCPIO_VERSION_STRING=\"${BSDCPIO_VERSION_STRING}\"
+CFLAGS+= -DPLATFORM_CONFIG_H=\"config_freebsd.h\" -O0 -g
+LDADD+= -larchive -lz -lbz2
+SYMLINKS=bsdcpio ${BINDIR}/cpio
+MLINKS= bsdcpio.1 cpio.1
+
+.PHONY: check test
+
+check test: $(PROG) bsdcpio.1.gz
+ cd ${.CURDIR}/test && make clean test
+
+.include <bsd.prog.mk>