1 # $NetBSD: Makefile,v 1.39 2010/04/23 19:41:02 joerg Exp $
2 # @(#)Makefile 8.1 (Berkeley) 5/31/93
11 SRCS
= ar_io.c ar_subs.c buf_subs.c file_subs.c ftree.c\
12 gen_subs.c getoldopt.c options.c pat_rep.c pax.c sel_subs.c tables.c\
15 .if defined
(SMALLPROG
)
16 CPPFLAGS
+= -DSMALL
-DNO_CPIO
18 SRCS
+= getid.c spec.c misc.c pack_dev.c cpio.c
19 CPPFLAGS
+= -I
${NETBSDSRCDIR}/usr.sbin
/mtree \
20 -I
${NETBSDSRCDIR}/sbin
/mknod
21 .PATH
: ${NETBSDSRCDIR}/usr.sbin
/mtree \
22 ${NETBSDSRCDIR}/sbin
/mknod
24 .if
(${HOSTPROG
:U
} == "")
30 MAN
= pax
.1 tar.1 cpio
.1
36 # XXX: Interix does not have it; we need a conditional for it.
37 CPPFLAGS
+= -DHAVE_SYS_MTIO_H
39 .if
${MKBSDTAR} == "no"
40 LINKS
+= ${BINDIR}/pax
${BINDIR}/tar
41 SYMLINKS
+=${BINDIR}/tar /usr
/bin
/tar
43 SYMLINKS
+=${BINDIR}/tar /usr
/bin
/bsdtar
46 LINKS
+= ${BINDIR}/pax
${BINDIR}/cpio
47 SYMLINKS
+=${BINDIR}/cpio
/usr
/bin
/cpio
51 .if
!defined
(HOSTPROG
) && !defined
(SMALLPROG
)
52 CPPFLAGS
+= -DSUPPORT_RMT
60 CPPFLAGS
+= -Dlchown
=chown
-Dlchmod
=chmod
62 MLINKS
+= pax
.1 bsdtar
.1
63 .
endif # defined(__MINIX)
65 .
include <bsd.prog.mk
>