146783b12SMarcel MoolenaarSRCDIR:=${.PARSEDIR:tA} 246783b12SMarcel Moolenaar 37bdfc3b7SEnji Cooper.include <src.opts.mk> 47bdfc3b7SEnji Cooper 5d347a0daSSam LefflerPROG= makefs 601a0f853SOlivier Houchard 746783b12SMarcel MoolenaarCFLAGS+=-I${SRCDIR} 801a0f853SOlivier Houchard 998dc8da5SEd MasteSRCS= cd9660.c \ 1098dc8da5SEd Maste ffs.c \ 1101a0f853SOlivier Houchard makefs.c \ 1298dc8da5SEd Maste msdos.c \ 13484b5c25SMarcel Moolenaar mtree.c \ 1401a0f853SOlivier Houchard walk.c 15d347a0daSSam LefflerMAN= makefs.8 16d347a0daSSam Leffler 17cc1a53bcSMark JohnstonNO_WCAST_ALIGN= 186424881cSAlex RichardsonCSTD= c11 19d347a0daSSam Leffler 20240afd8cSMark Johnston.if ${MK_ZFS} != "no" 21240afd8cSMark JohnstonSRCS+= zfs.c 22240afd8cSMark JohnstonCFLAGS+=-I${SRCDIR}/zfs \ 23240afd8cSMark Johnston -I${SRCTOP}/stand/libsa \ 24240afd8cSMark Johnston -I${SRCTOP}/sys/cddl/boot 25240afd8cSMark Johnston 26240afd8cSMark JohnstonCFLAGS+= -DHAVE_ZFS 27240afd8cSMark Johnston 28240afd8cSMark Johnston.include "${SRCDIR}/zfs/Makefile.inc" 29240afd8cSMark Johnston.endif 30240afd8cSMark Johnston 3146783b12SMarcel Moolenaar.include "${SRCDIR}/cd9660/Makefile.inc" 3246783b12SMarcel Moolenaar.include "${SRCDIR}/ffs/Makefile.inc" 3398dc8da5SEd Maste.include "${SRCDIR}/msdos/Makefile.inc" 34d347a0daSSam Leffler 35d347a0daSSam LefflerCFLAGS+=-DHAVE_STRUCT_STAT_ST_FLAGS=1 36d347a0daSSam Leffler 3746783b12SMarcel Moolenaar.PATH: ${SRCTOP}/contrib/mtree 3846783b12SMarcel MoolenaarCFLAGS+=-I${SRCTOP}/contrib/mtree 3943e8dbd3SBrooks DavisSRCS+= getid.c misc.c spec.c 4043e8dbd3SBrooks Davis 4146783b12SMarcel Moolenaar.PATH: ${SRCTOP}/contrib/mknod 4246783b12SMarcel MoolenaarCFLAGS+=-I${SRCTOP}/contrib/mknod 4343e8dbd3SBrooks DavisSRCS+= pack_dev.c 44d347a0daSSam Leffler 4546783b12SMarcel MoolenaarCFLAGS+= -I${SRCTOP}/lib/libnetbsd 462df4d962SBaptiste DaroussinLIBADD= netbsd util sbuf 47484b5c25SMarcel Moolenaar 48d511b20aSEnji CooperHAS_TESTS= 494b330699SEnji CooperSUBDIR.${MK_TESTS}+= tests 507bdfc3b7SEnji Cooper 51*5fc8ed93SJohn Baldwin# cd9660_generate_path_table adds a global variable to an on-stack 52*5fc8ed93SJohn Baldwin# TAILQ which temporarily stores a pointer to the on-stack TAILQ head 53*5fc8ed93SJohn Baldwin# in the global 54*5fc8ed93SJohn BaldwinCWARNFLAGS.cd9660.c+= ${NO_WDANGLING_POINTER} 55*5fc8ed93SJohn Baldwin 56d347a0daSSam Leffler.include <bsd.prog.mk> 57