Only cross-tools may use TARGET_ARCH/TARGET, everyone else

should use the normal MACHINE_ARCH/MACHINE instead.
This commit is contained in:
Ruslan Ermilov 2003-02-27 09:19:31 +00:00
parent dce4c82d8e
commit 9ef2a48e97
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111608

View File

@ -17,17 +17,17 @@ CFLAGS+= -I${GCCDIR}/config -I${GCCDIR} -I. \
CRTS_CFLAGS= -DCRTSTUFFS_O -DSHARED ${PICFLAG}
MKDEPCMD= CC="${CC}" MKDEP_CPP_OPTS="-M -DCRT_BEGIN" mkdep
.if ${TARGET_ARCH} == "ia64"
.if ${MACHINE_ARCH} == "ia64"
BEGINSRC= crtbegin.asm
ENDSRC= crtend.asm
CFLAGS+= -x assembler-with-cpp # Ugly hack
.undef SRCS # hack for 'make depend'
.endif
.if ${TARGET_ARCH} == "powerpc"
.if ${MACHINE_ARCH} == "powerpc"
TGTOBJS= crtsavres.o
SRCS+= crtsavres.asm
.endif
.if ${TARGET_ARCH} == "alpha" || ${TARGET_ARCH} == "sparc64"
.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "sparc64"
TGTOBJS= crtfastmath.o
SRCS+= crtfastmath.c
.endif