freebsd-dev/gnu/usr.bin/binutils/libbinutils/Makefile
Marcel Moolenaar ecc4dcbd82 s/MACHINE_ARCH/TARGET_ARCH/g
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.
1999-12-17 15:50:45 +00:00

28 lines
596 B
Makefile

#
# $FreeBSD$
#
.include "../Makefile.inc0"
.PATH: ${SRCDIR}/binutils
LIB= binutils
SRCS+= arlex.l arparse.y arsup.c bucomm.c debug.c filemode.c \
ieee.c rdcoff.c rddbg.c stabs.c wrstabs.c version.c
.if ${TARGET_ARCH} == "mipseb"
CFLAGS+= -DTARGET=\"elf32-bigmips\"
.elif ${TARGET_ARCH} == "mipsel"
CFLAGS+= -DTARGET=\"elf32-littlemips\"
.else
CFLAGS+= -DTARGET=\"${TARGET_ARCH}-unknown-freebsdelf\"
.endif
CFLAGS+= -DVERSION=\"${VERSION}\"
CFLAGS+= -I${SRCDIR}/binutils
CFLAGS+= -I${SRCDIR}/bfd
NOPROFILE= true
NOPIC= true
INTERNALLIB= true
INTERNALSTATICLIB=true
.include <bsd.lib.mk>