Makefile.inc0 revision 84902
1118824Sharti# $FreeBSD: head/gnu/usr.bin/binutils/Makefile.inc0 84902 2001-10-14 00:58:59Z obrien $ 2118824Sharti# 3118824Sharti# This is included explicitly at the top of each sub-Makefile. We can't 4118824Sharti# use the normal "Makefile.inc" mechanism, because we need some of these 5118824Sharti# definitions before the sub-Makefile is processed. 6118824Sharti 7118824ShartiVERSION= "2.11.2 20010719 [FreeBSD]" 8118824ShartiTARGET_ARCH?= ${MACHINE_ARCH} 9118824Sharti 10118824ShartiBINUTIL_ARCH= ${TARGET_ARCH} 11118824Sharti 12118824Sharti# RELTOP is the relative path to this point in the source or object 13118824Sharti# tree, from any subdirectory of same. It gets extra "../" prefixes 14118824Sharti# added to it as we descend into subdirectories. 15118824ShartiRELTOP:= .. 16118824Sharti 17118824ShartiRELSRC= ${RELTOP}/../../../contrib/binutils 18118824ShartiSRCDIR= ${.CURDIR}/${RELSRC} 19118824Sharti 20118824ShartiCFLAGS+= -D_GNU_SOURCE 21118824Sharti 22118824Sharti# We use "-I-" because without it our yacc-generated parser tries to 23118824Sharti# use GNU's bison-generated header files. 24118824ShartiCFLAGS+= -I- -I. 25118824Sharti.if exists(${.CURDIR}/${BINUTIL_ARCH}) 26118824ShartiCFLAGS+= -I${.CURDIR}/${BINUTIL_ARCH} 27118824Sharti.endif 28118824ShartiCFLAGS+= -I${.CURDIR} 29118824ShartiCFLAGS+= -I${.CURDIR}/${RELTOP}/libbfd/${BINUTIL_ARCH} 30118824ShartiCFLAGS+= -I${SRCDIR}/include 31118824Sharti 32118824Sharti.if exists(${.CURDIR}/${BINUTIL_ARCH}) 33118824Sharti.PATH: ${.CURDIR}/${BINUTIL_ARCH} 34118824Sharti.endif 35118824Sharti 36118824ShartiARCHS= ${BINUTIL_ARCH} 37125018Sharti 38118824Sharti.for _arch in ${CROSS_ARCH} 39118824Sharti.if (${ARCHS:R:M${_arch:R}} == "") 40118824ShartiARCHS+= $(_arch) 41118824Sharti.endif 42118824Sharti.endfor 43118824Sharti 44118824Sharti.for _arch in ${ARCHS} 45118824Sharti.if exists(${.CURDIR}/Makefile.${_arch}) 46118824Sharti.include "${.CURDIR}/Makefile.${_arch}" 47118824Sharti.endif 48118824Sharti.endfor 49118824Sharti