freebsd-dev/Makefile
Ed Maste 5eccfb5cf5 Import elftoolchain rev 3130
From svn.code.sf.net/p/elftoolchain/code/trunk
2014-12-22 20:32:23 +00:00

56 lines
1.1 KiB
Makefile

# $Id: Makefile 3016 2014-04-10 16:01:42Z jkoshy $
TOP= .
.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
# Build the tools needed for the rest of the build.
# SUBDIR += isa # ('isa' does not build on all platforms yet).
# Build tools after the libraries.
SUBDIR += addr2line
SUBDIR += ar
SUBDIR += brandelf
SUBDIR += cxxfilt
SUBDIR += elfcopy
SUBDIR += elfdump
SUBDIR += findtextrel
SUBDIR += nm
SUBDIR += readelf
SUBDIR += size
SUBDIR += strings
SUBDIR += tools
# Build the test suites.
.if exists(${.CURDIR}/test) && defined(MKTESTS) && ${MKTESTS} == "yes"
SUBDIR += test
.endif
# Build documentation at the end.
.if exists(${.CURDIR}/documentation) && defined(MKDOC) && ${MKDOC} == "yes"
SUBDIR += documentation
.endif
.include "${TOP}/mk/elftoolchain.subdir.mk"
#
# Special top-level targets.
#
# Run the test suites.
.if exists(${.CURDIR}/test) && defined(MKTESTS) && ${MKTESTS} == "yes"
run-tests: all .PHONY
(cd ${.CURDIR}/test; ${MAKE} test)
.endif