xref: /freebsd/usr.sbin/makefs/Makefile (revision 7bdfc3b75ef98dca58ce78b003216f8fface9fb9)
1d347a0daSSam Leffler#	$FreeBSD$
2d347a0daSSam Leffler
3*7bdfc3b7SEnji Cooper.include <src.opts.mk>
4*7bdfc3b7SEnji Cooper
5d347a0daSSam LefflerPROG=	makefs
601a0f853SOlivier Houchard
701a0f853SOlivier HouchardCFLAGS+=-I${.CURDIR}
801a0f853SOlivier Houchard
901a0f853SOlivier HouchardSRCS=	cd9660.c ffs.c \
1001a0f853SOlivier Houchard	makefs.c \
11484b5c25SMarcel Moolenaar	mtree.c \
1201a0f853SOlivier Houchard	walk.c
13d347a0daSSam LefflerMAN=	makefs.8
14d347a0daSSam Leffler
15d347a0daSSam LefflerWARNS?=	2
16d347a0daSSam Leffler
1701a0f853SOlivier Houchard.include "${.CURDIR}/cd9660/Makefile.inc"
1801a0f853SOlivier Houchard.include "${.CURDIR}/ffs/Makefile.inc"
19d347a0daSSam Leffler
20d347a0daSSam LefflerCFLAGS+=-DHAVE_STRUCT_STAT_ST_FLAGS=1
21d347a0daSSam LefflerCFLAGS+=-DHAVE_STRUCT_STAT_ST_GEN=1
22d347a0daSSam Leffler
2343e8dbd3SBrooks Davis.PATH: ${.CURDIR}/../../contrib/mtree
2443e8dbd3SBrooks DavisCFLAGS+=-I${.CURDIR}/../../contrib/mtree
2543e8dbd3SBrooks DavisSRCS+=	getid.c misc.c spec.c
2643e8dbd3SBrooks Davis
2743e8dbd3SBrooks Davis.PATH: ${.CURDIR}/../../contrib/mknod
2843e8dbd3SBrooks DavisCFLAGS+=-I${.CURDIR}/../../contrib/mknod
2943e8dbd3SBrooks DavisSRCS+=	pack_dev.c
30d347a0daSSam Leffler
31d347a0daSSam Leffler.PATH:	${.CURDIR}/../../sys/ufs/ffs
32d347a0daSSam LefflerSRCS+=	ffs_tables.c
33d347a0daSSam Leffler
3443e8dbd3SBrooks DavisCFLAGS+=	-I${.CURDIR}/../../lib/libnetbsd
352df4d962SBaptiste DaroussinLIBADD=		netbsd util sbuf
36484b5c25SMarcel Moolenaar
37*7bdfc3b7SEnji Cooper.if ${MK_TESTS} != "no"
38*7bdfc3b7SEnji CooperSUBDIR+=	tests
39*7bdfc3b7SEnji Cooper.endif
40*7bdfc3b7SEnji Cooper
41d347a0daSSam Leffler.include <bsd.prog.mk>
42