xref: /freebsd/lib/clang/Makefile (revision 6ae1554a5d9b318f8ad53ccc39fa5a961403da73)
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	libllvmaarch64disassembler \
64	libllvmaarch64info \
65	libllvmaarch64instprinter \
66	libllvmaarch64utils \
67	libllvmarmasmparser \
68	libllvmarmcodegen \
69	libllvmarmdesc \
70	libllvmarmdisassembler \
71	libllvmarminfo \
72	libllvmarminstprinter \
73	libllvmmipsasmparser \
74	libllvmmipscodegen \
75	libllvmmipsdesc \
76	libllvmmipsdisassembler \
77	libllvmmipsinfo \
78	libllvmmipsinstprinter \
79	libllvmpowerpcasmparser \
80	libllvmpowerpccodegen \
81	libllvmpowerpcdesc \
82	libllvmpowerpcdisassembler \
83	libllvmpowerpcinfo \
84	libllvmpowerpcinstprinter \
85	libllvmsparcasmparser \
86	libllvmsparccodegen \
87	libllvmsparcdesc \
88	libllvmsparcdisassembler \
89	libllvmsparcinfo \
90	libllvmsparcinstprinter \
91	libllvmx86asmparser \
92	libllvmx86codegen \
93	libllvmx86desc \
94	libllvmx86disassembler \
95	libllvmx86info \
96	libllvmx86instprinter \
97	libllvmx86utils
98
99.if ${MK_CLANG_EXTRAS} != "no"
100SUBDIR+=libllvmdebuginfo
101.endif # MK_CLANG_EXTRAS
102.if ${MK_CLANG_EXTRAS} != "no" || ${MK_LLDB} != "no"
103SUBDIR+=libllvmexecutionengine \
104	libllvminterpreter \
105	libllvmmcjit \
106	libllvmruntimedyld
107.endif # MK_CLANG_EXTRAS | LLDB
108
109.if ${MK_LLDB} != "no"
110SUBDIR+=liblldb \
111	\
112	liblldbAPI \
113	liblldbBreakpoint \
114	liblldbCommands \
115	liblldbCore \
116	liblldbDataFormatters \
117	liblldbExpression \
118	liblldbHostCommon \
119	liblldbHostFreeBSD \
120	liblldbHostPOSIX \
121	liblldbInterpreter \
122	liblldbSymbol \
123	liblldbTarget \
124	liblldbUtility \
125	\
126	liblldbPluginABISysV_ppc \
127	liblldbPluginABISysV_ppc64 \
128	liblldbPluginABISysV_x86_64 \
129	liblldbPluginCXXItaniumABI \
130	liblldbPluginDisassemblerLLVM \
131	liblldbPluginDynamicLoaderStatic \
132	liblldbPluginDynamicLoaderPosixDYLD \
133	liblldbPluginInstructionARM \
134	liblldbPluginInstructionARM64 \
135	liblldbPluginInstrumentationRuntimeAddressSanitizer \
136	liblldbPluginJITLoaderGDB \
137	liblldbPluginMemoryHistoryASan \
138	liblldbPluginObjectContainerBSDArchive \
139	liblldbPluginObjectFileELF \
140	liblldbPluginObjectFileJIT \
141	liblldbPluginPlatformFreeBSD \
142	liblldbPluginPlatformGDB \
143	liblldbPluginProcessElfCore \
144	liblldbPluginProcessFreeBSD \
145	liblldbPluginProcessGDBRemote \
146	liblldbPluginProcessPOSIX \
147	liblldbPluginProcessUtility \
148	liblldbPluginSymbolFileDWARF \
149	liblldbPluginSymbolFileSymtab \
150	liblldbPluginSymbolVendorELF \
151	liblldbPluginUnwindAssemblyInstEmulation \
152	liblldbPluginUnwindAssemblyX86
153.endif # MK_LLDB
154
155.endif # !make(install)
156
157SUBDIR+= include
158
159SUBDIR_PARALLEL=
160
161.include <bsd.subdir.mk>
162