]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - usr.bin/cpio/Makefile
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.git] / usr.bin / cpio / Makefile
1 # $FreeBSD$
2
3 .include <bsd.own.mk>
4
5 PROG=   bsdcpio
6 BSDCPIO_VERSION_STRING=2.7.0
7 SRCS=   cpio.c cmdline.c err.c matching.c pathmatch.c
8 WARNS?= 6
9 DPADD=  ${LIBARCHIVE} ${LIBZ} ${LIBBZ2}
10 CFLAGS+= -DBSDCPIO_VERSION_STRING=\"${BSDCPIO_VERSION_STRING}\"
11 CFLAGS+= -DPLATFORM_CONFIG_H=\"config_freebsd.h\"
12 .ifdef RELEASE_CRUNCH
13 # FreeBSD's installer uses cpio in crunched binaries that are
14 # statically linked, cannot use -lcrypto, and are size sensitive.
15 CFLAGS+= -DSMALLER
16 .endif
17 LDADD+= -larchive -lz -lbz2 -lmd
18 .if ${MK_OPENSSL} != "no"
19 LDADD+= -lcrypto
20 .endif
21
22 SYMLINKS=bsdcpio ${BINDIR}/cpio
23 MLINKS= bsdcpio.1 cpio.1
24
25 .PHONY: check test
26
27 check test: $(PROG) bsdcpio.1.gz
28         cd ${.CURDIR}/test && make clean test
29
30 .include <bsd.prog.mk>