Makefile revision 302408
1# $FreeBSD: stable/11/lib/libelftc/Makefile 301471 2016-06-05 23:05:14Z bdrewery $
2.include <bsd.own.mk>
3
4PACKAGE=lib${LIB}
5INTERNALLIB=
6
7ELFTCDIR=	${SRCTOP}/contrib/elftoolchain
8
9.PATH:	${ELFTCDIR}/libelftc
10
11LIB=	elftc
12
13SRCS=	elftc_bfdtarget.c                       \
14	elftc_copyfile.c                        \
15	elftc_demangle.c                        \
16	elftc_reloc_type_str.c			\
17	elftc_set_timestamps.c                  \
18	elftc_string_table.c                    \
19	elftc_version.c                         \
20	libelftc_bfdtarget.c                    \
21	libelftc_dem_arm.c                      \
22	libelftc_dem_gnu2.c                     \
23	libelftc_dem_gnu3.c                     \
24	libelftc_hash.c                         \
25	libelftc_vstr.c
26
27INCS=	libelftc.h
28CFLAGS+=-I${ELFTCDIR}/libelftc -I${ELFTCDIR}/common
29
30MAN=
31
32# This same hack is in lib/libelf/Makefile and usr.bin/readelf/Makefile
33# We need to link against the correct version of these files. One
34# solution is to include ../../sys in the include path. This causes
35# problems when a header file in sys depends on a file in another
36# part of the tree, e.g. a machine dependent header.
37#
38SRCS+=		sys/elf_common.h
39CLEANDIRS=	sys
40CFLAGS+=	-I.
41sys/elf_common.h: ${SRCTOP}/sys/${.TARGET} .NOMETA
42	mkdir -p ${.OBJDIR}/sys
43	ln -sf ${.ALLSRC} ${.TARGET}
44
45.include <bsd.lib.mk>
46