]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - gnu/usr.bin/binutils/Makefile.inc0
This commit was generated by cvs2svn to compensate for changes in r161389,
[FreeBSD/FreeBSD.git] / gnu / usr.bin / binutils / Makefile.inc0
1 # $FreeBSD$
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.15 [FreeBSD] 2004-05-23"
8
9 TARGET_ARCH?=   ${MACHINE_ARCH}
10 .if ${TARGET_ARCH} == "amd64"
11 BINUTILS_ARCH=x86_64
12 .else
13 BINUTILS_ARCH=${TARGET_ARCH}
14 .endif
15 TARGET_TUPLE?=  ${BINUTILS_ARCH}-obrien-freebsd
16
17 # RELTOP is the relative path to this point in the source or object
18 # tree, from any subdirectory of same.  It gets extra "../" prefixes
19 # added to it as we descend into subdirectories.
20 RELTOP:= ..
21
22 RELSRC= ${RELTOP}/../../../contrib/binutils
23 SRCDIR= ${.CURDIR}/${RELSRC}
24
25 CFLAGS+= -I.
26 .if exists(${.CURDIR}/${TARGET_ARCH})
27 CFLAGS+= -I${.CURDIR}/${TARGET_ARCH}
28 .endif
29 CFLAGS+= -I${.CURDIR}
30 CFLAGS+= -I${.CURDIR}/${RELTOP}/libbfd
31 CFLAGS+= -I${.OBJDIR}/${RELTOP}/libbfd
32 CFLAGS+= -I${SRCDIR}/include
33
34 .if exists(${.CURDIR}/${TARGET_ARCH})
35 .PATH: ${.CURDIR}/${TARGET_ARCH}
36 .endif
37
38 ARCHS=  ${TARGET_ARCH}
39
40 .for _arch in ${CROSS_ARCH}
41 .if (${ARCHS:R:M${_arch:R}} == "")
42 ARCHS+= $(_arch)
43 .endif
44 .endfor
45
46 .for _arch in ${ARCHS}
47 .if exists(${.CURDIR}/Makefile.${_arch})
48 .include "${.CURDIR}/Makefile.${_arch}"
49 .endif
50 .endfor