xref: /freebsd/lib/clang/Makefile (revision 76b28ad6ab6dc8d4a62cb7de7f143595be535813)
1# $FreeBSD$
2
3.include <src.opts.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	libllvmasmparser \
41	libllvmasmprinter \
42	libllvmbitreader \
43	libllvmbitwriter \
44	libllvmcodegen \
45	libllvmcore \
46	libllvminstcombine \
47	libllvminstrumentation \
48	libllvmipa \
49	libllvmipo \
50	libllvmirreader \
51	libllvmlinker \
52	libllvmmc \
53	libllvmmcparser \
54	libllvmobjcarcopts \
55	libllvmobject \
56	libllvmoption \
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	libllvmpowerpcasmparser \
78	libllvmpowerpccodegen \
79	libllvmpowerpcdesc \
80	libllvmpowerpcinfo \
81	libllvmpowerpcinstprinter \
82	libllvmsparcasmparser \
83	libllvmsparccodegen \
84	libllvmsparcdesc \
85	libllvmsparcdisassembler \
86	libllvmsparcinfo \
87	libllvmsparcinstprinter \
88	libllvmx86asmparser \
89	libllvmx86codegen \
90	libllvmx86desc \
91	libllvmx86disassembler \
92	libllvmx86info \
93	libllvmx86instprinter \
94	libllvmx86utils
95
96.if ${MK_CLANG_EXTRAS} != "no"
97SUBDIR+=libllvmdebuginfo
98.endif # MK_CLANG_EXTRAS
99.if ${MK_CLANG_EXTRAS} != "no" || ${MK_LLDB} != "no"
100SUBDIR+=libllvmexecutionengine \
101	libllvminterpreter \
102	libllvmjit \
103	libllvmmcdisassembler \
104	libllvmmcjit \
105	libllvmruntimedyld
106.endif # MK_CLANG_EXTRAS | LLDB
107
108.if !defined(EARLY_BUILD) && ${MK_LLDB} != "no"
109SUBDIR+=liblldb \
110	\
111	liblldbAPI \
112	liblldbBreakpoint \
113	liblldbCommands \
114	liblldbCore \
115	liblldbDataFormatters \
116	liblldbExpression \
117	liblldbHostCommon \
118	liblldbHostFreeBSD \
119	liblldbInterpreter \
120	liblldbSymbol \
121	liblldbTarget \
122	liblldbUtility \
123	\
124	liblldbPluginABISysV_x86_64 \
125	liblldbPluginCXXItaniumABI \
126	liblldbPluginDisassemblerLLVM \
127	liblldbPluginDynamicLoaderStatic \
128	liblldbPluginDynamicLoaderPosixDYLD \
129	liblldbPluginInstructionARM \
130	liblldbPluginObjectContainerBSDArchive \
131	liblldbPluginObjectFileELF \
132	liblldbPluginPlatformFreeBSD \
133	liblldbPluginPlatformGDB \
134	liblldbPluginProcessElfCore \
135	liblldbPluginProcessFreeBSD \
136	liblldbPluginProcessGDBRemote \
137	liblldbPluginProcessPOSIX \
138	liblldbPluginProcessUtility \
139	liblldbPluginSymbolFileDWARF \
140	liblldbPluginSymbolFileSymtab \
141	liblldbPluginSymbolVendorELF \
142	liblldbPluginUnwindAssemblyInstEmulation \
143	liblldbPluginUnwindAssemblyX86
144.endif # !EARLY_BUILD && MK_LLDB
145
146.endif # !make(install)
147
148SUBDIR+= include
149
150SUBDIR_PARALLEL=
151
152.include <bsd.subdir.mk>
153