1# This is included explicitly at the top of each sub-Makefile. We can't 2# use the normal "Makefile.inc" mechanism, because we need some of these 3# definitions before the sub-Makefile is processed. 4 5RELTOP:= ../.. 6 7# RELTOP is the relative path to this point in the source or object 8# tree, from any subdirectory of same. It gets extra "../" prefixes 9# added to it as we descend into subdirectories. 10 11RELSRC= ${RELTOP}/../../../contrib/binutils-2.27 12SRCDIR= ${.CURDIR}/${RELSRC} 13BINTOP= ${.CURDIR}/${RELTOP} 14OBJTOP= ${.OBJDIR}/${RELTOP} 15 16# Keep these, block2/ld and block2/gas will want to override BULIBS_INC. 17_BULIBS_INC= -I${OBJTOP}/block1/bulibs -I${BINTOP}/block1/bulibs 18BULIBS_INC= ${_BULIBS_INC} 19 20CFLAGS+= ${BULIBS_INC} 21CFLAGS+= -I${SRCDIR}/include 22CFLAGS+= -I${SRCDIR}/bfd 23 24LDADD_BU= ${OBJTOP}/block1/bulibs/libbu.a 25LDADD_BFD= ${OBJTOP}/block1/libbfd/libbfd.a 26LDADD_IBERTY= ${OBJTOP}/block1/libiberty/libiberty.a 27LDADD_OPCODE= ${OBJTOP}/block1/libopcodes/libopcodes.a 28 29STD_LDADD= ${LDADD_BU} ${LDADD_BFD} ${LDADD_IBERTY} 30 31bfd_stdint.h: 32 touch ${.TARGET} 33