WARNS=6 safeness:
[dragonfly.git] / gnu / usr.bin / binutils214 / Makefile.inc0
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 $
3 #
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.
7
8 VERSION=        "2.14 [DragonFly] 2004-01-31"
9 VERSION_DATE=   20040131
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.14
20 SRCDIR= ${.CURDIR}/${RELSRC}
21
22 .if (${TARGET_ARCH} == "alpha")
23 WARNS=  2
24 .endif
25 CFLAGS+= -D_GNU_SOURCE
26 CFLAGS+= -I.
27 .if exists(${.CURDIR}/${BINUTIL_ARCH})
28 CFLAGS+= -I${.CURDIR}/${BINUTIL_ARCH}
29 .endif
30 CFLAGS+= -I${.CURDIR}
31 CFLAGS+= -I${.CURDIR}/${RELTOP}/libbfd/${BINUTIL_ARCH}
32 CFLAGS+= -I${SRCDIR}/include
33
34 .if exists(${.CURDIR}/${BINUTIL_ARCH})
35 .PATH: ${.CURDIR}/${BINUTIL_ARCH}
36 .endif
37
38 ARCHS=  ${BINUTIL_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