2011-07-19 02:52:37 +04:00
|
|
|
# $NetBSD: Makefile,v 1.29 2011/07/18 22:52:37 tron Exp $
|
2001-10-26 10:50:48 +04:00
|
|
|
#
|
|
|
|
|
2009-04-22 19:23:01 +04:00
|
|
|
WARNS?= 3 # XXX -Wsign-compare
|
|
|
|
|
2002-09-18 07:54:26 +04:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2001-10-26 10:50:48 +04:00
|
|
|
PROG= makefs
|
2011-07-19 02:52:37 +04:00
|
|
|
SRCS= cd9660.c ffs.c v7fs.c \
|
2005-08-19 05:09:54 +04:00
|
|
|
getid.c \
|
2009-01-16 22:39:52 +03:00
|
|
|
makefs.c misc.c \
|
2005-08-19 05:09:54 +04:00
|
|
|
pack_dev.c \
|
2006-12-14 23:09:35 +03:00
|
|
|
spec.c \
|
2005-08-19 05:09:54 +04:00
|
|
|
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
|
2001-10-26 10:50:48 +04:00
|
|
|
|
2009-01-16 22:39:52 +03:00
|
|
|
CPPFLAGS+= -I${.CURDIR} -I${MKNODSRC} -I${MTREESRC}
|
|
|
|
.PATH: ${MKNODSRC} ${MTREESRC}
|
|
|
|
|
|
|
|
.include "${.CURDIR}/cd9660/Makefile.inc"
|
|
|
|
.include "${.CURDIR}/ffs/Makefile.inc"
|
2011-07-18 12:58:38 +04:00
|
|
|
.include "${.CURDIR}/v7fs/Makefile.inc"
|
2006-12-14 23:09:35 +03:00
|
|
|
|
2011-07-19 02:52:37 +04:00
|
|
|
.if !defined(HOSTPROG)
|
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
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|