xref: /freebsd/lib/clang/Makefile (revision 298f5fdc242b760e70cd3494e3a4f1f50b20664d)
1# $FreeBSD$
2
3.include <src.opts.mk>
4
5.if !make(install)
6.if ${MK_CLANG_FULL} != "no"
7_libclangstaticanalyzer= \
8	libclangstaticanalyzercheckers \
9	libclangstaticanalyzercore \
10	libclangstaticanalyzerfrontend
11_libclangarcmigrate= \
12	libclangarcmigrate
13.endif # MK_CLANG_FULL
14.if ${MK_CLANG_FULL} != "no" || ${MK_LLDB} != "no"
15_libclangrewriter= \
16	libclangrewritecore \
17	libclangrewritefrontend
18.endif # (MK_CLANG_FULL || MK_LLDB)
19
20SUBDIR=	libclanganalysis \
21	${_libclangarcmigrate} \
22	libclangast \
23	libclangbasic \
24	libclangcodegen \
25	libclangdriver \
26	libclangedit \
27	libclangfrontend \
28	libclangfrontendtool \
29	libclanglex \
30	libclangparse \
31	${_libclangrewriter} \
32	libclangsema \
33	libclangserialization \
34	${_libclangstaticanalyzer} \
35	\
36	libllvmanalysis \
37	libllvmasmparser \
38	libllvmasmprinter \
39	libllvmbitreader \
40	libllvmbitwriter \
41	libllvmcodegen \
42	libllvmcore \
43	libllvminstcombine \
44	libllvminstrumentation \
45	libllvmipa \
46	libllvmipo \
47	libllvmirreader \
48	libllvmlinker \
49	libllvmmc \
50	libllvmmcparser \
51	libllvmobjcarcopts \
52	libllvmobject \
53	libllvmoption \
54	libllvmscalaropts \
55	libllvmselectiondag \
56	libllvmsupport \
57	libllvmtablegen \
58	libllvmtarget \
59	libllvmtransformutils \
60	libllvmvectorize \
61	\
62	libllvmarmasmparser \
63	libllvmarmcodegen \
64	libllvmarmdesc \
65	libllvmarmdisassembler \
66	libllvmarminfo \
67	libllvmarminstprinter \
68	libllvmmipsasmparser \
69	libllvmmipscodegen \
70	libllvmmipsdesc \
71	libllvmmipsdisassembler \
72	libllvmmipsinfo \
73	libllvmmipsinstprinter \
74	libllvmpowerpcasmparser \
75	libllvmpowerpccodegen \
76	libllvmpowerpcdesc \
77	libllvmpowerpcinfo \
78	libllvmpowerpcinstprinter \
79	libllvmsparcasmparser \
80	libllvmsparccodegen \
81	libllvmsparcdesc \
82	libllvmsparcdisassembler \
83	libllvmsparcinfo \
84	libllvmsparcinstprinter \
85	libllvmx86asmparser \
86	libllvmx86codegen \
87	libllvmx86desc \
88	libllvmx86disassembler \
89	libllvmx86info \
90	libllvmx86instprinter \
91	libllvmx86utils
92
93.if ${MK_CLANG_EXTRAS} != "no"
94SUBDIR+=libllvmdebuginfo
95.endif # MK_CLANG_EXTRAS
96.if ${MK_CLANG_EXTRAS} != "no" || ${MK_LLDB} != "no"
97SUBDIR+=libllvmexecutionengine \
98	libllvminterpreter \
99	libllvmjit \
100	libllvmmcdisassembler \
101	libllvmmcjit \
102	libllvmruntimedyld
103.endif # MK_CLANG_EXTRAS | LLDB
104
105.if ${MK_LLDB} != "no"
106SUBDIR+=liblldb \
107	\
108	liblldbAPI \
109	liblldbBreakpoint \
110	liblldbCommands \
111	liblldbCore \
112	liblldbDataFormatters \
113	liblldbExpression \
114	liblldbHostCommon \
115	liblldbHostFreeBSD \
116	liblldbInterpreter \
117	liblldbSymbol \
118	liblldbTarget \
119	liblldbUtility \
120	\
121	liblldbPluginABISysV_x86_64 \
122	liblldbPluginCXXItaniumABI \
123	liblldbPluginDisassemblerLLVM \
124	liblldbPluginDynamicLoaderStatic \
125	liblldbPluginDynamicLoaderPosixDYLD \
126	liblldbPluginInstructionARM \
127	liblldbPluginObjectContainerBSDArchive \
128	liblldbPluginObjectFileELF \
129	liblldbPluginPlatformFreeBSD \
130	liblldbPluginPlatformGDB \
131	liblldbPluginProcessElfCore \
132	liblldbPluginProcessFreeBSD \
133	liblldbPluginProcessGDBRemote \
134	liblldbPluginProcessPOSIX \
135	liblldbPluginProcessUtility \
136	liblldbPluginSymbolFileDWARF \
137	liblldbPluginSymbolFileSymtab \
138	liblldbPluginSymbolVendorELF \
139	liblldbPluginUnwindAssemblyInstEmulation \
140	liblldbPluginUnwindAssemblyX86
141.endif # MK_LLDB
142
143.endif # !make(install)
144
145SUBDIR+= include
146
147SUBDIR_PARALLEL=
148
149.include <bsd.subdir.mk>
150