Makefile.inc0 revision 91073
1# $FreeBSD: head/gnu/usr.bin/binutils/Makefile.inc0 91073 2002-02-22 18:49:37Z obrien $ 2# 3# This is included explicitly at the top of each sub-Makefile. We can't 4# use the normal "Makefile.inc" mechanism, because we need some of these 5# definitions before the sub-Makefile is processed. 6 7VERSION= "2.12.0 pre-release snap [FreeBSD] 20020221" 8VERSION_DATE= 20020221 9 10TARGET_ARCH?= ${MACHINE_ARCH} 11BINUTIL_ARCH= ${TARGET_ARCH} 12 13# RELTOP is the relative path to this point in the source or object 14# tree, from any subdirectory of same. It gets extra "../" prefixes 15# added to it as we descend into subdirectories. 16RELTOP:= .. 17 18RELSRC= ${RELTOP}/../../../contrib/binutils 19SRCDIR= ${.CURDIR}/${RELSRC} 20 21CFLAGS+= -D_GNU_SOURCE 22 23CFLAGS+= -I. 24.if exists(${.CURDIR}/${BINUTIL_ARCH}) 25CFLAGS+= -I${.CURDIR}/${BINUTIL_ARCH} 26.endif 27CFLAGS+= -I${.CURDIR} 28CFLAGS+= -I${.CURDIR}/${RELTOP}/libbfd/${BINUTIL_ARCH} 29CFLAGS+= -I${SRCDIR}/include 30 31.if exists(${.CURDIR}/${BINUTIL_ARCH}) 32.PATH: ${.CURDIR}/${BINUTIL_ARCH} 33.endif 34 35ARCHS= ${BINUTIL_ARCH} 36 37.for _arch in ${CROSS_ARCH} 38.if (${ARCHS:R:M${_arch:R}} == "") 39ARCHS+= $(_arch) 40.endif 41.endfor 42 43.for _arch in ${ARCHS} 44.if exists(${.CURDIR}/Makefile.${_arch}) 45.include "${.CURDIR}/Makefile.${_arch}" 46.endif 47.endfor 48