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