1# $FreeBSD: head/gnu/usr.bin/binutils/Makefile.inc0 218822 2011-02-18 20:54:12Z dim $
| 1# $FreeBSD: head/gnu/usr.bin/binutils/Makefile.inc0 233644 2012-03-29 02:54:35Z jmallett $
|
2# 3# This is included explicitly at the top of each sub-Makefile. We can't 4# use the normal "Makefile.inc" mechanism, because we need some of these 5# definitions before the sub-Makefile is processed. 6 7VERSION= "2.17.50 [FreeBSD] 2007-07-03" 8 9.if defined(TARGET_ARCH)
| 2# 3# This is included explicitly at the top of each sub-Makefile. We can't 4# use the normal "Makefile.inc" mechanism, because we need some of these 5# definitions before the sub-Makefile is processed. 6 7VERSION= "2.17.50 [FreeBSD] 2007-07-03" 8 9.if defined(TARGET_ARCH)
|
10TARGET_CPUARCH=${TARGET_ARCH:C/mips.*e[bl]/mips/:C/armeb/arm/:C/powerpc64/powerpc/}
| 10TARGET_CPUARCH=${TARGET_ARCH:C/mips(n32|64)?(el)?/mips/:C/armeb/arm/:C/powerpc64/powerpc/}
|
11.else 12TARGET_CPUARCH=${MACHINE_CPUARCH} 13.endif 14TARGET_ARCH?= ${MACHINE_ARCH} 15TARGET_VENDOR?= unknown 16TARGET_OS?= freebsd 17BINUTILS_ARCH=${TARGET_ARCH:C/amd64/x86_64/} 18TARGET_TUPLE?= ${BINUTILS_ARCH}-${TARGET_VENDOR}-${TARGET_OS}
| 11.else 12TARGET_CPUARCH=${MACHINE_CPUARCH} 13.endif 14TARGET_ARCH?= ${MACHINE_ARCH} 15TARGET_VENDOR?= unknown 16TARGET_OS?= freebsd 17BINUTILS_ARCH=${TARGET_ARCH:C/amd64/x86_64/} 18TARGET_TUPLE?= ${BINUTILS_ARCH}-${TARGET_VENDOR}-${TARGET_OS}
|
19.if ${TARGET_ARCH} == "armeb" || ${TARGET_ARCH:Mmips*eb} != ""
| 19.if ${TARGET_ARCH} == "armeb" || \ 20 (${TARGET_CPUARCH} == "mips" && ${TARGET_ARCH:Mmips*el} == "")
|
20TARGET_BIG_ENDIAN=t 21.endif 22 23# RELTOP is the relative path to this point in the source or object 24# tree, from any subdirectory of same. It gets extra "../" prefixes 25# added to it as we descend into subdirectories. 26RELTOP:= .. 27 28RELSRC= ${RELTOP}/../../../contrib/binutils 29SRCDIR= ${.CURDIR}/${RELSRC} 30 31.if ${TARGET_CPUARCH} == "arm" || ${TARGET_CPUARCH} == "i386" || \ 32 ${TARGET_ARCH} == "powerpc" || \ 33 (${TARGET_CPUARCH} == "mips" && ${TARGET_ARCH:Mmips64*} == "") 34CFLAGS+= -DBFD_DEFAULT_TARGET_SIZE=32 35.else 36CFLAGS+= -DBFD_DEFAULT_TARGET_SIZE=64 37.endif 38 39CFLAGS+= -I. 40CFLAGS+= -I${.CURDIR} 41CFLAGS+= -I${.CURDIR}/${RELTOP}/libbfd 42CFLAGS+= -I${.OBJDIR}/${RELTOP}/libbfd 43CFLAGS+= -I${SRCDIR}/include 44 45ARCHS= ${TARGET_CPUARCH} 46 47.if exists(${.CURDIR}/Makefile.${TARGET_ARCH}) 48.include "${.CURDIR}/Makefile.${TARGET_ARCH}" 49.elif exists(${.CURDIR}/Makefile.${TARGET_CPUARCH}) 50.include "${.CURDIR}/Makefile.${TARGET_CPUARCH}" 51.endif
| 21TARGET_BIG_ENDIAN=t 22.endif 23 24# RELTOP is the relative path to this point in the source or object 25# tree, from any subdirectory of same. It gets extra "../" prefixes 26# added to it as we descend into subdirectories. 27RELTOP:= .. 28 29RELSRC= ${RELTOP}/../../../contrib/binutils 30SRCDIR= ${.CURDIR}/${RELSRC} 31 32.if ${TARGET_CPUARCH} == "arm" || ${TARGET_CPUARCH} == "i386" || \ 33 ${TARGET_ARCH} == "powerpc" || \ 34 (${TARGET_CPUARCH} == "mips" && ${TARGET_ARCH:Mmips64*} == "") 35CFLAGS+= -DBFD_DEFAULT_TARGET_SIZE=32 36.else 37CFLAGS+= -DBFD_DEFAULT_TARGET_SIZE=64 38.endif 39 40CFLAGS+= -I. 41CFLAGS+= -I${.CURDIR} 42CFLAGS+= -I${.CURDIR}/${RELTOP}/libbfd 43CFLAGS+= -I${.OBJDIR}/${RELTOP}/libbfd 44CFLAGS+= -I${SRCDIR}/include 45 46ARCHS= ${TARGET_CPUARCH} 47 48.if exists(${.CURDIR}/Makefile.${TARGET_ARCH}) 49.include "${.CURDIR}/Makefile.${TARGET_ARCH}" 50.elif exists(${.CURDIR}/Makefile.${TARGET_CPUARCH}) 51.include "${.CURDIR}/Makefile.${TARGET_CPUARCH}" 52.endif
|