# $FreeBSD: src/gnu/usr.bin/binutils/Makefile.inc0,v 1.9.2.4 2002/09/01 23:39:12 obrien Exp $ # $DragonFly: src/gnu/usr.bin/binutils214/Attic/Makefile.inc0,v 1.1 2004/02/01 08:53:00 dillon Exp $ # # This is included explicitly at the top of each sub-Makefile. We can't # use the normal "Makefile.inc" mechanism, because we need some of these # definitions before the sub-Makefile is processed. VERSION= "2.14 [DragonFly] 2004-01-31" VERSION_DATE= 20040131 TARGET_ARCH?= ${MACHINE_ARCH} BINUTIL_ARCH= ${TARGET_ARCH} # RELTOP is the relative path to this point in the source or object # tree, from any subdirectory of same. It gets extra "../" prefixes # added to it as we descend into subdirectories. RELTOP:= .. RELSRC= ${RELTOP}/../../../contrib/binutils-2.14 SRCDIR= ${.CURDIR}/${RELSRC} .if (${TARGET_ARCH} == "alpha") WARNS= 2 .endif CFLAGS+= -D_GNU_SOURCE CFLAGS+= -I. .if exists(${.CURDIR}/${BINUTIL_ARCH}) CFLAGS+= -I${.CURDIR}/${BINUTIL_ARCH} .endif CFLAGS+= -I${.CURDIR} CFLAGS+= -I${.CURDIR}/${RELTOP}/libbfd/${BINUTIL_ARCH} CFLAGS+= -I${SRCDIR}/include .if exists(${.CURDIR}/${BINUTIL_ARCH}) .PATH: ${.CURDIR}/${BINUTIL_ARCH} .endif ARCHS= ${BINUTIL_ARCH} .for _arch in ${CROSS_ARCH} .if (${ARCHS:R:M${_arch:R}} == "") ARCHS+= $(_arch) .endif .endfor .for _arch in ${ARCHS} .if exists(${.CURDIR}/Makefile.${_arch}) .include "${.CURDIR}/Makefile.${_arch}" .endif .endfor