1 # $DragonFly: src/gnu/usr.bin/binutils217/Makefile.inc0,v 1.1 2007/04/13 12:24:32 corecode 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.17 [DragonFly] 2007-04-12"
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.17
20 SRCDIR= ${.CURDIR}/${RELSRC}
22 CFLAGS+= -D_GNU_SOURCE
24 .if exists(${.CURDIR}/${BINUTIL_ARCH})
25 CFLAGS+= -I${.CURDIR}/${BINUTIL_ARCH}
28 CFLAGS+= -I${.CURDIR}/${RELTOP}/libbfd/${BINUTIL_ARCH}
29 CFLAGS+= -I${SRCDIR}/include
31 .if exists(${.CURDIR}/${BINUTIL_ARCH})
32 .PATH: ${.CURDIR}/${BINUTIL_ARCH}
35 ARCHS= ${BINUTIL_ARCH}
37 .for _arch in ${CROSS_ARCH}
38 .if (${ARCHS:R:M${_arch:R}} == "")
43 .for _arch in ${ARCHS}
44 .if exists(${.CURDIR}/Makefile.${_arch})
45 .include "${.CURDIR}/Makefile.${_arch}"