Makefile revision 129215
133965Sjdp#       @(#)Makefile	8.1 (Berkeley) 5/31/93
233965Sjdp# $FreeBSD: head/bin/pax/Makefile 129215 2004-05-14 13:31:21Z cognet $
333965Sjdp
433965Sjdp# To install on versions prior to BSD 4.4 the following may have to be
533965Sjdp# defined with CFLAGS +=
633965Sjdp#
733965Sjdp# -DNET2_STAT	Use NET2 or older stat structure. The version of the
833965Sjdp# 		stat structure is easily determined by looking at the
933965Sjdp# 		basic type of an off_t (often defined in the file:
1033965Sjdp# 		/usr/include/sys/types.h). If off_t is a long (and is
1133965Sjdp# 		NOT A quad) then you must define NET2_STAT.
1233965Sjdp# 		This define is important, as if you do have a quad_t
1333965Sjdp# 		off_t and define NET2_STAT, pax will compile but will
1433965Sjdp# 		NOT RUN PROPERLY.
1533965Sjdp#
1633965Sjdp# -DNET2_FTS	Use the older NET2 fts. To identify the version,
1733965Sjdp# 		examine the file: /usr/include/fts.h. If FTS_COMFOLLOW
1833965Sjdp# 		is not defined then you must define NET2_FTS.
1933965Sjdp# 		Pax may not compile if this not (un)defined properly.
2033965Sjdp#
2133965Sjdp# -DNET2_REGEX	Use the older regexp.h not regex.h. The regex version
2233965Sjdp# 		is determined by looking at the value returned by
23# 		regexec() (man 3 regexec). If regexec return a 1 for
24# 		success (and NOT a 0 for success) you have the older
25# 		regex routines and must define NET2_REGEX.
26# 		Pax may not compile if this not (un)defined properly.
27
28PROG=   pax
29SRCS=	ar_io.c ar_subs.c buf_subs.c cache.c cpio.c file_subs.c ftree.c \
30	gen_subs.c getoldopt.c options.c pat_rep.c pax.c sel_subs.c \
31	tables.c tar.c tty_subs.c
32#XXX NOTYET
33#MAN=	pax.1 tar.1 cpio.1
34#LINKS=	${BINDIR}/pax ${BINDIR}/tar ${BINDIR}/pax ${BINDIR}/cpio
35
36.if ${MACHINE_ARCH} == "arm"
37WARNS?=	3
38.endif
39
40.include <bsd.prog.mk>
41