xref: /freebsd/usr.sbin/makefs/Makefile (revision cc1a53bc1aea0675d64e9547cdca241612906592)
1d347a0daSSam Leffler#	$FreeBSD$
2d347a0daSSam Leffler
346783b12SMarcel MoolenaarSRCDIR:=${.PARSEDIR:tA}
446783b12SMarcel Moolenaar
57bdfc3b7SEnji Cooper.include <src.opts.mk>
67bdfc3b7SEnji Cooper
7d347a0daSSam LefflerPROG=	makefs
801a0f853SOlivier Houchard
946783b12SMarcel MoolenaarCFLAGS+=-I${SRCDIR}
1001a0f853SOlivier Houchard
1198dc8da5SEd MasteSRCS=	cd9660.c \
1298dc8da5SEd Maste	ffs.c \
1301a0f853SOlivier Houchard	makefs.c \
1498dc8da5SEd Maste	msdos.c \
15484b5c25SMarcel Moolenaar	mtree.c \
1601a0f853SOlivier Houchard	walk.c
17d347a0daSSam LefflerMAN=	makefs.8
18d347a0daSSam Leffler
19*cc1a53bcSMark JohnstonNO_WCAST_ALIGN=
206424881cSAlex RichardsonCSTD=	c11
21d347a0daSSam Leffler
2246783b12SMarcel Moolenaar.include "${SRCDIR}/cd9660/Makefile.inc"
2346783b12SMarcel Moolenaar.include "${SRCDIR}/ffs/Makefile.inc"
2498dc8da5SEd Maste.include "${SRCDIR}/msdos/Makefile.inc"
25d347a0daSSam Leffler
26d347a0daSSam LefflerCFLAGS+=-DHAVE_STRUCT_STAT_ST_FLAGS=1
27d347a0daSSam Leffler
2846783b12SMarcel Moolenaar.PATH: ${SRCTOP}/contrib/mtree
2946783b12SMarcel MoolenaarCFLAGS+=-I${SRCTOP}/contrib/mtree
3043e8dbd3SBrooks DavisSRCS+=	getid.c misc.c spec.c
3143e8dbd3SBrooks Davis
3246783b12SMarcel Moolenaar.PATH: ${SRCTOP}/contrib/mknod
3346783b12SMarcel MoolenaarCFLAGS+=-I${SRCTOP}/contrib/mknod
3443e8dbd3SBrooks DavisSRCS+=	pack_dev.c
35d347a0daSSam Leffler
3646783b12SMarcel MoolenaarCFLAGS+=	-I${SRCTOP}/lib/libnetbsd
372df4d962SBaptiste DaroussinLIBADD=		netbsd util sbuf
38484b5c25SMarcel Moolenaar
39d511b20aSEnji CooperHAS_TESTS=
404b330699SEnji CooperSUBDIR.${MK_TESTS}+= tests
417bdfc3b7SEnji Cooper
42d347a0daSSam Leffler.include <bsd.prog.mk>
43