xref: /freebsd/lib/clang/Makefile (revision 43faedc1339a9624c7acedb7f3e5624e64da5b99)
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
15SUBDIR=	libclanganalysis \
16	${_libclangarcmigrate} \
17	libclangast \
18	libclangbasic \
19	libclangcodegen \
20	libclangdriver \
21	libclangedit \
22	libclangfrontend \
23	libclangfrontendtool \
24	libclanglex \
25	libclangparse \
26	libclangrewritefrontend \
27	libclangrewrite \
28	libclangsema \
29	libclangserialization \
30	${_libclangstaticanalyzer} \
31	\
32	libllvmanalysis \
33	libllvmasmparser \
34	libllvmasmprinter \
35	libllvmbitreader \
36	libllvmbitwriter \
37	libllvmcodegen \
38	libllvmcore \
39	libllvminstcombine \
40	libllvminstrumentation \
41	libllvmipa \
42	libllvmipo \
43	libllvmirreader \
44	libllvmlinker \
45	libllvmmc \
46	libllvmmcdisassembler \
47	libllvmmcparser \
48	libllvmobjcarcopts \
49	libllvmobject \
50	libllvmoption \
51	libllvmprofiledata \
52	libllvmscalaropts \
53	libllvmselectiondag \
54	libllvmsupport \
55	libllvmtablegen \
56	libllvmtarget \
57	libllvmtransformutils \
58	libllvmvectorize \
59	\
60	libllvmaarch64asmparser \
61	libllvmaarch64codegen \
62	libllvmaarch64desc \
63	libllvmaarch64info \
64	libllvmaarch64instprinter \
65	libllvmaarch64utils \
66	libllvmarmasmparser \
67	libllvmarmcodegen \
68	libllvmarmdesc \
69	libllvmarmdisassembler \
70	libllvmarminfo \
71	libllvmarminstprinter \
72	libllvmmipsasmparser \
73	libllvmmipscodegen \
74	libllvmmipsdesc \
75	libllvmmipsinfo \
76	libllvmmipsinstprinter \
77	libllvmpowerpcasmparser \
78	libllvmpowerpccodegen \
79	libllvmpowerpcdesc \
80	libllvmpowerpcdisassembler \
81	libllvmpowerpcinfo \
82	libllvmpowerpcinstprinter \
83	libllvmsparcasmparser \
84	libllvmsparccodegen \
85	libllvmsparcdesc \
86	libllvmsparcinfo \
87	libllvmsparcinstprinter \
88	libllvmx86asmparser \
89	libllvmx86codegen \
90	libllvmx86desc \
91	libllvmx86info \
92	libllvmx86instprinter \
93	libllvmx86utils
94
95.if ${MK_CLANG_EXTRAS} != "no"
96SUBDIR+=libllvmdebuginfodwarf \
97	libllvmdebuginfopdb \
98	libllvmlibdriver \
99	libllvmlto \
100	libllvmmirparser \
101	libllvmorcjit \
102	libllvmpasses
103.endif # MK_CLANG_EXTRAS
104.if ${MK_CLANG_EXTRAS} != "no" || ${MK_LLDB} != "no"
105SUBDIR+=libllvmaarch64disassembler \
106	libllvmexecutionengine \
107	libllvminterpreter \
108	libllvmmcjit \
109	libllvmmipsdisassembler \
110	libllvmruntimedyld \
111	libllvmsparcdisassembler \
112	libllvmx86disassembler
113.endif # MK_CLANG_EXTRAS | LLDB
114
115.if ${MK_LLDB} != "no"
116SUBDIR+=liblldb \
117	\
118	liblldbAPI \
119	liblldbBreakpoint \
120	liblldbCommands \
121	liblldbCore \
122	liblldbDataFormatters \
123	liblldbExpression \
124	liblldbHostCommon \
125	liblldbHostFreeBSD \
126	liblldbHostPOSIX \
127	liblldbInitialization \
128	liblldbInterpreter \
129	liblldbSymbol \
130	liblldbTarget \
131	liblldbUtility \
132	\
133	liblldbPluginABISysV_arm \
134	liblldbPluginABISysV_arm64 \
135	liblldbPluginABISysV_i386 \
136	liblldbPluginABISysV_mips \
137	liblldbPluginABISysV_mips64 \
138	liblldbPluginABISysV_ppc \
139	liblldbPluginABISysV_ppc64 \
140	liblldbPluginABISysV_x86_64 \
141	liblldbPluginCXXItaniumABI \
142	liblldbPluginDisassemblerLLVM \
143	liblldbPluginDynamicLoaderStatic \
144	liblldbPluginDynamicLoaderPosixDYLD \
145	liblldbPluginInstructionARM \
146	liblldbPluginInstructionARM64 \
147	liblldbPluginInstructionMIPS \
148	liblldbPluginInstructionMIPS64 \
149	liblldbPluginInstrumentationRuntimeAddressSanitizer \
150	liblldbPluginJITLoaderGDB \
151	liblldbPluginMemoryHistoryASan \
152	liblldbPluginObjectContainerBSDArchive \
153	liblldbPluginObjectFileELF \
154	liblldbPluginObjectFileJIT \
155	liblldbPluginPlatformFreeBSD \
156	liblldbPluginPlatformGDB \
157	liblldbPluginProcessElfCore \
158	liblldbPluginProcessFreeBSD \
159	liblldbPluginProcessGDBRemote \
160	liblldbPluginProcessPOSIX \
161	liblldbPluginProcessUtility \
162	liblldbPluginSymbolFileDWARF \
163	liblldbPluginSymbolFileSymtab \
164	liblldbPluginSymbolVendorELF \
165	liblldbPluginUnwindAssemblyInstEmulation \
166	liblldbPluginUnwindAssemblyX86
167.endif # MK_LLDB
168
169.endif # !make(install)
170
171SUBDIR+= include
172
173SUBDIR_PARALLEL=
174
175.include <bsd.subdir.mk>
176