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