Makefile revision 301471
1192886Sedwin# $FreeBSD: head/lib/libelftc/Makefile 301471 2016-06-05 23:05:14Z bdrewery $
2192886Sedwin.include <bsd.own.mk>
3153761Swollman
42742SwollmanPACKAGE=lib${LIB}
586464SwollmanINTERNALLIB=
62742Swollman
72742SwollmanELFTCDIR=	${SRCTOP}/contrib/elftoolchain
82742Swollman
92742Swollman.PATH:	${ELFTCDIR}/libelftc
102742Swollman
112742SwollmanLIB=	elftc
1286222Swollman
1386222SwollmanSRCS=	elftc_bfdtarget.c                       \
142742Swollman	elftc_copyfile.c                        \
15270817Spluknet	elftc_demangle.c                        \
16270817Spluknet	elftc_reloc_type_str.c			\
17270817Spluknet	elftc_set_timestamps.c                  \
18270817Spluknet	elftc_string_table.c                    \
19270817Spluknet	elftc_version.c                         \
20270817Spluknet	libelftc_bfdtarget.c                    \
21270817Spluknet	libelftc_dem_arm.c                      \
2258787Sru	libelftc_dem_gnu2.c                     \
2358787Sru	libelftc_dem_gnu3.c                     \
2458787Sru	libelftc_hash.c                         \
252742Swollman	libelftc_vstr.c
262742Swollman
279908SwollmanINCS=	libelftc.h
282742SwollmanCFLAGS+=-I${ELFTCDIR}/libelftc -I${ELFTCDIR}/common
29270817Spluknet
30270817SpluknetMAN=
319908Swollman
32169811Swollman# This same hack is in lib/libelf/Makefile and usr.bin/readelf/Makefile
33169811Swollman# We need to link against the correct version of these files. One
34270817Spluknet# solution is to include ../../sys in the include path. This causes
35270817Spluknet# problems when a header file in sys depends on a file in another
36270817Spluknet# part of the tree, e.g. a machine dependent header.
37270817Spluknet#
38270817SpluknetSRCS+=		sys/elf_common.h
39270817SpluknetCLEANDIRS=	sys
40270817SpluknetCFLAGS+=	-I.
41270817Spluknetsys/elf_common.h: ${SRCTOP}/sys/${.TARGET} .NOMETA
42270817Spluknet	mkdir -p ${.OBJDIR}/sys
432742Swollman	ln -sf ${.ALLSRC} ${.TARGET}
44270817Spluknet
45270817Spluknet.include <bsd.lib.mk>
46169811Swollman