7 ELFTCDIR= ${SRCTOP}/contrib/elftoolchain
9 .PATH: ${ELFTCDIR}/libelftc
13 SRCS= elftc_bfdtarget.c \
16 elftc_reloc_type_str.c \
17 elftc_set_timestamps.c \
18 elftc_string_table.c \
21 libelftc_bfdtarget.c \
29 CFLAGS+=-I${ELFTCDIR}/libelftc -I${ELFTCDIR}/common
33 # This same hack is in lib/libelf/Makefile and usr.bin/readelf/Makefile
34 # We need to link against the correct version of these files. One
35 # solution is to include ../../sys in the include path. This causes
36 # problems when a header file in sys depends on a file in another
37 # part of the tree, e.g. a machine dependent header.
39 SRCS+= sys/elf_common.h
42 sys/elf_common.h: ${SRCTOP}/sys/${.TARGET} .NOMETA
43 mkdir -p ${.OBJDIR}/sys
44 ln -sf ${.ALLSRC} ${.TARGET}