mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
Rudimentary support for compilation in a cross environment
Host tools will be compiled with HOSTCC instead of CC. Note, these are not complete in *any* way\!
This commit is contained in:
parent
28393fc3ef
commit
da34e3c3d4
@ -1,3 +1,4 @@
|
||||
# $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
|
||||
|
||||
@ -12,6 +13,6 @@ data.c: glorkz setup
|
||||
./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>
|
||||
|
@ -1,7 +1,15 @@
|
||||
# $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>
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $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
|
||||
@ -27,7 +27,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}
|
||||
${HOSTCC} ${CFLAGS} ${LDFLAGS} ${LDSTATIC} -o ${.TARGET} ${.CURDIR}/${.PREFIX}.c ${LDADD}
|
||||
|
||||
beforeinstall:
|
||||
install -c -o games -g games -m 600 /dev/null \
|
||||
|
@ -1,3 +1,4 @@
|
||||
# $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
|
||||
|
||||
@ -16,7 +17,7 @@ cards.pck: initdeck
|
||||
${.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 \
|
||||
|
@ -1,3 +1,4 @@
|
||||
# $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
|
||||
|
||||
@ -11,8 +12,14 @@ CLEANFILES+=map setup setup.o
|
||||
|
||||
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
|
||||
@ -22,7 +29,7 @@ beforeinstall:
|
||||
# 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.
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $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
|
||||
|
||||
@ -24,6 +24,8 @@ CFLAGS?= -O
|
||||
COMPILE.c?= ${CC} ${CFLAGS} ${CPPFLAGS} -c
|
||||
LINK.c?= ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}
|
||||
|
||||
HOSTCC?= cc
|
||||
|
||||
CXX?= g++
|
||||
CXXFLAGS?= ${CFLAGS}
|
||||
COMPILE.cc?= ${CXX} ${CXXFLAGS} ${CPPFLAGS} -c
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $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
|
||||
|
||||
|
4
usr.bin/tn3270/tools/Makefile.inc
Normal file
4
usr.bin/tn3270/tools/Makefile.inc
Normal file
@ -0,0 +1,4 @@
|
||||
# $OpenBSD: Makefile.inc,v 1.1 1996/03/09 01:33:34 niklas Exp $
|
||||
|
||||
CC=${HOSTCC}
|
||||
DESTDIR=/
|
@ -1,4 +1,4 @@
|
||||
# $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.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $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.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $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.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $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.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user