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
|
13.if ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb" 14BINUTIL_ARCH=mips 15.else 16BINUTIL_ARCH=${MACHINE_ARCH} 17.endif 18 |
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} |
34.endif 35CFLAGS+= -I${.CURDIR}
|
30CFLAGS+= -I${.CURDIR}/${RELTOP}/libbfd/${MACHINE_ARCH}
|
36CFLAGS+= -I${.CURDIR}/${RELTOP}/libbfd/${BINUTIL_ARCH} |
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} |
41.endif 42
|
37ARCHS= ${MACHINE_ARCH} ${CROSS_TOOLS}
|
43ARCHS= ${BINUTIL_ARCH} ${CROSS_TOOLS} |
44 45.for _arch in ${ARCHS} 46.if exists(${.CURDIR}/Makefile.${_arch}) 47.include "${.CURDIR}/Makefile.${_arch}" 48.endif 49.endfor
|