summaryrefslogtreecommitdiffstats
path: root/lib/libelftc/Makefile
blob: fa2f8c314699affc0cb71884046d41a83b495231 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# $FreeBSD$
.include <bsd.own.mk>

PACKAGE=lib${LIB}
INTERNALLIB=

ELFTCDIR=	${SRCTOP}/contrib/elftoolchain

.PATH:	${ELFTCDIR}/libelftc

LIB=	elftc

SRCS=	elftc_bfdtarget.c                       \
	elftc_copyfile.c                        \
	elftc_demangle.c                        \
	elftc_reloc_type_str.c			\
	elftc_set_timestamps.c                  \
	elftc_string_table.c                    \
	elftc_timestamp.c			\
	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

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

# 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}

.include <bsd.lib.mk>
OpenPOWER on IntegriCloud