Makefile.inc0 revision 104861
1# $FreeBSD: head/gnu/usr.bin/binutils/Makefile.inc0 104861 2002-10-11 08:40:19Z 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.13 [FreeBSD] 2002-10-10" 8VERSION_DATE= 20021010 9 10TARGET_ARCH?= ${MACHINE_ARCH} 11 12# RELTOP is the relative path to this point in the source or object 13# tree, from any subdirectory of same. It gets extra "../" prefixes 14# added to it as we descend into subdirectories. 15RELTOP:= .. 16 17RELSRC= ${RELTOP}/../../../contrib/binutils 18SRCDIR= ${.CURDIR}/${RELSRC} 19 20.if (${TARGET_ARCH} == "alpha") 21WARNS= 2 22.else 23WARNS= 3 24.endif 25CFLAGS+= -D_GNU_SOURCE 26CFLAGS+= -I. 27.if exists(${.CURDIR}/${TARGET_ARCH}) 28CFLAGS+= -I${.CURDIR}/${TARGET_ARCH} 29.endif 30CFLAGS+= -I${.CURDIR} 31CFLAGS+= -I${.CURDIR}/${RELTOP}/libbfd/${TARGET_ARCH} 32CFLAGS+= -I${SRCDIR}/include 33 34.if exists(${.CURDIR}/${TARGET_ARCH}) 35.PATH: ${.CURDIR}/${TARGET_ARCH} 36.endif 37 38ARCHS= ${TARGET_ARCH} 39 40.for _arch in ${CROSS_ARCH} 41.if (${ARCHS:R:M${_arch:R}} == "") 42ARCHS+= $(_arch) 43.endif 44.endfor 45 46.for _arch in ${ARCHS} 47.if exists(${.CURDIR}/Makefile.${_arch}) 48.include "${.CURDIR}/Makefile.${_arch}" 49.endif 50.endfor 51