Makefile revision 263508
1130391Sle# $FreeBSD: stable/10/lib/clang/Makefile 263508 2014-03-21 17:53:59Z dim $
2190507Slulf
3190507Slulf.include <bsd.own.mk>
4190507Slulf
5130391Sle.if !make(install)
6152631Sle.if !defined(EARLY_BUILD)
7152631Sle.if defined(MK_CLANG_FULL) && ${MK_CLANG_FULL} != "no"
8152631Sle_libclangstaticanalyzer= \
9152631Sle	libclangstaticanalyzercheckers \
10152631Sle	libclangstaticanalyzercore \
11130391Sle	libclangstaticanalyzerfrontend
12130391Sle_libclangarcmigrate= \
13130391Sle	libclangarcmigrate
14130391Sle.endif # MK_CLANG_FULL
15130391Sle.if (defined(MK_CLANG_FULL) && ${MK_CLANG_FULL} != "no") || \
16130391Sle    (defined(MK_LLDB) && ${MK_LLDB} != "no")
17130391Sle_libclangrewriter= \
18130391Sle	libclangrewritecore \
19152631Sle	libclangrewritefrontend
20130391Sle.endif # (MK_CLANG_FULL || MK_LLDB)
21130391Sle.endif # !EARLY_BUILD
22130391Sle
23130391SleSUBDIR=	libclanganalysis \
24130391Sle	${_libclangarcmigrate} \
25130391Sle	libclangast \
26130391Sle	libclangbasic \
27130391Sle	libclangcodegen \
28130391Sle	libclangdriver \
29130391Sle	libclangedit \
30130391Sle	libclangfrontend \
31130391Sle	libclangfrontendtool \
32130391Sle	libclanglex \
33130391Sle	libclangparse \
34130391Sle	${_libclangrewriter} \
35130391Sle	libclangsema \
36130391Sle	libclangserialization \
37130391Sle	${_libclangstaticanalyzer} \
38130391Sle	\
39130391Sle	libllvmanalysis \
40130391Sle	libllvmasmparser \
41130391Sle	libllvmasmprinter \
42130391Sle	libllvmbitreader \
43130391Sle	libllvmbitwriter \
44130391Sle	libllvmcodegen \
45130391Sle	libllvmcore \
46130391Sle	libllvminstcombine \
47130391Sle	libllvminstrumentation \
48190507Slulf	libllvmipa \
49130391Sle	libllvmipo \
50130391Sle	libllvmirreader \
51130391Sle	libllvmlinker \
52130391Sle	libllvmmc \
53220370Sobrien	libllvmmcparser \
54130391Sle	libllvmobjcarcopts \
55130391Sle	libllvmobject \
56130391Sle	libllvmoption \
57130391Sle	libllvmscalaropts \
58130391Sle	libllvmselectiondag \
59130391Sle	libllvmsupport \
60130391Sle	libllvmtablegen \
61266043Smarius	libllvmtarget \
62266043Smarius	libllvmtransformutils \
63266043Smarius	libllvmvectorize \
64266043Smarius	\
65266043Smarius	libllvmarmasmparser \
66266043Smarius	libllvmarmcodegen \
67266043Smarius	libllvmarmdesc \
68266043Smarius	libllvmarmdisassembler \
69266043Smarius	libllvmarminfo \
70266043Smarius	libllvmarminstprinter \
71266043Smarius	libllvmmipsasmparser \
72266043Smarius	libllvmmipscodegen \
73266043Smarius	libllvmmipsdesc \
74266043Smarius	libllvmmipsdisassembler \
75266043Smarius	libllvmmipsinfo \
76266043Smarius	libllvmmipsinstprinter \
77266043Smarius	libllvmpowerpcasmparser \
78266043Smarius	libllvmpowerpccodegen \
79266043Smarius	libllvmpowerpcdesc \
80266043Smarius	libllvmpowerpcinfo \
81266043Smarius	libllvmpowerpcinstprinter \
82266043Smarius	libllvmx86asmparser \
83130391Sle	libllvmx86codegen \
84266043Smarius	libllvmx86desc \
85266043Smarius	libllvmx86disassembler \
86266043Smarius	libllvmx86info \
87266043Smarius	libllvmx86instprinter \
88266043Smarius	libllvmx86utils
89266043Smarius
90266043Smarius.if ${MK_CLANG_EXTRAS} != "no"
91190507SlulfSUBDIR+=libllvmdebuginfo
92130391Sle.endif # MK_CLANG_EXTRAS
93130391Sle.if ${MK_CLANG_EXTRAS} != "no" || ${MK_LLDB} != "no"
94130391SleSUBDIR+=libllvmexecutionengine \
95130391Sle	libllvminterpreter \
96130391Sle	libllvmjit \
97130391Sle	libllvmmcdisassembler \
98130391Sle	libllvmmcjit \
99265536Smarius	libllvmruntimedyld
100265536Smarius.endif # MK_CLANG_EXTRAS | LLDB
101265536Smarius
102265536Smarius.if !defined(EARLY_BUILD) && ${MK_LLDB} != "no"
103130391SleSUBDIR+=liblldb \
104130391Sle	\
105130391Sle	liblldbAPI \
106130391Sle	liblldbBreakpoint \
107130391Sle	liblldbCommands \
108130391Sle	liblldbCore \
109130391Sle	liblldbDataFormatters \
110130391Sle	liblldbExpression \
111130391Sle	liblldbHostCommon \
112130391Sle	liblldbHostFreeBSD \
113130391Sle	liblldbInterpreter \
114130391Sle	liblldbSymbol \
115130391Sle	liblldbTarget \
116130391Sle	liblldbUtility \
117130391Sle	\
118130391Sle	liblldbPluginABISysV_x86_64 \
119130391Sle	liblldbPluginCXXItaniumABI \
120130391Sle	liblldbPluginDisassemblerLLVM \
121130391Sle	liblldbPluginDynamicLoaderStatic \
122130391Sle	liblldbPluginDynamicLoaderPosixDYLD \
123130391Sle	liblldbPluginInstructionARM \
124130391Sle	liblldbPluginObjectContainerBSDArchive \
125130391Sle	liblldbPluginObjectFileELF \
126130391Sle	liblldbPluginPlatformFreeBSD \
127130391Sle	liblldbPluginPlatformGDB \
128130391Sle	liblldbPluginProcessElfCore \
129130391Sle	liblldbPluginProcessFreeBSD \
130130391Sle	liblldbPluginProcessGDBRemote \
131130391Sle	liblldbPluginProcessPOSIX \
132130391Sle	liblldbPluginProcessUtility \
133130391Sle	liblldbPluginSymbolFileDWARF \
134130391Sle	liblldbPluginSymbolFileSymtab \
135190507Slulf	liblldbPluginSymbolVendorELF \
136266043Smarius	liblldbPluginUnwindAssemblyInstEmulation \
137266043Smarius	liblldbPluginUnwindAssemblyX86
138190507Slulf.endif # !EARLY_BUILD && MK_LLDB
139190507Slulf
140190507Slulf.endif # !make(install)
141190507Slulf
142190507SlulfSUBDIR+= include
143190507Slulf
144190507Slulf.include <bsd.subdir.mk>
145190507Slulf