xref: /freebsd/usr.sbin/makefs/Makefile (revision d511b20a693d77c1dc2491a62124471361eddd8e)
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
1101a0f853SOlivier HouchardSRCS=	cd9660.c ffs.c \
1201a0f853SOlivier Houchard	makefs.c \
13484b5c25SMarcel Moolenaar	mtree.c \
1401a0f853SOlivier Houchard	walk.c
15d347a0daSSam LefflerMAN=	makefs.8
16d347a0daSSam Leffler
177092a907SEd MasteWARNS?=	2
18d347a0daSSam Leffler
1946783b12SMarcel Moolenaar.include "${SRCDIR}/cd9660/Makefile.inc"
2046783b12SMarcel Moolenaar.include "${SRCDIR}/ffs/Makefile.inc"
21d347a0daSSam Leffler
22d347a0daSSam LefflerCFLAGS+=-DHAVE_STRUCT_STAT_ST_FLAGS=1
23d347a0daSSam Leffler
2446783b12SMarcel Moolenaar.PATH: ${SRCTOP}/contrib/mtree
2546783b12SMarcel MoolenaarCFLAGS+=-I${SRCTOP}/contrib/mtree
2643e8dbd3SBrooks DavisSRCS+=	getid.c misc.c spec.c
2743e8dbd3SBrooks Davis
2846783b12SMarcel Moolenaar.PATH: ${SRCTOP}/contrib/mknod
2946783b12SMarcel MoolenaarCFLAGS+=-I${SRCTOP}/contrib/mknod
3043e8dbd3SBrooks DavisSRCS+=	pack_dev.c
31d347a0daSSam Leffler
3246783b12SMarcel Moolenaar.PATH:	${SRCTOP}/sys/ufs/ffs
33d347a0daSSam LefflerSRCS+=	ffs_tables.c
34d347a0daSSam Leffler
3546783b12SMarcel MoolenaarCFLAGS+=	-I${SRCTOP}/lib/libnetbsd
362df4d962SBaptiste DaroussinLIBADD=		netbsd util sbuf
37484b5c25SMarcel Moolenaar
38*d511b20aSEnji CooperHAS_TESTS=
394b330699SEnji CooperSUBDIR.${MK_TESTS}+= tests
407bdfc3b7SEnji Cooper
41d347a0daSSam Leffler.include <bsd.prog.mk>
42