1df952388b
To enable them, set WITH_GCC and WITH_GNUCXX in src.conf. Make clang default to using libc++ on FreeBSD 10. Bumped __FreeBSD_version for the change. GCC is still enabled on PC98, because the PC98 bootloader requires GCC to build (or, at least, hard-codes the use of gcc into its build). Thanks to everyone who helped make the ports tree ready for this (and bapt for coordinating them all). Also to imp for reviewing this and working on the forward-porting of the changes in our gcc so that we're getting to a much better place with regard to external toolchains. Sorry to all of the people who helped who I forgot to mention by name. Reviewed by: bapt, imp, dim, ...
28 lines
513 B
Makefile
28 lines
513 B
Makefile
# $FreeBSD$
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
# The order of some of these are rather important. Some depend on previous
|
|
# subdirs.
|
|
|
|
SUBDIR= cc_tools libiberty libcpp libdecnumber cc_int cc cc1 include doc
|
|
|
|
.if ${MK_CPP} != "no"
|
|
SUBDIR+= cpp
|
|
.endif
|
|
|
|
.if ${MK_CXX} != "no"
|
|
.if ${MK_GNUCXX} != "no"
|
|
SUBDIR+= cc1plus c++
|
|
.endif
|
|
# This should be moved into the above block once c++filt from elftoolchain or
|
|
# similar is provided.
|
|
SUBDIR+= c++filt
|
|
.endif
|
|
|
|
.if ${MK_GCOV} != "no"
|
|
SUBDIR+= gcov
|
|
.endif
|
|
|
|
.include <bsd.subdir.mk>
|