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