diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-05-29 00:16:06 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-05-29 00:16:06 +0000 |
commit | b68fd221e17af1e3804e004f60c2644c7f1e704a (patch) | |
tree | e96e57d24ac0242e28575e0fa79186e60d5b2ac7 /sys/arch/mac68k/conf | |
parent | a4b4f51697836d1a2c49420ec2a306b31d6eb229 (diff) |
Improve cross-compilation support somewhat
Diffstat (limited to 'sys/arch/mac68k/conf')
-rw-r--r-- | sys/arch/mac68k/conf/Makefile.mac68k | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/arch/mac68k/conf/Makefile.mac68k b/sys/arch/mac68k/conf/Makefile.mac68k index 0c82595b8a6..7938556f6fb 100644 --- a/sys/arch/mac68k/conf/Makefile.mac68k +++ b/sys/arch/mac68k/conf/Makefile.mac68k @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.mac68k,v 1.14 1997/04/23 00:57:15 gene Exp $ +# $OpenBSD: Makefile.mac68k,v 1.15 1997/05/29 00:16:05 niklas Exp $ # $NetBSD: Makefile.mac68k,v 1.53 1997/04/15 06:11:38 scottr Exp $ # Makefile for OpenBSD @@ -40,6 +40,10 @@ CFLAGS= ${DEBUG} ${COPTS} ${CWARNFLAGS} -msoft-float AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE LINKFLAGS= -n -Ttext 0 -e start +HOSTCC?= ${CC} +HOSTED_CPPFLAGS=${CPPFLAGS:S/^-nostdinc$//} +HOSTED_CFLAGS= ${CFLAGS} + ### Find out what to use for libkern. .include "$S/lib/libkern/Makefile.inc" .ifndef PROF @@ -67,14 +71,14 @@ LIBCOMPAT=${COMPATLIB_PROF} NORMAL_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $< NORMAL_C_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} ${PARAM} -c $< +HOSTED_C= ${HOSTCC} ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} -c $< + DRIVER_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $< DRIVER_C_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} ${PARAM} -c $< NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $< NORMAL_S_C= ${CC} ${AFLAGS} ${CPPFLAGS} ${PARAM} -c $< -HOSTED_C_C= ${NORMAL_C_C:S/^-pg$//:S/^-p$//:S/^-nostdinc$//} - %OBJS %CFILES |