Makefile.inc0 revision 35709
1#
2# $Id: Makefile.inc0,v 1.3 1998/03/12 05:59:22 jb Exp $
3#
4
5#
6# This is included explicitly at the top of each sub-Makefile.  We can't
7# use the normal "Makefile.inc" mechanism, because we need some of these
8# definitions before the sub-Makefile is processed.
9#
10
11VERSION=	2.8.1
12
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.
16RELTOP:=	..
17
18RELSRC=		${RELTOP}/../../../contrib/binutils
19SRCDIR=		${.CURDIR}/${RELSRC}
20
21CFLAGS+=	-D_GNU_SOURCE
22
23# We use "-I-" because without it our yacc-generated parser tries to
24# use GNU's bison-generated header files.
25CFLAGS+=	-I- -I.
26.if exists(${.CURDIR}/${MACHINE_ARCH})
27CFLAGS+=	-I${.CURDIR}/${MACHINE_ARCH}
28.endif
29CFLAGS+=	-I${.CURDIR}
30CFLAGS+=	-I${.CURDIR}/${RELTOP}/libbfd/${MACHINE_ARCH}
31CFLAGS+=	-I${SRCDIR}/include
32
33.if exists(${.CURDIR}/${MACHINE_ARCH})
34.PATH: ${.CURDIR}/${MACHINE_ARCH}
35.endif
36
37ARCHS=		${MACHINE_ARCH} ${CROSS_TOOLS}
38
39.for _arch in ${ARCHS}
40.if exists(${.CURDIR}/Makefile.${_arch})
41.include "${.CURDIR}/Makefile.${_arch}"
42.endif
43.endfor
44