2008-08-29 04:02:21 +04:00
|
|
|
# $NetBSD: Makefile,v 1.22 2008/08/29 00:02:25 gmcgarry Exp $
|
2001-10-26 10:50:48 +04:00
|
|
|
#
|
|
|
|
|
2002-09-18 07:54:26 +04:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2001-10-26 10:50:48 +04:00
|
|
|
PROG= makefs
|
2005-08-19 05:09:54 +04:00
|
|
|
SRCS= buf.c \
|
2005-08-13 05:53:01 +04:00
|
|
|
cd9660.c cd9660_strings.c cd9660_debug.c cd9660_eltorito.c \
|
2005-08-19 05:09:54 +04:00
|
|
|
cd9660_write.c cd9660_conversion.c iso9660_rrip.c \
|
|
|
|
ffs.c ffs_alloc.c ffs_balloc.c ffs_bswap.c ffs_subr.c ffs_tables.c \
|
|
|
|
getid.c \
|
|
|
|
makefs.c misc.c mkfs.c \
|
|
|
|
pack_dev.c \
|
2006-12-14 23:09:35 +03:00
|
|
|
spec.c \
|
2005-08-19 05:09:54 +04:00
|
|
|
ufs_bmap.c \
|
|
|
|
walk.c
|
2001-10-26 20:12:30 +04:00
|
|
|
MAN= makefs.8
|
2001-10-26 10:50:48 +04:00
|
|
|
|
2002-09-18 07:54:26 +04:00
|
|
|
MKNODSRC= ${NETBSDSRCDIR}/sbin/mknod
|
|
|
|
MTREESRC= ${NETBSDSRCDIR}/usr.sbin/mtree
|
|
|
|
UFSSRC= ${NETBSDSRCDIR}/sys/ufs
|
2005-08-13 05:53:01 +04:00
|
|
|
CD9660SRC= ${NETBSDSRCDIR}/sys/fs/cd9660
|
2001-10-26 10:50:48 +04:00
|
|
|
|
2002-01-07 19:27:22 +03:00
|
|
|
CPPFLAGS+= -I${.CURDIR} \
|
2006-12-14 23:09:35 +03:00
|
|
|
-I${MKNODSRC} -I${MTREESRC} -I${CD9660SRC}
|
2002-01-07 19:27:22 +03:00
|
|
|
.PATH: ${.CURDIR}/ffs ${UFSSRC}/ffs \
|
2005-08-13 05:53:01 +04:00
|
|
|
${.CURDIR}/cd9660 ${CD9660SRC} \
|
2006-12-14 23:09:35 +03:00
|
|
|
${MKNODSRC} ${MTREESRC}
|
|
|
|
|
2006-12-16 15:59:16 +03:00
|
|
|
.if (${HOSTPROG:U} == "")
|
2006-12-14 23:09:35 +03:00
|
|
|
DPADD+= ${LIBUTIL}
|
2006-12-16 15:59:16 +03:00
|
|
|
LDADD+= -lutil
|
|
|
|
.endif
|
2001-10-26 10:50:48 +04:00
|
|
|
|
2005-08-13 05:53:01 +04:00
|
|
|
WARNS?= 3
|
2001-10-26 10:50:48 +04:00
|
|
|
|
2006-05-12 05:18:25 +04:00
|
|
|
.if !defined(HOSTPROGNAME)
|
2008-08-29 04:02:21 +04:00
|
|
|
.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
|
2006-05-12 03:16:28 +04:00
|
|
|
.for f in cd9660_debug cd9660_write
|
|
|
|
COPTS.${f}.c+= -Wno-pointer-sign
|
|
|
|
.endfor
|
|
|
|
.endif
|
2006-05-12 05:18:25 +04:00
|
|
|
.endif
|
2006-05-12 03:16:28 +04:00
|
|
|
|
2001-10-26 10:50:48 +04:00
|
|
|
.include <bsd.prog.mk>
|