Remove binutils 2.17 from contrib/.
[dragonfly.git] / gnu / usr.bin / binutils217 / Makefile.inc0
1 # $DragonFly: src/gnu/usr.bin/binutils217/Makefile.inc0,v 1.2 2008/11/03 00:25:44 pavalos Exp $
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
7 VERSION=        "2.17 [DragonFly] 2007-04-12"
8 VERSION_BFD=    217000000
9 VERSION_DATE=   20070412
10
11 TARGET_ARCH?=   ${MACHINE_ARCH}
12 BINUTIL_ARCH=   ${TARGET_ARCH}
13
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.
17 RELTOP:= ..
18
19 RELSRC= ${RELTOP}/../../../contrib/binutils-2.17
20 SRCDIR= ${.CURDIR}/${RELSRC}
21
22 CFLAGS+= -I.
23 .if exists(${.CURDIR}/${BINUTIL_ARCH})
24 CFLAGS+= -I${.CURDIR}/${BINUTIL_ARCH}
25 .endif
26 CFLAGS+= -I${.CURDIR}
27 CFLAGS+= -I${.CURDIR}/${RELTOP}/libbfd/${BINUTIL_ARCH}
28 CFLAGS+= -I${SRCDIR}/include
29
30 .if exists(${.CURDIR}/${BINUTIL_ARCH})
31 .PATH: ${.CURDIR}/${BINUTIL_ARCH}
32 .endif
33
34 ARCHS=  ${BINUTIL_ARCH}
35
36 .for _arch in ${CROSS_ARCH}
37 .if (${ARCHS:R:M${_arch:R}} == "")
38 ARCHS+= $(_arch)
39 .endif
40 .endfor
41
42 .for _arch in ${ARCHS}
43 .if exists(${.CURDIR}/Makefile.${_arch})
44 .include "${.CURDIR}/Makefile.${_arch}"
45 .endif
46 .endfor