150472Speter# $FreeBSD: releng/10.2/gnu/usr.bin/cc/Makefile 255321 2013-09-06 20:08:03Z theraven $
21823Sphk
3156813Sru.include <bsd.own.mk>
4156813Sru
518913Speter# The order of some of these are rather important.  Some depend on previous
618913Speter# subdirs.
71823Sphk
8169718SkanSUBDIR= cc_tools libiberty libcpp libdecnumber cc_int cc cc1 include doc
918913Speter
10156813Sru.if ${MK_CPP} != "no"
1158318SobrienSUBDIR+= cpp
1258318Sobrien.endif
1358318Sobrien
14156813Sru.if ${MK_CXX} != "no"
15255321Stheraven.if ${MK_GNUCXX} != "no"
16255321StheravenSUBDIR+= cc1plus c++ 
1758318Sobrien.endif
18255321Stheraven# This should be moved into the above block once c++filt from elftoolchain or
19255321Stheraven# similar is provided.
20255321StheravenSUBDIR+= c++filt
21255321Stheraven.endif
2258318Sobrien
23156813Sru.if ${MK_GCOV} != "no"
2470318SobrienSUBDIR+= gcov
2570318Sobrien.endif
2670318Sobrien
271823Sphk.include <bsd.subdir.mk>
28