]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - Makefile
Import elftoolchain rev 3130
[FreeBSD/FreeBSD.git] / Makefile
1 # $Id: Makefile 3016 2014-04-10 16:01:42Z jkoshy $
2
3 TOP=    .
4
5 .include "${TOP}/mk/elftoolchain.os.mk"
6
7 # Build configuration information first.
8 SUBDIR += common
9
10 # Build the base libraries next.
11 SUBDIR += libelf
12 SUBDIR += libdwarf
13
14 # Build additional APIs.
15 SUBDIR += libelftc
16
17 # Build the tools needed for the rest of the build.
18
19 # SUBDIR += isa  # ('isa' does not build on all platforms yet).
20
21 # Build tools after the libraries.
22 SUBDIR += addr2line
23 SUBDIR += ar
24 SUBDIR += brandelf
25 SUBDIR += cxxfilt
26 SUBDIR += elfcopy
27 SUBDIR += elfdump
28 SUBDIR += findtextrel
29 SUBDIR += nm
30 SUBDIR += readelf
31 SUBDIR += size
32 SUBDIR += strings
33 SUBDIR += tools
34
35 # Build the test suites.
36 .if exists(${.CURDIR}/test) && defined(MKTESTS) && ${MKTESTS} == "yes"
37 SUBDIR += test
38 .endif
39
40 # Build documentation at the end.
41 .if exists(${.CURDIR}/documentation) && defined(MKDOC) && ${MKDOC} == "yes"
42 SUBDIR += documentation
43 .endif
44
45 .include "${TOP}/mk/elftoolchain.subdir.mk"
46
47 #
48 # Special top-level targets.
49 #
50
51 # Run the test suites.
52 .if exists(${.CURDIR}/test) && defined(MKTESTS) && ${MKTESTS} == "yes"
53 run-tests:      all .PHONY
54         (cd ${.CURDIR}/test; ${MAKE} test)
55 .endif