Home | History | Annotate | Line # | Download | only in pax
      1  1.42     lukem #	$NetBSD: Makefile,v 1.42 2023/06/03 09:09:01 lukem 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.40       uwe MAN=	pax.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.38       dbj 
     32  1.38       dbj # XXX: Interix does not have it; we need a conditional for it.
     33  1.38       dbj CPPFLAGS+=	-DHAVE_SYS_MTIO_H
     34  1.38       dbj 
     35  1.39     joerg .if ${MKBSDTAR} == "no"
     36  1.24  christos LINKS+=	${BINDIR}/pax ${BINDIR}/tar
     37  1.25   thorpej SYMLINKS+=${BINDIR}/tar /usr/bin/tar
     38  1.40       uwe MAN+=tar.1
     39  1.25   thorpej 
     40  1.24  christos LINKS+=	${BINDIR}/pax ${BINDIR}/cpio
     41  1.25   thorpej SYMLINKS+=${BINDIR}/cpio /usr/bin/cpio
     42  1.40       uwe MAN+=cpio.1
     43  1.39     joerg .endif
     44  1.28     lukem .endif	# }	! HOSTPROG
     45   1.1       jtc 
     46  1.22  christos .if !defined(HOSTPROG) && !defined(SMALLPROG)
     47  1.21   thorpej CPPFLAGS+=	-DSUPPORT_RMT
     48  1.21   thorpej 
     49  1.27     lukem LDADD+=	-lrmt
     50  1.27     lukem DPADD+=	${LIBRMT}
     51  1.23     lukem .endif
     52  1.16        tv 
     53  1.42     lukem COPTS.tar.c+=	${CC_WNO_STRINGOP_TRUNCATION}
     54  1.41       mrg 
     55   1.1       jtc .include <bsd.prog.mk>
     56