Allow this to be cross-compiled.
This commit is contained in:
parent
d6aa0e4456
commit
20c2907cc6
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.20 1997/03/27 10:55:21 mycroft Exp $
|
||||
# $NetBSD: Makefile,v 1.21 1997/04/19 07:20:13 thorpej Exp $
|
||||
# @(#)Makefile 8.2 (Berkeley) 4/27/95
|
||||
|
||||
PROG= hack
|
||||
@ -29,7 +29,7 @@ hack.onames.h: makedefs def.objects.h
|
||||
${.OBJDIR}/makedefs ${.CURDIR}/def.objects.h > hack.onames.h
|
||||
|
||||
makedefs: makedefs.c
|
||||
${CC} ${CFLAGS} ${LDFLAGS} ${LDSTATIC} -o ${.TARGET} ${.CURDIR}/${.PREFIX}.c ${LDADD}
|
||||
${HOST_CC} ${HOST_CFLAGS} ${HOST_LDFLAGS} ${LDSTATIC} -o ${.TARGET} ${.CURDIR}/${.PREFIX}.c
|
||||
|
||||
.if !exists(${DESTDIR}${FILESDIR}/perm)
|
||||
proginstall:: clobber
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.14 1997/03/24 22:15:47 christos Exp $
|
||||
# $NetBSD: Makefile,v 1.15 1997/04/19 07:22:08 thorpej Exp $
|
||||
# @(#)Makefile 8.1 (Berkeley) 5/31/93
|
||||
|
||||
PROG= monop
|
||||
@ -18,6 +18,6 @@ cards.pck: initdeck
|
||||
${.OBJDIR}/initdeck ${.CURDIR}/cards.inp
|
||||
|
||||
initdeck: initdeck.c
|
||||
${CC} ${CFLAGS} ${LDFLAGS} ${LDSTATIC} -o ${.TARGET} ${.CURDIR}/initdeck.c ${LDADD}
|
||||
${HOST_CC} ${HOST_CFLAGS} ${HOST_LDFLAGS} ${LDSTATIC} -o ${.TARGET} ${.CURDIR}/initdeck.c
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.5 1996/06/01 19:47:19 jtk Exp $
|
||||
# $NetBSD: Makefile,v 1.6 1997/04/19 07:29:31 thorpej Exp $
|
||||
# @(#)Makefile 8.1 (Berkeley) 5/31/93
|
||||
|
||||
PROG= phantasia
|
||||
@ -7,12 +7,18 @@ DPADD= ${LIBM} ${LIBCURSES} ${LIBTERM} ${LIBCOMPAT}
|
||||
LDADD= -lm -lcurses -ltermlib -lcompat
|
||||
HIDEGAME=hidegame
|
||||
MAN= phantasia.6
|
||||
CLEANFILES+=map setup setup.o
|
||||
CLEANFILES+=map setup setup.o host_phantglobs.o
|
||||
|
||||
all: setup phantasia
|
||||
|
||||
setup: phantglobs.o setup.o monsters.asc ${LIBM}
|
||||
${CC} phantglobs.o setup.o -o ${.TARGET} -lm
|
||||
setup: host_phantglobs.o setup.o monsters.asc ${LIBM}
|
||||
${HOST_CC} host_phantglobs.o setup.o -o ${.TARGET} -lm
|
||||
|
||||
host_phantglobs.o: ${.CURDIR}/phantglobs.c
|
||||
${HOST_COMPILE.c} -o host_phantglobs.o ${.CURDIR}/phantglobs.c
|
||||
|
||||
setup.o: ${.CURDIR}/setup.c
|
||||
${HOST_COMPILE.c} ${.CURDIR}/setup.c
|
||||
|
||||
beforeinstall:
|
||||
./setup -m ${.CURDIR}/monsters.asc
|
||||
|
Loading…
Reference in New Issue
Block a user