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.
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.
11 RELSRC= ${RELTOP}/../../../contrib/binutils-2.25
12 SRCDIR= ${.CURDIR}/${RELSRC}
13 BINTOP= ${.CURDIR}/${RELTOP}
14 OBJTOP= ${.OBJDIR}/${RELTOP}
16 CFLAGS+= -I${OBJTOP}/block1/bulibs
17 CFLAGS+= -I${BINTOP}/block1/bulibs
18 CFLAGS+= -I${SRCDIR}/include
19 CFLAGS+= -I${SRCDIR}/bfd
21 LDADD_BU= ${OBJTOP}/block1/bulibs/libbu.a
22 LDADD_BFD= ${OBJTOP}/block1/libbfd/libbfd.a
23 LDADD_IBERTY= ${OBJTOP}/block1/libiberty/libiberty.a
24 LDADD_OPCODE= ${OBJTOP}/block1/libopcodes/libopcodes.a
26 STD_LDADD= ${LDADD_BU} ${LDADD_BFD} ${LDADD_IBERTY}