1# $FreeBSD$ 2 3PROG= makefs 4 5CFLAGS+=-I${.CURDIR} 6 7SRCS= cd9660.c ffs.c \ 8 makefs.c \ 9 mtree.c \ 10 walk.c 11MAN= makefs.8 12 13WARNS?= 2 14 15.include "${.CURDIR}/cd9660/Makefile.inc" 16.include "${.CURDIR}/ffs/Makefile.inc" 17 18CFLAGS+=-DHAVE_STRUCT_STAT_ST_FLAGS=1 19CFLAGS+=-DHAVE_STRUCT_STAT_ST_GEN=1 20 21.PATH: ${.CURDIR}/../../contrib/mtree 22CFLAGS+=-I${.CURDIR}/../../contrib/mtree 23SRCS+= getid.c misc.c spec.c 24 25.PATH: ${.CURDIR}/../../contrib/mknod 26CFLAGS+=-I${.CURDIR}/../../contrib/mknod 27SRCS+= pack_dev.c 28 29.PATH: ${.CURDIR}/../../sys/ufs/ffs 30SRCS+= ffs_tables.c 31 32CFLAGS+= -I${.CURDIR}/../../lib/libnetbsd 33LIBNETBSDDIR= ${.OBJDIR}/../../lib/libnetbsd 34LIBNETBSD= ${LIBNETBSDDIR}/libnetbsd.a 35DPADD+= ${LIBNETBSD} 36LDADD+= ${LIBNETBSD} 37 38DPADD+= ${LIBSBUF} ${LIBUTIL} 39LDADD+= -lsbuf -lutil 40 41.include <bsd.prog.mk> 42