]> CyberLeo.Net >> Repos - FreeBSD/releng/8.0.git/blob - usr.bin/cpio/Makefile
Adjust to reflect 8.0-RELEASE.
[FreeBSD/releng/8.0.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 .if ${MK_GNU_CPIO} != "yes"
23 SYMLINKS=bsdcpio ${BINDIR}/cpio
24 MLINKS= bsdcpio.1 cpio.1
25 .endif
26
27 .PHONY: check test
28
29 check test: $(PROG) bsdcpio.1.gz
30         cd ${.CURDIR}/test && make clean test
31
32 .include <bsd.prog.mk>