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 23 24.PATH: ${SRCTOP}/contrib/mtree 25CFLAGS+=-I${SRCTOP}/contrib/mtree 26SRCS+= getid.c misc.c spec.c 27 28.PATH: ${SRCTOP}/contrib/mknod 29CFLAGS+=-I${SRCTOP}/contrib/mknod 30SRCS+= pack_dev.c 31 32.PATH: ${SRCTOP}/sys/ufs/ffs 33SRCS+= ffs_tables.c 34 35CFLAGS+= -I${SRCTOP}/lib/libnetbsd 36LIBADD= netbsd util sbuf 37 38SUBDIR.${MK_TESTS}+= tests 39 40.include <bsd.prog.mk> 41