Home | History | Annotate | Line # | Download | only in pax
Makefile revision 1.37.12.3
      1  1.37.12.3      matt #	$NetBSD: Makefile,v 1.37.12.3 2010/04/21 05:15:28 matt Exp $
      2        1.4       cgd #       @(#)Makefile	8.1 (Berkeley) 5/31/93
      3        1.1       jtc 
      4       1.19     lukem .include <bsd.own.mk>
      5       1.19     lukem 
      6        1.1       jtc PROG=   pax
      7       1.34  christos SRCS=	ar_io.c ar_subs.c buf_subs.c file_subs.c ftree.c\
      8        1.3       jtc 	gen_subs.c getoldopt.c options.c pat_rep.c pax.c sel_subs.c tables.c\
      9       1.17     lukem 	tar.c tty_subs.c
     10       1.12     lukem 
     11       1.28     lukem .if defined(SMALLPROG)
     12       1.34  christos CPPFLAGS+=	-DSMALL -DNO_CPIO
     13       1.17     lukem .else
     14       1.35        he SRCS+=		getid.c spec.c misc.c pack_dev.c cpio.c
     15       1.19     lukem CPPFLAGS+=	-I${NETBSDSRCDIR}/usr.sbin/mtree \
     16       1.35        he 		-I${NETBSDSRCDIR}/sbin/mknod
     17       1.19     lukem .PATH:		${NETBSDSRCDIR}/usr.sbin/mtree \
     18       1.35        he 		${NETBSDSRCDIR}/sbin/mknod
     19       1.35        he 
     20       1.36    bouyer .if (${HOSTPROG:U} == "")
     21       1.36    bouyer DPADD+= ${LIBUTIL}
     22       1.35        he LDADD+= -lutil
     23       1.36    bouyer .endif
     24       1.17     lukem .endif
     25       1.17     lukem 
     26       1.24  christos MAN=	pax.1 tar.1 cpio.1
     27       1.25   thorpej 
     28       1.28     lukem .if defined(HOSTPROG)
     29       1.28     lukem CPPFLAGS+=	-DHOSTPROG
     30       1.28     lukem .else	# {	! HOSTPROG
     31  1.37.12.3      matt 
     32  1.37.12.1      matt # XXX: Interix does not have it; we need a conditional for it.
     33  1.37.12.2      matt CPPFLAGS+=	-DHAVE_SYS_MTIO_H
     34  1.37.12.1      matt 
     35       1.24  christos LINKS+=	${BINDIR}/pax ${BINDIR}/tar
     36       1.25   thorpej SYMLINKS+=${BINDIR}/tar /usr/bin/tar
     37       1.25   thorpej 
     38       1.24  christos LINKS+=	${BINDIR}/pax ${BINDIR}/cpio
     39       1.25   thorpej SYMLINKS+=${BINDIR}/cpio /usr/bin/cpio
     40       1.28     lukem .endif	# }	! HOSTPROG
     41        1.1       jtc 
     42       1.22  christos .if !defined(HOSTPROG) && !defined(SMALLPROG)
     43       1.21   thorpej CPPFLAGS+=	-DSUPPORT_RMT
     44       1.21   thorpej 
     45       1.27     lukem LDADD+=	-lrmt
     46       1.27     lukem DPADD+=	${LIBRMT}
     47       1.23     lukem .endif
     48       1.16        tv 
     49        1.1       jtc .include <bsd.prog.mk>
     50