NetBSD/usr.sbin/makefs/Makefile

46 lines
1010 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.22 2008/08/29 00:02:25 gmcgarry Exp $
#
2002-09-18 07:54:26 +04:00
.include <bsd.own.mk>
PROG= makefs
SRCS= buf.c \
cd9660.c cd9660_strings.c cd9660_debug.c cd9660_eltorito.c \
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 \
spec.c \
ufs_bmap.c \
walk.c
2001-10-26 20:12:30 +04:00
MAN= makefs.8
2002-09-18 07:54:26 +04:00
MKNODSRC= ${NETBSDSRCDIR}/sbin/mknod
MTREESRC= ${NETBSDSRCDIR}/usr.sbin/mtree
UFSSRC= ${NETBSDSRCDIR}/sys/ufs
CD9660SRC= ${NETBSDSRCDIR}/sys/fs/cd9660
CPPFLAGS+= -I${.CURDIR} \
-I${MKNODSRC} -I${MTREESRC} -I${CD9660SRC}
.PATH: ${.CURDIR}/ffs ${UFSSRC}/ffs \
${.CURDIR}/cd9660 ${CD9660SRC} \
${MKNODSRC} ${MTREESRC}
.if (${HOSTPROG:U} == "")
DPADD+= ${LIBUTIL}
LDADD+= -lutil
.endif
WARNS?= 3
.if !defined(HOSTPROGNAME)
.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
.for f in cd9660_debug cd9660_write
COPTS.${f}.c+= -Wno-pointer-sign
.endfor
.endif
.endif
.include <bsd.prog.mk>