diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-03-09 09:16:47 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-03-09 09:16:47 +0000 |
commit | ce07866a275a5b5d1f76a184342555629011994b (patch) | |
tree | f29540558dcf49add0179471afb3de62bcc25188 /games | |
parent | c3996ffb0dc7db615b0d7bb4a7bc9fc0c187177b (diff) |
Make building with ${HOSTCC} work in obj-dirs
Diffstat (limited to 'games')
-rw-r--r-- | games/phantasia/Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/games/phantasia/Makefile b/games/phantasia/Makefile index 4b82358160b..b7a0b082f56 100644 --- a/games/phantasia/Makefile +++ b/games/phantasia/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.2 1996/03/09 01:33:30 niklas Exp $ +# $OpenBSD: Makefile,v 1.3 1996/03/09 09:16:46 niklas Exp $ # $NetBSD: Makefile,v 1.4 1995/03/24 03:58:22 cgd Exp $ # @(#)Makefile 8.1 (Berkeley) 5/31/93 @@ -13,13 +13,14 @@ CLEANFILES+=map setup setup.o all: setup phantasia setup.o: setup.c - ${HOSTCC} -c setup.c -o ${.TARGET} + ${HOSTCC} -c ${CFLAGS} -o ${.TARGET} ${.CURDIR}/setup.c phantglobs.o.bld: phantglobs.c - ${HOSTCC} -c phantglobs.c -o ${.TARGET} + ${HOSTCC} -c ${CFLAGS} -o ${.TARGET} ${.CURDIR}/phantglobs.c setup: phantglobs.o.bld setup.o monsters.asc ${LIBM} - ${HOSTCC} phantglobs.o.bld setup.o -o ${.TARGET} -lm + ${HOSTCC} ${CFLAGS} ${LDFLAGS} ${LDSTATIC} -o ${.TARGET} \ + phantglobs.o.bld setup.o ${LDADD} beforeinstall: ./setup -m ${.CURDIR}/monsters.asc |