NetBSD/usr.sbin/makefs/Makefile
tv 9fbd88883c Roll in fixes to permit cross-compiling from non-NetBSD hosts. This
round has been tested on Solaris/x86 and Linux hosts.

* Add host tools cap_mkdb, ctags, m4, uudecode.
* Protect __RCSID() and __COPYRIGHT() better.
* Reduce the number of places that need to include "config.h", to keep
  sources closer to their "vanilla" versions.
* Add more compat #defines and autoconf-checked functions.
2002-01-31 22:43:33 +00:00

30 lines
705 B
Makefile

# $NetBSD: Makefile,v 1.8 2002/01/31 22:44:02 tv Exp $
#
PROG= makefs
SRCS= makefs.c walk.c \
ffs.c mkfs.c buf.c \
getid.c misc.c spec.c pack_dev.c stat_flags.c strsuftoull.c \
ffs_alloc.c ffs_balloc.c ffs_bswap.c ffs_subr.c ffs_tables.c ufs_bmap.c
MAN= makefs.8
DDSRC= ${.CURDIR}/../../bin/dd
LSSRC= ${.CURDIR}/../../bin/ls
MKNODSRC= ${.CURDIR}/../../sbin/mknod
MTREESRC= ${.CURDIR}/../../usr.sbin/mtree
UFSSRC= ${.CURDIR}/../../sys/ufs
CPPFLAGS+= -I${.CURDIR} \
-I${LSSRC} -I${MKNODSRC} -I${MTREESRC} -I${DDSRC}
.PATH: ${.CURDIR}/ffs ${UFSSRC}/ffs \
${LSSRC} ${MKNODSRC} ${MTREESRC} ${DDSRC}
WARNS?= 2
.ifndef HOSTPROG
DPADD+= ${LIBUTIL}
LDADD+= -lutil
.include <bsd.prog.mk>
.endif