summaryrefslogtreecommitdiffstats
path: root/boggle
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
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')
-rw-r--r--boggle/mkdict/Makefile14
-rw-r--r--boggle/mkindex/Makefile14
2 files changed, 24 insertions, 4 deletions
diff --git a/boggle/mkdict/Makefile b/boggle/mkdict/Makefile
index 02f2f584..6ac4d5f9 100644
--- a/boggle/mkdict/Makefile
+++ b/boggle/mkdict/Makefile
@@ -1,10 +1,20 @@
-# $NetBSD: Makefile,v 1.4 1997/04/19 07:13:49 thorpej Exp $
+# $NetBSD: Makefile,v 1.5 1997/04/28 23:46:19 thorpej Exp $
# @(#)Makefile 8.1 (Berkeley) 6/11/93
PROG= mkdict
+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>
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>