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