Makefile.inc0 revision 89886
1# $FreeBSD: head/gnu/usr.bin/binutils/Makefile.inc0 89886 2002-01-27 22:47:22Z 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] 20020127" 8VERSION_DATE= 20020127 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 23# We use "-I-" because without it our yacc-generated parser tries to 24# use GNU's bison-generated header files. 25CFLAGS+= -I- -I. 26.if exists(${.CURDIR}/${BINUTIL_ARCH}) 27CFLAGS+= -I${.CURDIR}/${BINUTIL_ARCH} 28.endif 29CFLAGS+= -I${.CURDIR} 30CFLAGS+= -I${.CURDIR}/${RELTOP}/libbfd/${BINUTIL_ARCH} 31CFLAGS+= -I${SRCDIR}/include 32 33.if exists(${.CURDIR}/${BINUTIL_ARCH}) 34.PATH: ${.CURDIR}/${BINUTIL_ARCH} 35.endif 36 37ARCHS= ${BINUTIL_ARCH} 38 39.for _arch in ${CROSS_ARCH} 40.if (${ARCHS:R:M${_arch:R}} == "") 41ARCHS+= $(_arch) 42.endif 43.endfor 44 45.for _arch in ${ARCHS} 46.if exists(${.CURDIR}/Makefile.${_arch}) 47.include "${.CURDIR}/Makefile.${_arch}" 48.endif 49.endfor 50