Makefile.inc0 revision 84947
150472Speter# $FreeBSD: head/gnu/usr.bin/binutils/Makefile.inc0 84947 2001-10-15 01:18:51Z obrien $ 233975Sjdp# 333975Sjdp# This is included explicitly at the top of each sub-Makefile. We can't 433975Sjdp# use the normal "Makefile.inc" mechanism, because we need some of these 533975Sjdp# definitions before the sub-Makefile is processed. 633975Sjdp 780019SobrienVERSION= "2.11.2 20010719 [FreeBSD]" 884947Sobrien 954748SmarcelTARGET_ARCH?= ${MACHINE_ARCH} 1084902SobrienBINUTIL_ARCH= ${TARGET_ARCH} 1144360Simp 1233975Sjdp# RELTOP is the relative path to this point in the source or object 1333975Sjdp# tree, from any subdirectory of same. It gets extra "../" prefixes 1433975Sjdp# added to it as we descend into subdirectories. 1584902SobrienRELTOP:= .. 1633975Sjdp 1784902SobrienRELSRC= ${RELTOP}/../../../contrib/binutils 1884902SobrienSRCDIR= ${.CURDIR}/${RELSRC} 1933975Sjdp 2084902SobrienCFLAGS+= -D_GNU_SOURCE 2133975Sjdp 2233975Sjdp# We use "-I-" because without it our yacc-generated parser tries to 2333975Sjdp# use GNU's bison-generated header files. 2484902SobrienCFLAGS+= -I- -I. 2544360Simp.if exists(${.CURDIR}/${BINUTIL_ARCH}) 2684902SobrienCFLAGS+= -I${.CURDIR}/${BINUTIL_ARCH} 2734495Sjdp.endif 2884902SobrienCFLAGS+= -I${.CURDIR} 2984902SobrienCFLAGS+= -I${.CURDIR}/${RELTOP}/libbfd/${BINUTIL_ARCH} 3084902SobrienCFLAGS+= -I${SRCDIR}/include 3134495Sjdp 3244360Simp.if exists(${.CURDIR}/${BINUTIL_ARCH}) 3344360Simp.PATH: ${.CURDIR}/${BINUTIL_ARCH} 3434495Sjdp.endif 3534495Sjdp 3684902SobrienARCHS= ${BINUTIL_ARCH} 3735709Sjb 3852927Sjb.for _arch in ${CROSS_ARCH} 3952927Sjb.if (${ARCHS:R:M${_arch:R}} == "") 4084902SobrienARCHS+= $(_arch) 4152927Sjb.endif 4252927Sjb.endfor 4352927Sjb 4435709Sjb.for _arch in ${ARCHS} 4535709Sjb.if exists(${.CURDIR}/Makefile.${_arch}) 4635709Sjb.include "${.CURDIR}/Makefile.${_arch}" 4734495Sjdp.endif 4835709Sjb.endfor 49