summaryrefslogtreecommitdiffstats
path: root/boggle/mkindex
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>1997-04-28 23:46:19 +0000
committerthorpej <thorpej@NetBSD.org>1997-04-28 23:46:19 +0000
commit1f27f8e4c6173ee16c51cca5f58d45b29c6799bd (patch)
tree4b196d1518c170ba511766878f293e01085b7c78 /boggle/mkindex
parentab27b02700afc3d67de0f0299ed9fd52153aae00 (diff)
downloadbsdgames-darwin-1f27f8e4c6173ee16c51cca5f58d45b29c6799bd.tar.gz
bsdgames-darwin-1f27f8e4c6173ee16c51cca5f58d45b29c6799bd.tar.zst
bsdgames-darwin-1f27f8e4c6173ee16c51cca5f58d45b29c6799bd.zip
Allow boggle to be cross-compiled; the mkdict and mkindex programs
are used only by the hosting system.
Diffstat (limited to 'boggle/mkindex')
-rw-r--r--boggle/mkindex/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/boggle/mkindex/Makefile b/boggle/mkindex/Makefile
index 669918da..ce063f94 100644
--- a/boggle/mkindex/Makefile
+++ b/boggle/mkindex/Makefile
@@ -1,10 +1,20 @@
-# $NetBSD: Makefile,v 1.2 1995/03/21 12:14:51 cgd Exp $
+# $NetBSD: Makefile,v 1.3 1997/04/28 23:46:20 thorpej Exp $
# @(#)Makefile 8.1 (Berkeley) 6/11/93
PROG= mkindex
+HOST_CFLAGS+=-I${.CURDIR}/../boggle
+NOMAN= noman
+
+# XXX for "make depend"
CFLAGS+=-I${.CURDIR}/../boggle
-NOMAN=noman
install:
+# Override these rules for cross-compilation
+.c.o:
+ ${HOST_COMPILE.c} ${.IMPSRC}
+
+${PROG}: ${OBJS}
+ ${HOST_LINK.c} -o ${.TARGET} ${OBJS}
+
.include <bsd.prog.mk>