3 ELFTCDIR= ${SRCTOP}/contrib/elftoolchain
4 READELFDIR= ${ELFTCDIR}/readelf
11 LIBADD= dwarf elftc elf
13 CFLAGS+=-I${ELFTCDIR}/libelftc -I${ELFTCDIR}/common
15 # This same hack is in lib/libelf/Makefile and lib/libdwarf/Makefile
16 # We need to link against the correct version of these files. One
17 # solution is to include SRCTOP/sys in the include path. This causes
18 # problems when a header file in sys depends on a file in another
19 # part of the tree, e.g. a machine dependent header.
21 SRCS+= sys/elf32.h sys/elf64.h sys/elf_common.h
24 sys/elf32.h sys/elf64.h sys/elf_common.h: ${SRCTOP}/sys/${.TARGET} .NOMETA
25 mkdir -p ${.OBJDIR}/sys
26 ln -sf ${.ALLSRC} ${.TARGET}
28 .include <bsd.prog.mk>