summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/cpio/Makefile
blob: c31527be94aff18c2d90e4339450eca3b941fd13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# $FreeBSD$

CPIODIR= ${.CURDIR}/../../../contrib/cpio
.PATH: ${CPIODIR}/lib ${CPIODIR}/src ${CPIODIR}/doc

SUBDIR=	doc

PROG=	gcpio
SRCS=   copyin.c \
	copyout.c \
	copypass.c \
	defer.c \
	dstring.c \
	filemode.c \
	global.c \
	idcache.c \
	main.c \
	makepath.c \
	tar.c \
	userspec.c \
	util.c \
	argp-ba.c \
	argp-eexst.c \
	argp-fmtstream.c \
	argp-fs-xinl.c \
	argp-help.c \
	argp-parse.c \
	argp-pin.c \
	argp-pv.c \
	argp-pvh.c \
	argp-xinl.c \
	basename.c \
	dirname.c \
	error.c \
	exitfail.c \
	fatal.c \
	full-write.c \
	getopt.c \
	getopt1.c \
	hash.c \
	mempcpy.c \
	paxerror.c \
	paxexit.c \
	paxnames.c \
	quote.c \
	quotearg.c \
	rtapelib.c \
	safe-read.c \
	safe-write.c \
	strchrnul.c \
	stripslash.c \
	strndup.c \
	strnlen.c \
	umaxtostr.c \
	utimens.c \
	xalloc-die.c \
	xmalloc.c \
	xstrndup.c \
	alloca.h \
	getopt.h
CSTD=gnu89

CLEANFILES+= alloca.h getopt.h

getopt.h: getopt_.h
	ln -fs ${.ALLSRC} ${.TARGET}

alloca.h: alloca_.h
	ln -fs ${.ALLSRC} ${.TARGET}

CFLAGS+=-I${.OBJDIR} -I${.CURDIR} -I${CPIODIR}/lib -I${CPIODIR}/src \
	-DHAVE_CONFIG_H -DHAVE_MKFIFO -DHAVE_SETLOCALE -DHAVE_LSTAT

gcpio.1: ${CPIODIR}/doc/cpio.1
	cat ${CPIODIR}/doc/cpio.1 >gcpio.1

SYMLINKS=gcpio ${BINDIR}/cpio
MLINKS=gcpio.1 cpio.1

.include <bsd.prog.mk>
OpenPOWER on IntegriCloud