11556Srgrimes#       @(#)Makefile	8.1 (Berkeley) 5/31/93
250471Speter# $FreeBSD$
31556Srgrimes
4262951Sjmmv.include <bsd.own.mk>
5262951Sjmmv
61556Srgrimes# To install on versions prior to BSD 4.4 the following may have to be
71556Srgrimes# defined with CFLAGS +=
81556Srgrimes#
91556Srgrimes# -DNET2_STAT	Use NET2 or older stat structure. The version of the
101556Srgrimes# 		stat structure is easily determined by looking at the
111556Srgrimes# 		basic type of an off_t (often defined in the file:
121556Srgrimes# 		/usr/include/sys/types.h). If off_t is a long (and is
131556Srgrimes# 		NOT A quad) then you must define NET2_STAT.
141556Srgrimes# 		This define is important, as if you do have a quad_t
151556Srgrimes# 		off_t and define NET2_STAT, pax will compile but will
161556Srgrimes# 		NOT RUN PROPERLY.
171556Srgrimes#
181556Srgrimes# -DNET2_FTS	Use the older NET2 fts. To identify the version,
191556Srgrimes# 		examine the file: /usr/include/fts.h. If FTS_COMFOLLOW
201556Srgrimes# 		is not defined then you must define NET2_FTS.
211556Srgrimes# 		Pax may not compile if this not (un)defined properly.
221556Srgrimes#
231556Srgrimes# -DNET2_REGEX	Use the older regexp.h not regex.h. The regex version
241556Srgrimes# 		is determined by looking at the value returned by
251556Srgrimes# 		regexec() (man 3 regexec). If regexec return a 1 for
261556Srgrimes# 		success (and NOT a 0 for success) you have the older
271556Srgrimes# 		regex routines and must define NET2_REGEX.
281556Srgrimes# 		Pax may not compile if this not (un)defined properly.
291556Srgrimes
301556SrgrimesPROG=   pax
3176351SkrisSRCS=	ar_io.c ar_subs.c buf_subs.c cache.c cpio.c file_subs.c ftree.c \
3276351Skris	gen_subs.c getoldopt.c options.c pat_rep.c pax.c sel_subs.c \
3376351Skris	tables.c tar.c tty_subs.c
341556Srgrimes
35262951Sjmmv.if ${MK_TESTS} != "no"
36262951SjmmvSUBDIR+=    tests
37262951Sjmmv.endif
38262951Sjmmv
391556Srgrimes.include <bsd.prog.mk>
40