1 # $Id: Makefile 3016 2014-04-10 16:01:42Z jkoshy $
5 .include "${TOP}/mk/elftoolchain.os.mk"
7 # Build configuration information first.
10 # Build the base libraries next.
14 # Build additional APIs.
17 # Build the tools needed for the rest of the build.
19 # SUBDIR += isa # ('isa' does not build on all platforms yet).
21 # Build tools after the libraries.
35 # Build the test suites.
36 .if exists(${.CURDIR}/test) && defined(MKTESTS) && ${MKTESTS} == "yes"
40 # Build documentation at the end.
41 .if exists(${.CURDIR}/documentation) && defined(MKDOC) && ${MKDOC} == "yes"
42 SUBDIR += documentation
45 .include "${TOP}/mk/elftoolchain.subdir.mk"
48 # Special top-level targets.
51 # Run the test suites.
52 .if exists(${.CURDIR}/test) && defined(MKTESTS) && ${MKTESTS} == "yes"
54 (cd ${.CURDIR}/test; ${MAKE} test)