1# $FreeBSD$ 2 3SRCDIR:=${.PARSEDIR:tA} 4 5.include <src.opts.mk> 6 7PROG= makefs 8 9CFLAGS+=-I${SRCDIR} 10 11SRCS= cd9660.c ffs.c \ 12 makefs.c \ 13 mtree.c \ 14 walk.c 15MAN= makefs.8 16 17WARNS?= 2 18 19.include "${SRCDIR}/cd9660/Makefile.inc" 20.include "${SRCDIR}/ffs/Makefile.inc" 21 22CFLAGS+=-DHAVE_STRUCT_STAT_ST_FLAGS=1 23CFLAGS+=-DHAVE_STRUCT_STAT_ST_GEN=1 24 25.PATH: ${SRCTOP}/contrib/mtree 26CFLAGS+=-I${SRCTOP}/contrib/mtree 27SRCS+= getid.c misc.c spec.c 28 29.PATH: ${SRCTOP}/contrib/mknod 30CFLAGS+=-I${SRCTOP}/contrib/mknod 31SRCS+= pack_dev.c 32 33.PATH: ${SRCTOP}/sys/ufs/ffs 34SRCS+= ffs_tables.c 35 36CFLAGS+= -I${SRCTOP}/lib/libnetbsd 37LIBADD= netbsd util sbuf 38 39.if ${MK_TESTS} != "no" 40SUBDIR+= tests 41.endif 42 43.include <bsd.prog.mk> 44