Makefile.inc0 revision 80019
133975Sjdp# 250472Speter# $FreeBSD: head/gnu/usr.bin/binutils/Makefile.inc0 80019 2001-07-20 03:51:17Z obrien $ 333975Sjdp# 433975Sjdp 533975Sjdp# 633975Sjdp# This is included explicitly at the top of each sub-Makefile. We can't 733975Sjdp# use the normal "Makefile.inc" mechanism, because we need some of these 833975Sjdp# definitions before the sub-Makefile is processed. 933975Sjdp# 1033975Sjdp 1180019SobrienVERSION= "2.11.2 20010719 [FreeBSD]" 1254748SmarcelTARGET_ARCH?= ${MACHINE_ARCH} 1333975Sjdp 1454748SmarcelBINUTIL_ARCH=${TARGET_ARCH} 1544360Simp 1633975Sjdp# RELTOP is the relative path to this point in the source or object 1733975Sjdp# tree, from any subdirectory of same. It gets extra "../" prefixes 1833975Sjdp# added to it as we descend into subdirectories. 1933975SjdpRELTOP:= .. 2033975Sjdp 2168788SobrienRELSRC= ${RELTOP}/../../../contrib/binutils 2233975SjdpSRCDIR= ${.CURDIR}/${RELSRC} 2333975Sjdp 2433975SjdpCFLAGS+= -D_GNU_SOURCE 2533975Sjdp 2633975Sjdp# We use "-I-" because without it our yacc-generated parser tries to 2733975Sjdp# use GNU's bison-generated header files. 2834495SjdpCFLAGS+= -I- -I. 2944360Simp.if exists(${.CURDIR}/${BINUTIL_ARCH}) 3044360SimpCFLAGS+= -I${.CURDIR}/${BINUTIL_ARCH} 3134495Sjdp.endif 3234495SjdpCFLAGS+= -I${.CURDIR} 3344360SimpCFLAGS+= -I${.CURDIR}/${RELTOP}/libbfd/${BINUTIL_ARCH} 3433975SjdpCFLAGS+= -I${SRCDIR}/include 3534495Sjdp 3644360Simp.if exists(${.CURDIR}/${BINUTIL_ARCH}) 3744360Simp.PATH: ${.CURDIR}/${BINUTIL_ARCH} 3834495Sjdp.endif 3934495Sjdp 4052927SjbARCHS= ${BINUTIL_ARCH} 4135709Sjb 4252927Sjb.for _arch in ${CROSS_ARCH} 4352927Sjb.if (${ARCHS:R:M${_arch:R}} == "") 4452927SjbARCHS+=$(_arch) 4552927Sjb.endif 4652927Sjb.endfor 4752927Sjb 4835709Sjb.for _arch in ${ARCHS} 4935709Sjb.if exists(${.CURDIR}/Makefile.${_arch}) 5035709Sjb.include "${.CURDIR}/Makefile.${_arch}" 5134495Sjdp.endif 5235709Sjb.endfor 53