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