xref: /freebsd/contrib/elftoolchain/libelftc/Makefile (revision 840e70929b3bc0bfdbccfd8d8626d6e2f29ddbcf)
1# $Id: Makefile 2859 2013-01-05 09:21:54Z jkoshy $
2
3TOP=	${.CURDIR}/..
4
5LIB=	elftc
6
7SRCS=	elftc_bfdtarget.c			\
8	elftc_copyfile.c			\
9	elftc_demangle.c			\
10	elftc_set_timestamps.c			\
11	elftc_string_table.c			\
12	elftc_version.c				\
13	libelftc_bfdtarget.c			\
14	libelftc_dem_arm.c			\
15	libelftc_dem_gnu2.c			\
16	libelftc_dem_gnu3.c			\
17	libelftc_hash.c				\
18	libelftc_vstr.c
19
20INCS=		libelftc.h
21INCSDIR=	/usr/include
22
23RELEASE=	HEAD		# Change this on release branches.
24
25SHLIB_MAJOR=	1
26
27WARNS?=	6
28
29CLEANFILES+=	elftc_version.c
30
31LDADD+=	-lelf
32
33MAN=	elftc.3 \
34	elftc_bfd_find_target.3 \
35	elftc_copyfile.3 \
36	elftc_demangle.3 \
37	elftc_set_timestamps.3 \
38	elftc_string_table_create.3 \
39	elftc_version.3
40
41MLINKS=	elftc_bfd_find_target.3 elftc_bfd_target_byteorder.3 \
42	elftc_bfd_find_target.3 elftc_bfd_target_class.3 \
43	elftc_bfd_find_target.3 elftc_bfd_target_flavor.3 \
44	elftc_string_table_create.3 elftc_string_table_from_section.3 \
45	elftc_string_table_create.3 elftc_string_table_destroy.3 \
46	elftc_string_table_create.3 elftc_string_table_image.3 \
47	elftc_string_table_create.3 elftc_string_table_insert.3 \
48	elftc_string_table_create.3 elftc_string_table_lookup.3 \
49	elftc_symbol_table_create.3 elftc_symbol_table_create_nested.3 \
50	elftc_symbol_table_create.3 elftc_symbol_table_delete_name.3 \
51	elftc_symbol_table_create.3 elftc_symbol_table_delete_entry.3 \
52	elftc_symbol_table_create.3 elftc_symbol_table_destroy.3 \
53	elftc_symbol_table_create.3 elftc_symbol_table_from_section.3 \
54	elftc_symbol_table_create.3 elftc_symbol_table_insert.3 \
55	elftc_symbol_table_create.3 elftc_symbol_table_iterate.3 \
56	elftc_symbol_table_create.3 elftc_symbol_table_lookup.3 \
57	elftc_symbol_table_create.3 elftc_symbol_table_to_image.3
58
59.if	!make(clean) && !make(clobber)
60.BEGIN:	.SILENT
61	${.CURDIR}/make-toolchain-version -t ${TOP} -r ${RELEASE} \
62	    -h ${OS_HOST}
63.endif
64
65.include "${TOP}/mk/elftoolchain.lib.mk"
66