888a18208d
This is close to the upcoming 0.7.1 release. From http://svn.code.sf.net/p/elftoolchain/code
68 lines
1.4 KiB
Makefile
68 lines
1.4 KiB
Makefile
# $Id: Makefile 3382 2016-01-31 12:31:08Z jkoshy $
|
|
|
|
TOP= .
|
|
|
|
.include "${TOP}/mk/elftoolchain.components.mk"
|
|
.include "${TOP}/mk/elftoolchain.os.mk"
|
|
|
|
# Build configuration information first.
|
|
SUBDIR += common
|
|
|
|
# Build the base libraries next.
|
|
SUBDIR += libelf
|
|
SUBDIR += libdwarf
|
|
|
|
# Build additional APIs.
|
|
SUBDIR += libelftc
|
|
.if defined(WITH_PE) && ${WITH_PE:tl} == "yes"
|
|
SUBDIR += libpe
|
|
.endif
|
|
|
|
# The instruction set analyser.
|
|
.if defined(WITH_ISA) && ${WITH_ISA:tl} == "yes"
|
|
SUBDIR += isa # ('isa' does not build on all platforms yet).
|
|
.endif
|
|
|
|
# Build tools after the libraries.
|
|
SUBDIR += addr2line
|
|
SUBDIR += ar
|
|
SUBDIR += brandelf
|
|
SUBDIR += cxxfilt
|
|
SUBDIR += elfcopy
|
|
SUBDIR += elfdump
|
|
SUBDIR += findtextrel
|
|
SUBDIR += ld
|
|
SUBDIR += nm
|
|
SUBDIR += readelf
|
|
SUBDIR += size
|
|
SUBDIR += strings
|
|
SUBDIR += tools
|
|
|
|
# Build the test suites.
|
|
.if exists(${.CURDIR}/test) && defined(WITH_TESTS) && ${WITH_TESTS:tl} == "yes"
|
|
SUBDIR += test
|
|
.endif
|
|
|
|
# Build additional build tooling.
|
|
.if defined(WITH_BUILD_TOOLS) && ${WITH_BUILD_TOOLS:tl} == "yes"
|
|
SUBDIR += tools
|
|
.endif
|
|
|
|
# Build documentation at the end.
|
|
.if exists(${.CURDIR}/documentation) && defined(WITH_DOCUMENTATION) && \
|
|
${WITH_DOCUMENTATION:tl} == "yes"
|
|
SUBDIR += documentation
|
|
.endif
|
|
|
|
.include "${TOP}/mk/elftoolchain.subdir.mk"
|
|
|
|
#
|
|
# Special top-level targets.
|
|
#
|
|
|
|
# Run the test suites.
|
|
.if exists(${.CURDIR}/test) && defined(WITH_TESTS) && ${WITH_TESTS:tl} == "yes"
|
|
run-tests: all .PHONY
|
|
(cd ${.CURDIR}/test; ${MAKE} test)
|
|
.endif
|