NetBSD/tools/makefs/Makefile
lukem 3e8ee2e17f Symlink ./ufs to ${.CURDIR}/../../sys/ufs, and add -I. to HOST_CPPFLAGS.
This means that <ufs/*/*.h> come from ../../sys/ufs, but other
<sys/*> header files still come from the host system's /usr/include.

This slightly ugly hack to the Makefile means that makefs compiles on
-current and 1.5.x machines (and other systems), without requiring
major code rewrites in sys/ufs/ffs to allow sharing and without
requiring duplication of sys/ufs/ffs* under usr.sbin/makefs.
2002-01-10 05:03:45 +00:00

16 lines
243 B
Makefile

# $NetBSD: Makefile,v 1.2 2002/01/10 05:03:45 lukem Exp $
HOSTPROGNAME= nbmakefs
HOST_SRCDIR= usr.sbin/makefs
.include "${.CURDIR}/../Makefile.host"
HOST_CPPFLAGS+= -I.
CLEANFILES+= ufs
${SRCS}: ufs
ufs:
ln -fs ${.CURDIR}/../../sys/ufs