xref: /freebsd/contrib/elftoolchain/libelftc/Makefile (revision b6b6f9cc7c36b4ff856e2cee50cb825d82a329fe)
1*b6b6f9ccSEd Maste# $Id: Makefile 3418 2016-02-19 20:04:42Z emaste $
2a85fe12eSEd Maste
3a85fe12eSEd MasteTOP=	${.CURDIR}/..
4a85fe12eSEd Maste
5a85fe12eSEd MasteLIB=	elftc
6a85fe12eSEd Maste
7a85fe12eSEd MasteSRCS=	elftc_bfdtarget.c			\
8a85fe12eSEd Maste	elftc_copyfile.c			\
9a85fe12eSEd Maste	elftc_demangle.c			\
10*b6b6f9ccSEd Maste	elftc_reloc_type_str.c			\
11a85fe12eSEd Maste	elftc_set_timestamps.c			\
12a85fe12eSEd Maste	elftc_string_table.c			\
13a85fe12eSEd Maste	elftc_version.c				\
14a85fe12eSEd Maste	libelftc_bfdtarget.c			\
15a85fe12eSEd Maste	libelftc_dem_arm.c			\
16a85fe12eSEd Maste	libelftc_dem_gnu2.c			\
17a85fe12eSEd Maste	libelftc_dem_gnu3.c			\
18a85fe12eSEd Maste	libelftc_hash.c				\
19a85fe12eSEd Maste	libelftc_vstr.c
20a85fe12eSEd Maste
21a85fe12eSEd MasteINCS=		libelftc.h
22a85fe12eSEd MasteINCSDIR=	/usr/include
23a85fe12eSEd Maste
24a85fe12eSEd MasteRELEASE=	HEAD		# Change this on release branches.
25a85fe12eSEd Maste
26a85fe12eSEd MasteSHLIB_MAJOR=	1
27a85fe12eSEd Maste
28a85fe12eSEd MasteWARNS?=	6
29a85fe12eSEd Maste
30a85fe12eSEd MasteCLEANFILES+=	elftc_version.c
31a85fe12eSEd Maste
32a85fe12eSEd MasteLDADD+=	-lelf
33a85fe12eSEd Maste
34a85fe12eSEd MasteMAN=	elftc.3 \
35a85fe12eSEd Maste	elftc_bfd_find_target.3 \
36a85fe12eSEd Maste	elftc_copyfile.3 \
37a85fe12eSEd Maste	elftc_demangle.3 \
38*b6b6f9ccSEd Maste	elftc_reloc_type_str.3 \
39a85fe12eSEd Maste	elftc_set_timestamps.3 \
40a85fe12eSEd Maste	elftc_string_table_create.3 \
41a85fe12eSEd Maste	elftc_version.3
42a85fe12eSEd Maste
43a85fe12eSEd MasteMLINKS=	elftc_bfd_find_target.3 elftc_bfd_target_byteorder.3 \
44a85fe12eSEd Maste	elftc_bfd_find_target.3 elftc_bfd_target_class.3 \
45a85fe12eSEd Maste	elftc_bfd_find_target.3 elftc_bfd_target_flavor.3 \
46a85fe12eSEd Maste	elftc_string_table_create.3 elftc_string_table_from_section.3 \
47a85fe12eSEd Maste	elftc_string_table_create.3 elftc_string_table_destroy.3 \
48a85fe12eSEd Maste	elftc_string_table_create.3 elftc_string_table_image.3 \
49a85fe12eSEd Maste	elftc_string_table_create.3 elftc_string_table_insert.3 \
50839529caSEd Maste	elftc_string_table_create.3 elftc_string_table_lookup.3
51a85fe12eSEd Maste
52a85fe12eSEd Maste.if	!make(clean) && !make(clobber)
53a85fe12eSEd Maste.BEGIN:	.SILENT
54a85fe12eSEd Maste	${.CURDIR}/make-toolchain-version -t ${TOP} -r ${RELEASE} \
55a85fe12eSEd Maste	    -h ${OS_HOST}
56a85fe12eSEd Maste.endif
57a85fe12eSEd Maste
58a85fe12eSEd Maste.include "${TOP}/mk/elftoolchain.lib.mk"
59