Module Name: src
Committed By: tsutsui
Date: Wed Mar 25 15:36:09 UTC 2009
Modified Files:
src/distrib/cdrom/macppc_mkboothfs: Makefile
Log Message:
Use nbcompat lib in src/tools/compat so that this can be built
on non-NetBSD hosts. Tested on CYGWIN_NT-5.1-1.5.25-i686.
XXX: It's enough to have generated boothfs.uue binary
XXX: (for mkisofs -boot-hfs-file option), rather than
XXX: building a tool and generating it at run time.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/distrib/cdrom/macppc_mkboothfs/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/distrib/cdrom/macppc_mkboothfs/Makefile
diff -u src/distrib/cdrom/macppc_mkboothfs/Makefile:1.1 src/distrib/cdrom/macppc_mkboothfs/Makefile:1.2
--- src/distrib/cdrom/macppc_mkboothfs/Makefile:1.1 Sun Sep 17 03:56:03 2006
+++ src/distrib/cdrom/macppc_mkboothfs/Makefile Wed Mar 25 15:36:08 2009
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2006/09/17 03:56:03 tsutsui Exp $
+# $NetBSD: Makefile,v 1.2 2009/03/25 15:36:08 tsutsui Exp $
HOSTPROG= macppc_mkboothfs
SRCS= mkboothfs.c
@@ -6,4 +6,12 @@
CLEANFILES+= boothfs
+.include <bsd.own.mk>
+
+.ifndef NOCOMPATLIB
+COMPATOBJ!= cd ${NETBSDSRCDIR}/tools/compat && ${PRINTOBJDIR}
+.-include "${COMPATOBJ}/defs.mk"
+HOST_CPPFLAGS+= -I${NETBSDSRCDIR}/tools/compat
+.endif
+
.include <bsd.hostprog.mk>