Makefile.inc0 revision 90353
1189251Ssam# $FreeBSD: head/gnu/usr.bin/binutils/Makefile.inc0 90353 2002-02-07 17:35:49Z obrien $ 2189251Ssam# 3346981Scy# This is included explicitly at the top of each sub-Makefile. We can't 4189251Ssam# use the normal "Makefile.inc" mechanism, because we need some of these 5252726Srpaulo# definitions before the sub-Makefile is processed. 6252726Srpaulo 7189251SsamVERSION= "2.12.0 pre-release snap [FreeBSD] 20020127" 8189251SsamVERSION_DATE= 20020127 9189251Ssam 10189251SsamTARGET_ARCH?= ${MACHINE_ARCH} 11189251SsamBINUTIL_ARCH= ${TARGET_ARCH} 12189251Ssam 13189251Ssam# RELTOP is the relative path to this point in the source or object 14189251Ssam# tree, from any subdirectory of same. It gets extra "../" prefixes 15189251Ssam# added to it as we descend into subdirectories. 16189251SsamRELTOP:= .. 17189251Ssam 18189251SsamRELSRC= ${RELTOP}/../../../contrib/binutils 19189251SsamSRCDIR= ${.CURDIR}/${RELSRC} 20189251Ssam 21189251SsamCFLAGS+= -D_GNU_SOURCE 22189251Ssam 23189251SsamCFLAGS+= -I. 24189251Ssam.if exists(${.CURDIR}/${BINUTIL_ARCH}) 25189251SsamCFLAGS+= -I${.CURDIR}/${BINUTIL_ARCH} 26189251Ssam.endif 27189251SsamCFLAGS+= -I${.CURDIR} 28189251SsamCFLAGS+= -I${.CURDIR}/${RELTOP}/libbfd/${BINUTIL_ARCH} 29252726SrpauloCFLAGS+= -I${SRCDIR}/include 30252726Srpaulo 31289549Srpaulo.if exists(${.CURDIR}/${BINUTIL_ARCH}) 32289549Srpaulo.PATH: ${.CURDIR}/${BINUTIL_ARCH} 33189251Ssam.endif 34189251Ssam 35189251SsamARCHS= ${BINUTIL_ARCH} 36189251Ssam 37189251Ssam.for _arch in ${CROSS_ARCH} 38189251Ssam.if (${ARCHS:R:M${_arch:R}} == "") 39189251SsamARCHS+= $(_arch) 40189251Ssam.endif 41214734Srpaulo.endfor 42214734Srpaulo 43189251Ssam.for _arch in ${ARCHS} 44189251Ssam.if exists(${.CURDIR}/Makefile.${_arch}) 45214734Srpaulo.include "${.CURDIR}/Makefile.${_arch}" 46214734Srpaulo.endif 47281806Srpaulo.endfor 48281806Srpaulo