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.if ${MK_ZFS} != "no" 23SRCS+= zfs.c 24CFLAGS+=-I${SRCDIR}/zfs \ 25 -I${SRCTOP}/stand/libsa \ 26 -I${SRCTOP}/sys/cddl/boot 27 28CFLAGS+= -DHAVE_ZFS 29 30.include "${SRCDIR}/zfs/Makefile.inc" 31.endif 32 33.include "${SRCDIR}/cd9660/Makefile.inc" 34.include "${SRCDIR}/ffs/Makefile.inc" 35.include "${SRCDIR}/msdos/Makefile.inc" 36 37CFLAGS+=-DHAVE_STRUCT_STAT_ST_FLAGS=1 38 39.PATH: ${SRCTOP}/contrib/mtree 40CFLAGS+=-I${SRCTOP}/contrib/mtree 41SRCS+= getid.c misc.c spec.c 42 43.PATH: ${SRCTOP}/contrib/mknod 44CFLAGS+=-I${SRCTOP}/contrib/mknod 45SRCS+= pack_dev.c 46 47CFLAGS+= -I${SRCTOP}/lib/libnetbsd 48LIBADD= netbsd util sbuf 49 50HAS_TESTS= 51SUBDIR.${MK_TESTS}+= tests 52 53.include <bsd.prog.mk> 54