1998-03-01 23:41:17 +00:00
|
|
|
#
|
1999-03-01 04:01:57 +00:00
|
|
|
# $Id: Makefile.inc0,v 1.5 1998/09/06 23:01:49 jdp Exp $
|
1998-03-01 23:41:17 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# This is included explicitly at the top of each sub-Makefile. We can't
|
|
|
|
# use the normal "Makefile.inc" mechanism, because we need some of these
|
|
|
|
# definitions before the sub-Makefile is processed.
|
|
|
|
#
|
|
|
|
|
1998-09-06 23:01:53 +00:00
|
|
|
VERSION= 2.9.1
|
1998-03-01 23:41:17 +00:00
|
|
|
|
1999-03-01 04:01:57 +00:00
|
|
|
.if ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb"
|
|
|
|
BINUTIL_ARCH=mips
|
|
|
|
.else
|
|
|
|
BINUTIL_ARCH=${MACHINE_ARCH}
|
|
|
|
.endif
|
|
|
|
|
1998-03-01 23:41:17 +00:00
|
|
|
# RELTOP is the relative path to this point in the source or object
|
|
|
|
# tree, from any subdirectory of same. It gets extra "../" prefixes
|
|
|
|
# added to it as we descend into subdirectories.
|
|
|
|
RELTOP:= ..
|
|
|
|
|
|
|
|
RELSRC= ${RELTOP}/../../../contrib/binutils
|
|
|
|
SRCDIR= ${.CURDIR}/${RELSRC}
|
|
|
|
|
|
|
|
CFLAGS+= -D_GNU_SOURCE
|
|
|
|
|
|
|
|
# We use "-I-" because without it our yacc-generated parser tries to
|
|
|
|
# use GNU's bison-generated header files.
|
1998-03-12 02:55:43 +00:00
|
|
|
CFLAGS+= -I- -I.
|
1999-03-01 04:01:57 +00:00
|
|
|
.if exists(${.CURDIR}/${BINUTIL_ARCH})
|
|
|
|
CFLAGS+= -I${.CURDIR}/${BINUTIL_ARCH}
|
1998-03-12 02:55:43 +00:00
|
|
|
.endif
|
|
|
|
CFLAGS+= -I${.CURDIR}
|
1999-03-01 04:01:57 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbfd/${BINUTIL_ARCH}
|
1998-03-01 23:41:17 +00:00
|
|
|
CFLAGS+= -I${SRCDIR}/include
|
1998-03-12 02:55:43 +00:00
|
|
|
|
1999-03-01 04:01:57 +00:00
|
|
|
.if exists(${.CURDIR}/${BINUTIL_ARCH})
|
|
|
|
.PATH: ${.CURDIR}/${BINUTIL_ARCH}
|
1998-03-12 02:55:43 +00:00
|
|
|
.endif
|
|
|
|
|
1999-03-01 04:01:57 +00:00
|
|
|
ARCHS= ${BINUTIL_ARCH} ${CROSS_TOOLS}
|
1998-05-04 21:10:56 +00:00
|
|
|
|
|
|
|
.for _arch in ${ARCHS}
|
|
|
|
.if exists(${.CURDIR}/Makefile.${_arch})
|
|
|
|
.include "${.CURDIR}/Makefile.${_arch}"
|
1998-03-12 02:55:43 +00:00
|
|
|
.endif
|
1998-05-04 21:10:56 +00:00
|
|
|
.endfor
|