1 2SRCDIR:=${.PARSEDIR:tA} 3 4.include <src.opts.mk> 5 6PROG= makefs 7 8CFLAGS+=-I${SRCDIR} 9 10SRCS= cd9660.c \ 11 ffs.c \ 12 makefs.c \ 13 msdos.c \ 14 mtree.c \ 15 walk.c 16MAN= makefs.8 17 18NO_WCAST_ALIGN= 19CSTD= c11 20 21.if ${MK_ZFS} != "no" 22SRCS+= zfs.c 23CFLAGS+=-I${SRCDIR}/zfs \ 24 -I${SRCTOP}/stand/libsa \ 25 -I${SRCTOP}/sys/cddl/boot 26 27CFLAGS+= -DHAVE_ZFS 28 29.include "${SRCDIR}/zfs/Makefile.inc" 30.endif 31 32.include "${SRCDIR}/cd9660/Makefile.inc" 33.include "${SRCDIR}/ffs/Makefile.inc" 34.include "${SRCDIR}/msdos/Makefile.inc" 35 36CFLAGS+=-DHAVE_STRUCT_STAT_ST_FLAGS=1 37 38.PATH: ${SRCTOP}/contrib/mtree 39CFLAGS+=-I${SRCTOP}/contrib/mtree 40SRCS+= getid.c misc.c spec.c 41 42.PATH: ${SRCTOP}/contrib/mknod 43CFLAGS+=-I${SRCTOP}/contrib/mknod 44SRCS+= pack_dev.c 45 46CFLAGS+= -I${SRCTOP}/lib/libnetbsd 47LIBADD= netbsd util sbuf 48 49HAS_TESTS= 50SUBDIR.${MK_TESTS}+= tests 51 52.include <bsd.prog.mk> 53