Makefile.inc0 revision 50472
1169695Skan#
2169695Skan# $FreeBSD: head/gnu/usr.bin/binutils/Makefile.inc0 50472 1999-08-27 23:37:10Z peter $
3169695Skan#
4169695Skan
5169695Skan#
6169695Skan# This is included explicitly at the top of each sub-Makefile.  We can't
7169695Skan# use the normal "Makefile.inc" mechanism, because we need some of these
8169695Skan# definitions before the sub-Makefile is processed.
9169695Skan#
10169695Skan
11169695SkanVERSION=	2.9.1
12169695Skan
13169695Skan.if ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb"
14169695SkanBINUTIL_ARCH=mips
15169695Skan.else
16169695SkanBINUTIL_ARCH=${MACHINE_ARCH}
17169695Skan.endif
18169695Skan
19169695Skan# RELTOP is the relative path to this point in the source or object
20169695Skan# tree, from any subdirectory of same.  It gets extra "../" prefixes
21169695Skan# added to it as we descend into subdirectories.
22169695SkanRELTOP:=	..
23169695Skan
24169695SkanRELSRC=		${RELTOP}/../../../contrib/binutils
25169695SkanSRCDIR=		${.CURDIR}/${RELSRC}
26169695Skan
27169695SkanCFLAGS+=	-D_GNU_SOURCE
28169695Skan
29169695Skan# We use "-I-" because without it our yacc-generated parser tries to
30169695Skan# use GNU's bison-generated header files.
31169695SkanCFLAGS+=	-I- -I.
32169695Skan.if exists(${.CURDIR}/${BINUTIL_ARCH})
33169695SkanCFLAGS+=	-I${.CURDIR}/${BINUTIL_ARCH}
34169695Skan.endif
35169695SkanCFLAGS+=	-I${.CURDIR}
36169695SkanCFLAGS+=	-I${.CURDIR}/${RELTOP}/libbfd/${BINUTIL_ARCH}
37169695SkanCFLAGS+=	-I${SRCDIR}/include
38169695Skan
39169695Skan.if exists(${.CURDIR}/${BINUTIL_ARCH})
40169695Skan.PATH: ${.CURDIR}/${BINUTIL_ARCH}
41169695Skan.endif
42169695Skan
43169695SkanARCHS=		${BINUTIL_ARCH} ${CROSS_TOOLS}
44169695Skan
45169695Skan.for _arch in ${ARCHS}
46169695Skan.if exists(${.CURDIR}/Makefile.${_arch})
47169695Skan.include "${.CURDIR}/Makefile.${_arch}"
48169695Skan.endif
49169695Skan.endfor
50169695Skan