2014-12-01 17:49:42 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2016-02-04 21:16:35 +00:00
|
|
|
PACKAGE=lib${LIB}
|
2014-12-01 17:49:42 +00:00
|
|
|
INTERNALLIB=
|
|
|
|
|
2016-04-21 12:58:29 +00:00
|
|
|
ELFTCDIR= ${SRCTOP}/contrib/elftoolchain
|
2014-12-01 17:49:42 +00:00
|
|
|
|
|
|
|
.PATH: ${ELFTCDIR}/libelftc
|
|
|
|
|
|
|
|
LIB= elftc
|
|
|
|
|
|
|
|
SRCS= elftc_bfdtarget.c \
|
|
|
|
elftc_copyfile.c \
|
|
|
|
elftc_demangle.c \
|
2016-05-20 17:24:34 +00:00
|
|
|
elftc_reloc_type_str.c \
|
2014-12-01 17:49:42 +00:00
|
|
|
elftc_set_timestamps.c \
|
|
|
|
elftc_string_table.c \
|
2016-08-31 15:05:04 +00:00
|
|
|
elftc_timestamp.c \
|
2014-12-01 17:49:42 +00:00
|
|
|
elftc_version.c \
|
|
|
|
libelftc_bfdtarget.c \
|
|
|
|
libelftc_dem_arm.c \
|
|
|
|
libelftc_dem_gnu2.c \
|
|
|
|
libelftc_dem_gnu3.c \
|
|
|
|
libelftc_hash.c \
|
|
|
|
libelftc_vstr.c
|
|
|
|
|
|
|
|
INCS= libelftc.h
|
|
|
|
CFLAGS+=-I${ELFTCDIR}/libelftc -I${ELFTCDIR}/common
|
|
|
|
|
2016-12-17 03:34:51 +00:00
|
|
|
MAN+= elftc.3 \
|
|
|
|
elftc_bfd_find_target.3 \
|
|
|
|
elftc_copyfile.3 \
|
|
|
|
elftc_demangle.3 \
|
|
|
|
elftc_reloc_type_str.3 \
|
|
|
|
elftc_set_timestamps.3 \
|
|
|
|
elftc_timestamp.3 \
|
|
|
|
elftc_string_table_create.3 \
|
|
|
|
elftc_version.3
|
2014-12-01 17:49:42 +00:00
|
|
|
|
2016-06-05 23:05:14 +00:00
|
|
|
# This same hack is in lib/libelf/Makefile and usr.bin/readelf/Makefile
|
|
|
|
# We need to link against the correct version of these files. One
|
|
|
|
# solution is to include ../../sys in the include path. This causes
|
|
|
|
# problems when a header file in sys depends on a file in another
|
|
|
|
# part of the tree, e.g. a machine dependent header.
|
|
|
|
#
|
|
|
|
SRCS+= sys/elf_common.h
|
|
|
|
CLEANDIRS= sys
|
|
|
|
CFLAGS+= -I.
|
|
|
|
sys/elf_common.h: ${SRCTOP}/sys/${.TARGET} .NOMETA
|
|
|
|
mkdir -p ${.OBJDIR}/sys
|
|
|
|
ln -sf ${.ALLSRC} ${.TARGET}
|
|
|
|
|
2014-12-01 17:49:42 +00:00
|
|
|
.include <bsd.lib.mk>
|