1 # $FreeBSD: src/gnu/usr.bin/binutils/Makefile.inc0,v 1.9.2.4 2002/09/01 23:39:12 obrien 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.12.1 [FreeBSD] 2002-07-20"
10 TARGET_ARCH?= ${MACHINE_ARCH}
11 BINUTIL_ARCH= ${TARGET_ARCH}
13 # RELTOP is the relative path to this point in the source or object
14 # tree, from any subdirectory of same. It gets extra "../" prefixes
15 # added to it as we descend into subdirectories.
18 RELSRC= ${RELTOP}/../../../contrib/binutils
19 SRCDIR= ${.CURDIR}/${RELSRC}
21 .if (${TARGET_ARCH} == "alpha")
24 CFLAGS+= -D_GNU_SOURCE
26 .if exists(${.CURDIR}/${BINUTIL_ARCH})
27 CFLAGS+= -I${.CURDIR}/${BINUTIL_ARCH}
30 CFLAGS+= -I${.CURDIR}/${RELTOP}/libbfd/${BINUTIL_ARCH}
31 CFLAGS+= -I${SRCDIR}/include
33 .if exists(${.CURDIR}/${BINUTIL_ARCH})
34 .PATH: ${.CURDIR}/${BINUTIL_ARCH}
37 ARCHS= ${BINUTIL_ARCH}
39 .for _arch in ${CROSS_ARCH}
40 .if (${ARCHS:R:M${_arch:R}} == "")
45 .for _arch in ${ARCHS}
46 .if exists(${.CURDIR}/Makefile.${_arch})
47 .include "${.CURDIR}/Makefile.${_arch}"