]> CyberLeo.Net >> Repos - FreeBSD/releng/8.0.git/blob - gnu/usr.bin/cpio/Makefile
Adjust to reflect 8.0-RELEASE.
[FreeBSD/releng/8.0.git] / gnu / usr.bin / cpio / Makefile
1 # $FreeBSD$
2
3 CPIODIR= ${.CURDIR}/../../../contrib/cpio
4 .PATH: ${CPIODIR}/lib ${CPIODIR}/src ${CPIODIR}/doc
5
6 SUBDIR= doc
7
8 PROG=   gcpio
9 SRCS=   copyin.c \
10         copyout.c \
11         copypass.c \
12         defer.c \
13         dstring.c \
14         filemode.c \
15         global.c \
16         idcache.c \
17         main.c \
18         makepath.c \
19         tar.c \
20         userspec.c \
21         util.c \
22         argp-ba.c \
23         argp-eexst.c \
24         argp-fmtstream.c \
25         argp-fs-xinl.c \
26         argp-help.c \
27         argp-parse.c \
28         argp-pin.c \
29         argp-pv.c \
30         argp-pvh.c \
31         argp-xinl.c \
32         basename.c \
33         dirname.c \
34         error.c \
35         exitfail.c \
36         fatal.c \
37         full-write.c \
38         getopt.c \
39         getopt1.c \
40         hash.c \
41         mempcpy.c \
42         paxerror.c \
43         paxexit.c \
44         paxnames.c \
45         quote.c \
46         quotearg.c \
47         rtapelib.c \
48         safe-read.c \
49         safe-write.c \
50         strchrnul.c \
51         stripslash.c \
52         strndup.c \
53         strnlen.c \
54         umaxtostr.c \
55         utimens.c \
56         xalloc-die.c \
57         xmalloc.c \
58         xstrndup.c \
59         alloca.h \
60         getopt.h
61
62 CLEANFILES+= alloca.h getopt.h
63
64 getopt.h: getopt_.h
65         ln -fs ${.ALLSRC} ${.TARGET}
66
67 alloca.h: alloca_.h
68         ln -fs ${.ALLSRC} ${.TARGET}
69
70 CFLAGS+=-I${.OBJDIR} -I${.CURDIR} -I${CPIODIR}/lib -I${CPIODIR}/src \
71         -DHAVE_CONFIG_H -DHAVE_MKFIFO -DHAVE_SETLOCALE -DHAVE_LSTAT
72
73 gcpio.1: ${CPIODIR}/doc/cpio.1
74         cat ${CPIODIR}/doc/cpio.1 >gcpio.1
75
76 SYMLINKS=gcpio ${BINDIR}/cpio
77 MLINKS=gcpio.1 cpio.1
78
79 .include <bsd.prog.mk>