1 # ELF library is a component of ELF Tool Chain (replacement for binutils)
2 # For now, do not expose this library. It is needed for execinfo library.
8 INSTALL_PIC_ARCHIVE
= yes
9 TOOLCHAINDIR
= ${.CURDIR
}/..
/..
/contrib
/elftoolchain
10 SRCDIR
= ${TOOLCHAINDIR}/libelf
11 COMMON
= ${TOOLCHAINDIR}/common
12 CFLAGS
+= -I.
-I
${SRCDIR} -I
${COMMON}
16 # verbatim from vendor sourcefile
20 elf_end.c elf_errmsg.c elf_errno.c \
72 GENSRCS
= libelf_fsize.c libelf_msize.c libelf_convert.c
74 libelf_convert.c
: elf_types.m4 libelf_convert.m4
75 libelf_fsize.c
: elf_types.m4 libelf_fsize.m4
76 libelf_msize.c
: elf_types.m4 libelf_msize.m4
78 # Copy correct headers over to object directory
80 ELFHEAD
= sys
/elf32.h sys
/elf64.h sys
/elf_common.h
86 ${ELFHEAD}: ${.OBJDIR
}/sys
${.CURDIR
}/..
/..
/sys
/${.TARGET
}
87 ln
-sf
${.CURDIR
}/..
/..
/sys
/${.TARGET
} ${.TARGET
}
89 CLEANFILES
= ${GENSRCS}
94 # Keep the .SUFFIXES line after the include of <bsd.lib.mk>
97 m4
-D SRCDIR
=${SRCDIR} ${M4FLAGS} ${.IMPSRC
} > ${.TARGET
}