ecc4dcbd82
The target machine is represented by TARGET_ARCH. MACHINE_ARCH always represents the host machine. When TARGET_ARCH is not defined, it is assumed to be equal to MACHINE_ARCH. This means that we're building a native toolset by default. We're creating cross-compilation tools when MACHINE_ARCH != TARGET_ARCH. TARGET_ARCH is defined when building binutils as part of the bootstrap build and is set to reflect the architecture we're currently cross- building. With this change binutils is ready for cross-building.
21 lines
384 B
Makefile
21 lines
384 B
Makefile
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
.include "../Makefile.inc0"
|
|
|
|
.PATH: ${SRCDIR}/gas
|
|
|
|
PROG= gasp
|
|
SRCS+= gasp.c macro.c sb.c hash.c
|
|
CFLAGS+= -I${SRCDIR}
|
|
CFLAGS+= -I${SRCDIR}/gas
|
|
CFLAGS+= -I${SRCDIR}/gas/config
|
|
CFLAGS+= -I${.CURDIR}/../as/${TARGET_ARCH}-freebsd
|
|
CFLAGS+= -DBFD_ASSEMBLER
|
|
LDADD+= -L${RELTOP}/libiberty -liberty
|
|
DPADD+= ${RELTOP}/libiberty/libiberty.a
|
|
NOMAN= 1
|
|
|
|
.include <bsd.prog.mk>
|