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 19NO_WCAST_ALIGN= 20CSTD= c11 21 22.include "${SRCDIR}/cd9660/Makefile.inc" 23.include "${SRCDIR}/ffs/Makefile.inc" 24.include "${SRCDIR}/msdos/Makefile.inc" 25 26CFLAGS+=-DHAVE_STRUCT_STAT_ST_FLAGS=1 27 28.PATH: ${SRCTOP}/contrib/mtree 29CFLAGS+=-I${SRCTOP}/contrib/mtree 30SRCS+= getid.c misc.c spec.c 31 32.PATH: ${SRCTOP}/contrib/mknod 33CFLAGS+=-I${SRCTOP}/contrib/mknod 34SRCS+= pack_dev.c 35 36CFLAGS+= -I${SRCTOP}/lib/libnetbsd 37LIBADD= netbsd util sbuf 38 39HAS_TESTS= 40SUBDIR.${MK_TESTS}+= tests 41 42.include <bsd.prog.mk> 43