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