daddfa7cc7
- cd9660 relies on an #include "iso.h" but does not build any .c files out of source, so remove reach-over .PATH - ffs does not rely on any sys/ headers, so remove -I from CFLAGS. - ffs_tables from sys/ is used by ffs; move the SRCS entry from the top- level Makefile to ffs' Makefile.inc. Sponsored by: The FreeBSD Foundation
39 lines
599 B
Makefile
39 lines
599 B
Makefile
# $FreeBSD$
|
|
|
|
SRCDIR:=${.PARSEDIR:tA}
|
|
|
|
.include <src.opts.mk>
|
|
|
|
PROG= makefs
|
|
|
|
CFLAGS+=-I${SRCDIR}
|
|
|
|
SRCS= cd9660.c ffs.c \
|
|
makefs.c \
|
|
mtree.c \
|
|
walk.c
|
|
MAN= makefs.8
|
|
|
|
WARNS?= 2
|
|
|
|
.include "${SRCDIR}/cd9660/Makefile.inc"
|
|
.include "${SRCDIR}/ffs/Makefile.inc"
|
|
|
|
CFLAGS+=-DHAVE_STRUCT_STAT_ST_FLAGS=1
|
|
|
|
.PATH: ${SRCTOP}/contrib/mtree
|
|
CFLAGS+=-I${SRCTOP}/contrib/mtree
|
|
SRCS+= getid.c misc.c spec.c
|
|
|
|
.PATH: ${SRCTOP}/contrib/mknod
|
|
CFLAGS+=-I${SRCTOP}/contrib/mknod
|
|
SRCS+= pack_dev.c
|
|
|
|
CFLAGS+= -I${SRCTOP}/lib/libnetbsd
|
|
LIBADD= netbsd util sbuf
|
|
|
|
HAS_TESTS=
|
|
SUBDIR.${MK_TESTS}+= tests
|
|
|
|
.include <bsd.prog.mk>
|