2008-12-19 18:47:46 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PROG= makefs
|
2010-11-07 16:05:04 +00:00
|
|
|
|
|
|
|
CFLAGS+=-I${.CURDIR}
|
|
|
|
|
|
|
|
SRCS= cd9660.c ffs.c \
|
|
|
|
makefs.c \
|
2011-06-19 18:34:49 +00:00
|
|
|
mtree.c \
|
2010-11-07 16:05:04 +00:00
|
|
|
walk.c
|
2008-12-19 18:47:46 +00:00
|
|
|
MAN= makefs.8
|
|
|
|
|
|
|
|
WARNS?= 2
|
|
|
|
|
2010-11-07 16:05:04 +00:00
|
|
|
.include "${.CURDIR}/cd9660/Makefile.inc"
|
|
|
|
.include "${.CURDIR}/ffs/Makefile.inc"
|
2008-12-19 18:47:46 +00:00
|
|
|
|
|
|
|
CFLAGS+=-DHAVE_STRUCT_STAT_ST_FLAGS=1
|
|
|
|
CFLAGS+=-DHAVE_STRUCT_STAT_ST_GEN=1
|
|
|
|
|
2013-05-09 14:43:36 +00:00
|
|
|
.PATH: ${.CURDIR}/../../contrib/mtree
|
|
|
|
CFLAGS+=-I${.CURDIR}/../../contrib/mtree
|
|
|
|
SRCS+= getid.c misc.c spec.c
|
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/../../contrib/mknod
|
|
|
|
CFLAGS+=-I${.CURDIR}/../../contrib/mknod
|
|
|
|
SRCS+= pack_dev.c
|
2008-12-19 18:47:46 +00:00
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/../../sys/ufs/ffs
|
|
|
|
SRCS+= ffs_tables.c
|
|
|
|
|
2013-05-09 14:43:36 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../../lib/libnetbsd
|
|
|
|
LIBNETBSDDIR= ${.OBJDIR}/../../lib/libnetbsd
|
|
|
|
LIBNETBSD= ${LIBNETBSDDIR}/libnetbsd.a
|
|
|
|
DPADD+= ${LIBNETBSD}
|
|
|
|
LDADD+= ${LIBNETBSD}
|
|
|
|
|
|
|
|
DPADD+= ${LIBSBUF} ${LIBUTIL}
|
|
|
|
LDADD+= -lsbuf -lutil
|
2011-06-19 18:34:49 +00:00
|
|
|
|
2008-12-19 18:47:46 +00:00
|
|
|
.include <bsd.prog.mk>
|