Host tools will be compiled with HOSTCC instead of CC.
Note, these are not complete in *any* way\!
+# $OpenBSD: Makefile,v 1.2 1996/03/09 01:33:25 niklas Exp $
# $NetBSD: Makefile,v 1.3 1995/03/21 12:04:53 cgd Exp $
# @(#)Makefile 8.1 (Berkeley) 6/12/93
./setup ${.CURDIR}/glorkz > data.c
setup: setup.c hdr.h
- ${CC} -o setup ${.CURDIR}/setup.c
+ ${HOSTCC} -o setup ${.CURDIR}/setup.c
.include <bsd.prog.mk>
+# $OpenBSD: Makefile,v 1.2 1996/03/09 01:33:26 niklas Exp $
# $NetBSD: Makefile,v 1.5 1995/03/23 08:28:44 cgd Exp $
# @(#)Makefile 8.1 (Berkeley) 5/31/93
-PROG= strfile
+PROG=
MAN= strfile.8
+CLEANFILES+= strfile
+
+all: strfile
+
+strfile: ${.CURDIR}/strfile.c
+ ${HOSTCC} ${CFLAGS} ${.CURDIR}/strfile.c -o $@
+
.include <bsd.prog.mk>
-# $NetBSD: Makefile,v 1.16 1995/03/23 08:29:07 cgd Exp $
+# $OpenBSD: Makefile,v 1.2 1996/03/09 01:33:28 niklas Exp $
# @(#)Makefile 8.1 (Berkeley) 5/31/93
PROG= hack
${.OBJDIR}/makedefs ${.CURDIR}/def.objects.h > hack.onames.h
makedefs: makedefs.c
- ${CC} ${CFLAGS} ${LDFLAGS} ${LDSTATIC} -o ${.TARGET} ${.CURDIR}/${.PREFIX}.c ${LDADD}
+ ${HOSTCC} ${CFLAGS} ${LDFLAGS} ${LDSTATIC} -o ${.TARGET} ${.CURDIR}/${.PREFIX}.c ${LDADD}
beforeinstall:
install -c -o games -g games -m 600 /dev/null \
+# $OpenBSD: Makefile,v 1.2 1996/03/09 01:33:29 niklas Exp $
# $NetBSD: Makefile,v 1.12 1995/03/23 08:34:32 cgd Exp $
# @(#)Makefile 8.1 (Berkeley) 5/31/93
${.OBJDIR}/initdeck ${.CURDIR}/cards.inp
initdeck: initdeck.c
- ${CC} ${CFLAGS} ${LDFLAGS} ${LDSTATIC} -o ${.TARGET} ${.CURDIR}/initdeck.c ${LDADD}
+ ${HOSTCC} ${CFLAGS} ${LDFLAGS} ${LDSTATIC} -o ${.TARGET} ${.CURDIR}/initdeck.c ${LDADD}
beforeinstall:
install -c -o ${BINOWN} -g ${BINGRP} -m 444 cards.pck \
+# $OpenBSD: Makefile,v 1.2 1996/03/09 01:33:30 niklas Exp $
# $NetBSD: Makefile,v 1.4 1995/03/24 03:58:22 cgd Exp $
# @(#)Makefile 8.1 (Berkeley) 5/31/93
all: setup phantasia
-setup: phantglobs.o setup.o monsters.asc ${LIBM}
- ${CC} phantglobs.o setup.o -o ${.TARGET} -lm
+setup.o: setup.c
+ ${HOSTCC} -c setup.c -o ${.TARGET}
+
+phantglobs.o.bld: phantglobs.c
+ ${HOSTCC} -c phantglobs.c -o ${.TARGET}
+
+setup: phantglobs.o.bld setup.o monsters.asc ${LIBM}
+ ${HOSTCC} phantglobs.o.bld setup.o -o ${.TARGET} -lm
beforeinstall:
./setup -m ${.CURDIR}/monsters.asc
# PLOTDEVICE is used for plotting the map. Change as appropriate.
map: map.c
- ${CC} -O ${.CURDIR}/map.c -lplot -o ${.TARGET}
+ ${HOSTCC} -O ${.CURDIR}/map.c -lplot -o ${.TARGET}
./map | plot > /dev/tty
# XXX this rule shouldn't be here.
-# $OpenBSD: sys.mk,v 1.4 1996/03/05 11:13:06 mickey Exp $
+# $OpenBSD: sys.mk,v 1.5 1996/03/09 01:33:31 niklas Exp $
# $NetBSD: sys.mk,v 1.22 1995/09/24 23:49:09 christos Exp $
# @(#)sys.mk 5.11 (Berkeley) 3/13/91
COMPILE.c?= ${CC} ${CFLAGS} ${CPPFLAGS} -c
LINK.c?= ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}
+HOSTCC?= cc
+
CXX?= g++
CXXFLAGS?= ${CFLAGS}
COMPILE.cc?= ${CXX} ${CXXFLAGS} ${CPPFLAGS} -c
-# $Id: Makefile,v 1.1.1.1 1995/10/18 08:46:23 deraadt Exp $
+# $OpenBSD: Makefile,v 1.2 1996/03/09 01:33:33 niklas Exp $
SUBDIR = mkhits mkastosc mkastods mkdstoas mkdctype
--- /dev/null
+# $OpenBSD: Makefile.inc,v 1.1 1996/03/09 01:33:34 niklas Exp $
+
+CC=${HOSTCC}
+DESTDIR=/
-# $Id: Makefile,v 1.1.1.1 1995/10/18 08:46:23 deraadt Exp $
+# $OpenBSD: Makefile,v 1.2 1996/03/09 01:33:35 niklas Exp $
CFLAGS += -I${.CURDIR}/.. -I.
-# $Id: Makefile,v 1.1.1.1 1995/10/18 08:46:24 deraadt Exp $
+# $OpenBSD: Makefile,v 1.2 1996/03/09 01:33:36 niklas Exp $
CFLAGS += -I${.CURDIR}/../mkhits -I${.CURDIR}/.. -I.
-# $Id: Makefile,v 1.1.1.1 1995/10/18 08:46:24 deraadt Exp $
+# $OpenBSD: Makefile,v 1.2 1996/03/09 01:33:37 niklas Exp $
CFLAGS += -I${.CURDIR}/.. -I.
-# $Id: Makefile,v 1.1.1.1 1995/10/18 08:46:24 deraadt Exp $
+# $OpenBSD: Makefile,v 1.2 1996/03/09 01:33:39 niklas Exp $
CFLAGS += -I${.CURDIR}/.. -I.
-# $Id: Makefile,v 1.1.1.1 1995/10/18 08:46:25 deraadt Exp $
+# $OpenBSD: Makefile,v 1.2 1996/03/09 01:33:40 niklas Exp $
CFLAGS += -I${.CURDIR}/.. -I.