1d347a0daSSam Leffler# $FreeBSD$ 2d347a0daSSam Leffler 3*46783b12SMarcel MoolenaarSRCDIR:=${.PARSEDIR:tA} 4*46783b12SMarcel Moolenaar 57bdfc3b7SEnji Cooper.include <src.opts.mk> 67bdfc3b7SEnji Cooper 7d347a0daSSam LefflerPROG= makefs 801a0f853SOlivier Houchard 9*46783b12SMarcel MoolenaarCFLAGS+=-I${SRCDIR} 1001a0f853SOlivier Houchard 1101a0f853SOlivier HouchardSRCS= cd9660.c ffs.c \ 1201a0f853SOlivier Houchard makefs.c \ 13484b5c25SMarcel Moolenaar mtree.c \ 1401a0f853SOlivier Houchard walk.c 15d347a0daSSam LefflerMAN= makefs.8 16d347a0daSSam Leffler 17d347a0daSSam LefflerWARNS?= 2 18d347a0daSSam Leffler 19*46783b12SMarcel Moolenaar.include "${SRCDIR}/cd9660/Makefile.inc" 20*46783b12SMarcel Moolenaar.include "${SRCDIR}/ffs/Makefile.inc" 21d347a0daSSam Leffler 22d347a0daSSam LefflerCFLAGS+=-DHAVE_STRUCT_STAT_ST_FLAGS=1 23d347a0daSSam LefflerCFLAGS+=-DHAVE_STRUCT_STAT_ST_GEN=1 24d347a0daSSam Leffler 25*46783b12SMarcel Moolenaar.PATH: ${SRCTOP}/contrib/mtree 26*46783b12SMarcel MoolenaarCFLAGS+=-I${SRCTOP}/contrib/mtree 2743e8dbd3SBrooks DavisSRCS+= getid.c misc.c spec.c 2843e8dbd3SBrooks Davis 29*46783b12SMarcel Moolenaar.PATH: ${SRCTOP}/contrib/mknod 30*46783b12SMarcel MoolenaarCFLAGS+=-I${SRCTOP}/contrib/mknod 3143e8dbd3SBrooks DavisSRCS+= pack_dev.c 32d347a0daSSam Leffler 33*46783b12SMarcel Moolenaar.PATH: ${SRCTOP}/sys/ufs/ffs 34d347a0daSSam LefflerSRCS+= ffs_tables.c 35d347a0daSSam Leffler 36*46783b12SMarcel MoolenaarCFLAGS+= -I${SRCTOP}/lib/libnetbsd 372df4d962SBaptiste DaroussinLIBADD= netbsd util sbuf 38484b5c25SMarcel Moolenaar 397bdfc3b7SEnji Cooper.if ${MK_TESTS} != "no" 407bdfc3b7SEnji CooperSUBDIR+= tests 417bdfc3b7SEnji Cooper.endif 427bdfc3b7SEnji Cooper 43d347a0daSSam Leffler.include <bsd.prog.mk> 44