1 # $DragonFly: src/gnu/usr.bin/binutils215/Attic/Makefile.inc0,v 1.1 2004/12/20 13:14:44 asmodai Exp $
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.
7 VERSION= "2.15 [DragonFly] 2004-05-17"
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.15
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}"