xref: /freebsd/lib/clang/Makefile (revision b2d48be1bc7df45ddd13b143a160d0acb5a383c5)
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	libllvmlibdriver \
45	libllvmlinker \
46	libllvmmc \
47	libllvmmcdisassembler \
48	libllvmmcparser \
49	libllvmmirparser \
50	libllvmobjcarcopts \
51	libllvmobject \
52	libllvmoption \
53	libllvmprofiledata \
54	libllvmscalaropts \
55	libllvmselectiondag \
56	libllvmsupport \
57	libllvmtablegen \
58	libllvmtarget \
59	libllvmtransformutils \
60	libllvmvectorize \
61	\
62	libllvmaarch64asmparser \
63	libllvmaarch64codegen \
64	libllvmaarch64desc \
65	libllvmaarch64info \
66	libllvmaarch64instprinter \
67	libllvmaarch64utils \
68	libllvmarmasmparser \
69	libllvmarmcodegen \
70	libllvmarmdesc \
71	libllvmarmdisassembler \
72	libllvmarminfo \
73	libllvmarminstprinter \
74	libllvmmipsasmparser \
75	libllvmmipscodegen \
76	libllvmmipsdesc \
77	libllvmmipsinfo \
78	libllvmmipsinstprinter \
79	libllvmpowerpcasmparser \
80	libllvmpowerpccodegen \
81	libllvmpowerpcdesc \
82	libllvmpowerpcdisassembler \
83	libllvmpowerpcinfo \
84	libllvmpowerpcinstprinter \
85	libllvmsparcasmparser \
86	libllvmsparccodegen \
87	libllvmsparcdesc \
88	libllvmsparcinfo \
89	libllvmsparcinstprinter \
90	libllvmx86asmparser \
91	libllvmx86codegen \
92	libllvmx86desc \
93	libllvmx86info \
94	libllvmx86instprinter \
95	libllvmx86utils
96
97.if ${MK_CLANG_EXTRAS} != "no"
98SUBDIR+=libllvmdebuginfodwarf \
99	libllvmdebuginfopdb \
100	libllvmlto \
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