Conditionally define "CROSS_COMPILE" here.

This commit is contained in:
David E. O'Brien 2000-05-22 08:25:40 +00:00
parent bcff338667
commit 7994fa95cd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=60780
4 changed files with 15 additions and 2 deletions

View File

@ -8,6 +8,9 @@ PROG= as
.if ${MACHINE_ARCH} != "mipsel" && ${MACHINE_ARCH} != "mipseb"
NOMAN= 1
BINDIR= /usr/libexec/cross/mips-freebsd
# If we aren't doing cross-assembling, some operations can be optimized, since
# byte orders and value sizes don't need to be adjusted.
CFLAGS+= -DCROSS_COMPILE=1
.endif
.if ${MACHINE_ARCH} == "mipsel"
CFLAGS+= -DTARGET_BYTES_BIG_ENDIAN=0

View File

@ -1,12 +1,16 @@
#
# $FreeBSD$
#
.include "${.CURDIR}/../Makefile.inc0"
PROG= as
.if ${TARGET_ARCH} != "powerpc"
NOMAN= 1
BINDIR= /usr/libexec/cross/powerpc-freebsd
# If we aren't doing cross-assembling, some operations can be optimized, since
# byte orders and value sizes don't need to be adjusted.
CFLAGS+= -DCROSS_COMPILE=1
.endif
SRCS+= obj-elf.c tc-ppc.c
.include <bsd.prog.mk>

View File

@ -8,6 +8,9 @@ PROG= as
.if ${TARGET_ARCH} != "sparc"
NOMAN= 1
BINDIR= /usr/libexec/cross/sparc-freebsd
# If we aren't doing cross-assembling, some operations can be optimized, since
# byte orders and value sizes don't need to be adjusted.
CFLAGS+= -DCROSS_COMPILE=1
.endif
SRCS+= obj-elf.c tc-sparc.c

View File

@ -8,6 +8,9 @@ PROG= as
.if ${TARGET_ARCH} != "sparc64"
NOMAN= 1
BINDIR= /usr/libexec/cross/sparc64-freebsd
# If we aren't doing cross-assembling, some operations can be optimized, since
# byte orders and value sizes don't need to be adjusted.
CFLAGS+= -DCROSS_COMPILE=1
.endif
SRCS+= obj-elf.c tc-sparc.c