6 ELFTCDIR= ${SRCTOP}/contrib/elftoolchain
8 .PATH: ${ELFTCDIR}/libelftc
12 SRCS= elftc_bfdtarget.c \
15 elftc_reloc_type_str.c \
16 elftc_set_timestamps.c \
17 elftc_string_table.c \
20 libelftc_bfdtarget.c \
28 CFLAGS+=-I${ELFTCDIR}/libelftc -I${ELFTCDIR}/common
31 elftc_bfd_find_target.3 \
34 elftc_reloc_type_str.3 \
35 elftc_set_timestamps.3 \
37 elftc_string_table_create.3 \
41 elftc_bfd_find_target.3 elftc_bfd_target_class.3 \
42 elftc_bfd_find_target.3 elftc_bfd_target_byteorder.3 \
43 elftc_bfd_find_target.3 elftc_bfd_target_flavor.3 \
44 elftc_bfd_find_target.3 elftc_bfd_target_machine.3 \
45 elftc_string_table_create.3 elftc_string_table_destroy.3 \
46 elftc_string_table_create.3 elftc_string_table_from_section.3 \
47 elftc_string_table_create.3 elftc_string_table_image.3 \
48 elftc_string_table_create.3 elftc_string_table_insert.3 \
49 elftc_string_table_create.3 elftc_string_table_lookup.3 \
50 elftc_string_table_create.3 elftc_string_table_remove.3 \
51 elftc_string_table_create.3 elftc_string_table_to_string.3
53 # This same hack is in lib/libelf/Makefile and usr.bin/readelf/Makefile
54 # We need to link against the correct version of these files. One
55 # solution is to include ../../sys in the include path. This causes
56 # problems when a header file in sys depends on a file in another
57 # part of the tree, e.g. a machine dependent header.
59 SRCS+= sys/elf_common.h
62 sys/elf_common.h: ${SRCTOP}/sys/${.TARGET} .NOMETA
63 mkdir -p ${.OBJDIR}/sys
64 ln -sf ${.ALLSRC} ${.TARGET}