]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/elftoolchain/libelftc/Makefile
Update to ELF Tool Chain r3475
[FreeBSD/FreeBSD.git] / contrib / elftoolchain / libelftc / Makefile
1 # $Id: Makefile 3418 2016-02-19 20:04:42Z emaste $
2
3 TOP=    ${.CURDIR}/..
4
5 LIB=    elftc
6
7 SRCS=   elftc_bfdtarget.c                       \
8         elftc_copyfile.c                        \
9         elftc_demangle.c                        \
10         elftc_reloc_type_str.c                  \
11         elftc_set_timestamps.c                  \
12         elftc_string_table.c                    \
13         elftc_version.c                         \
14         libelftc_bfdtarget.c                    \
15         libelftc_dem_arm.c                      \
16         libelftc_dem_gnu2.c                     \
17         libelftc_dem_gnu3.c                     \
18         libelftc_hash.c                         \
19         libelftc_vstr.c
20
21 INCS=           libelftc.h
22 INCSDIR=        /usr/include
23
24 RELEASE=        HEAD            # Change this on release branches.
25
26 SHLIB_MAJOR=    1
27
28 WARNS?= 6
29
30 CLEANFILES+=    elftc_version.c
31
32 LDADD+= -lelf
33
34 MAN=    elftc.3 \
35         elftc_bfd_find_target.3 \
36         elftc_copyfile.3 \
37         elftc_demangle.3 \
38         elftc_reloc_type_str.3 \
39         elftc_set_timestamps.3 \
40         elftc_string_table_create.3 \
41         elftc_version.3
42
43 MLINKS= elftc_bfd_find_target.3 elftc_bfd_target_byteorder.3 \
44         elftc_bfd_find_target.3 elftc_bfd_target_class.3 \
45         elftc_bfd_find_target.3 elftc_bfd_target_flavor.3 \
46         elftc_string_table_create.3 elftc_string_table_from_section.3 \
47         elftc_string_table_create.3 elftc_string_table_destroy.3 \
48         elftc_string_table_create.3 elftc_string_table_image.3 \
49         elftc_string_table_create.3 elftc_string_table_insert.3 \
50         elftc_string_table_create.3 elftc_string_table_lookup.3
51
52 .if     !make(clean) && !make(clobber)
53 .BEGIN: .SILENT
54         ${.CURDIR}/make-toolchain-version -t ${TOP} -r ${RELEASE} \
55             -h ${OS_HOST}
56 .endif
57
58 .include "${TOP}/mk/elftoolchain.lib.mk"