2008-12-19 18:47:46 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2016-10-25 16:21:38 +00:00
|
|
|
SRCDIR:=${.PARSEDIR:tA}
|
|
|
|
|
2015-10-22 05:32:45 +00:00
|
|
|
.include <src.opts.mk>
|
|
|
|
|
2008-12-19 18:47:46 +00:00
|
|
|
PROG= makefs
|
2010-11-07 16:05:04 +00:00
|
|
|
|
2016-10-25 16:21:38 +00:00
|
|
|
CFLAGS+=-I${SRCDIR}
|
2010-11-07 16:05:04 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2016-10-25 16:21:38 +00:00
|
|
|
.include "${SRCDIR}/cd9660/Makefile.inc"
|
|
|
|
.include "${SRCDIR}/ffs/Makefile.inc"
|
2008-12-19 18:47:46 +00:00
|
|
|
|
|
|
|
CFLAGS+=-DHAVE_STRUCT_STAT_ST_FLAGS=1
|
|
|
|
|
2016-10-25 16:21:38 +00:00
|
|
|
.PATH: ${SRCTOP}/contrib/mtree
|
|
|
|
CFLAGS+=-I${SRCTOP}/contrib/mtree
|
2013-05-09 14:43:36 +00:00
|
|
|
SRCS+= getid.c misc.c spec.c
|
|
|
|
|
2016-10-25 16:21:38 +00:00
|
|
|
.PATH: ${SRCTOP}/contrib/mknod
|
|
|
|
CFLAGS+=-I${SRCTOP}/contrib/mknod
|
2013-05-09 14:43:36 +00:00
|
|
|
SRCS+= pack_dev.c
|
2008-12-19 18:47:46 +00:00
|
|
|
|
2016-10-25 16:21:38 +00:00
|
|
|
.PATH: ${SRCTOP}/sys/ufs/ffs
|
2008-12-19 18:47:46 +00:00
|
|
|
SRCS+= ffs_tables.c
|
|
|
|
|
2016-10-25 16:21:38 +00:00
|
|
|
CFLAGS+= -I${SRCTOP}/lib/libnetbsd
|
2014-11-24 22:15:30 +00:00
|
|
|
LIBADD= netbsd util sbuf
|
2011-06-19 18:34:49 +00:00
|
|
|
|
2015-10-22 05:32:45 +00:00
|
|
|
.if ${MK_TESTS} != "no"
|
|
|
|
SUBDIR+= tests
|
|
|
|
.endif
|
|
|
|
|
2008-12-19 18:47:46 +00:00
|
|
|
.include <bsd.prog.mk>
|