Deleted Added
full compact
Makefile.inc0 (38892) Makefile.inc0 (44360)
1#
1#
2# $Id: Makefile.inc0,v 1.4 1998/05/04 21:10:56 jb Exp $
2# $Id: Makefile.inc0,v 1.5 1998/09/06 23:01:49 jdp 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.9.1
12
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.9.1
12
13.if ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb"
14BINUTIL_ARCH=mips
15.else
16BINUTIL_ARCH=${MACHINE_ARCH}
17.endif
18
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.
19# RELTOP is the relative path to this point in the source or object
20# tree, from any subdirectory of same. It gets extra "../" prefixes
21# added to it as we descend into subdirectories.
22RELTOP:= ..
23
24RELSRC= ${RELTOP}/../../../contrib/binutils
25SRCDIR= ${.CURDIR}/${RELSRC}
26
27CFLAGS+= -D_GNU_SOURCE
28
29# We use "-I-" because without it our yacc-generated parser tries to
30# use GNU's bison-generated header files.
31CFLAGS+= -I- -I.
26.if exists(${.CURDIR}/${MACHINE_ARCH})
27CFLAGS+= -I${.CURDIR}/${MACHINE_ARCH}
32.if exists(${.CURDIR}/${BINUTIL_ARCH})
33CFLAGS+= -I${.CURDIR}/${BINUTIL_ARCH}
28.endif
29CFLAGS+= -I${.CURDIR}
34.endif
35CFLAGS+= -I${.CURDIR}
30CFLAGS+= -I${.CURDIR}/${RELTOP}/libbfd/${MACHINE_ARCH}
36CFLAGS+= -I${.CURDIR}/${RELTOP}/libbfd/${BINUTIL_ARCH}
31CFLAGS+= -I${SRCDIR}/include
32
37CFLAGS+= -I${SRCDIR}/include
38
33.if exists(${.CURDIR}/${MACHINE_ARCH})
34.PATH: ${.CURDIR}/${MACHINE_ARCH}
39.if exists(${.CURDIR}/${BINUTIL_ARCH})
40.PATH: ${.CURDIR}/${BINUTIL_ARCH}
35.endif
36
41.endif
42
37ARCHS= ${MACHINE_ARCH} ${CROSS_TOOLS}
43ARCHS= ${BINUTIL_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
45.for _arch in ${ARCHS}
46.if exists(${.CURDIR}/Makefile.${_arch})
47.include "${.CURDIR}/Makefile.${_arch}"
48.endif
49.endfor