xref: /freebsd/lib/clang/libclang/Makefile (revision d6eb98610fa65663bf0df4574b7cb2c5c4ffda71)
1# $FreeBSD$
2
3.include <src.opts.mk>
4.include "../clang.pre.mk"
5
6LIB=		clang
7
8CFLAGS+=	-I${.OBJDIR}
9CFLAGS+=	-I${OBJTOP}/lib/clang/libllvm
10CFLAGS+=	-I${CLANG_SRCS}/lib/Basic
11CFLAGS+=	-I${CLANG_SRCS}/lib/Driver
12
13# Ensure FREEBSD_CC_VERSION is defined for Basic/Targets.cpp
14CFLAGS.Targets.cpp+= -include ../freebsd_cc_version.h
15
16# Work around GCC bug 67888
17.if ${COMPILER_TYPE} == "gcc"
18CXXFLAGS.Module.cpp+= -fpermissive
19.endif
20
21SRCDIR=		tools/clang/lib
22
23SRCS_FUL+=	ARCMigrate/ARCMT.cpp
24SRCS_FUL+=	ARCMigrate/ARCMTActions.cpp
25SRCS_FUL+=	ARCMigrate/FileRemapper.cpp
26SRCS_FUL+=	ARCMigrate/ObjCMT.cpp
27SRCS_FUL+=	ARCMigrate/PlistReporter.cpp
28SRCS_FUL+=	ARCMigrate/TransAPIUses.cpp
29SRCS_FUL+=	ARCMigrate/TransARCAssign.cpp
30SRCS_FUL+=	ARCMigrate/TransAutoreleasePool.cpp
31SRCS_FUL+=	ARCMigrate/TransBlockObjCVariable.cpp
32SRCS_FUL+=	ARCMigrate/TransEmptyStatementsAndDealloc.cpp
33SRCS_FUL+=	ARCMigrate/TransGCAttrs.cpp
34SRCS_FUL+=	ARCMigrate/TransGCCalls.cpp
35SRCS_FUL+=	ARCMigrate/TransProperties.cpp
36SRCS_FUL+=	ARCMigrate/TransProtectedScope.cpp
37SRCS_FUL+=	ARCMigrate/TransRetainReleaseDealloc.cpp
38SRCS_FUL+=	ARCMigrate/TransUnbridgedCasts.cpp
39SRCS_FUL+=	ARCMigrate/TransUnusedInitDelegate.cpp
40SRCS_FUL+=	ARCMigrate/TransZeroOutPropsInDealloc.cpp
41SRCS_FUL+=	ARCMigrate/TransformActions.cpp
42SRCS_FUL+=	ARCMigrate/Transforms.cpp
43SRCS_MIN+=	AST/APValue.cpp
44SRCS_MIN+=	AST/ASTConsumer.cpp
45SRCS_MIN+=	AST/ASTContext.cpp
46SRCS_MIN+=	AST/ASTDiagnostic.cpp
47SRCS_MIN+=	AST/ASTDumper.cpp
48SRCS_MIN+=	AST/ASTImporter.cpp
49SRCS_MIN+=	AST/ASTImporterLookupTable.cpp
50SRCS_MIN+=	AST/ASTStructuralEquivalence.cpp
51SRCS_MIN+=	AST/ASTTypeTraits.cpp
52SRCS_MIN+=	AST/AttrImpl.cpp
53SRCS_MIN+=	AST/CXXInheritance.cpp
54SRCS_MIN+=	AST/Comment.cpp
55SRCS_MIN+=	AST/CommentBriefParser.cpp
56SRCS_MIN+=	AST/CommentCommandTraits.cpp
57SRCS_MIN+=	AST/CommentLexer.cpp
58SRCS_MIN+=	AST/CommentParser.cpp
59SRCS_MIN+=	AST/CommentSema.cpp
60SRCS_MIN+=	AST/ComparisonCategories.cpp
61SRCS_FUL+=	AST/DataCollection.cpp
62SRCS_MIN+=	AST/Decl.cpp
63SRCS_MIN+=	AST/DeclBase.cpp
64SRCS_MIN+=	AST/DeclCXX.cpp
65SRCS_MIN+=	AST/DeclFriend.cpp
66SRCS_MIN+=	AST/DeclGroup.cpp
67SRCS_MIN+=	AST/DeclObjC.cpp
68SRCS_MIN+=	AST/DeclOpenMP.cpp
69SRCS_MIN+=	AST/DeclPrinter.cpp
70SRCS_MIN+=	AST/DeclTemplate.cpp
71SRCS_MIN+=	AST/DeclarationName.cpp
72SRCS_MIN+=	AST/Expr.cpp
73SRCS_MIN+=	AST/ExprCXX.cpp
74SRCS_MIN+=	AST/ExprClassification.cpp
75SRCS_MIN+=	AST/ExprConstant.cpp
76SRCS_MIN+=	AST/ExprObjC.cpp
77SRCS_LDB+=	AST/ExternalASTMerger.cpp
78SRCS_MIN+=	AST/ExternalASTSource.cpp
79SRCS_MIN+=	AST/FormatString.cpp
80SRCS_MIN+=	AST/InheritViz.cpp
81SRCS_MIN+=	AST/ItaniumCXXABI.cpp
82SRCS_MIN+=	AST/ItaniumMangle.cpp
83SRCS_MIN+=	AST/Mangle.cpp
84SRCS_MIN+=	AST/MicrosoftCXXABI.cpp
85SRCS_MIN+=	AST/MicrosoftMangle.cpp
86SRCS_MIN+=	AST/NSAPI.cpp
87SRCS_MIN+=	AST/NestedNameSpecifier.cpp
88SRCS_MIN+=	AST/ODRHash.cpp
89SRCS_MIN+=	AST/OSLog.cpp
90SRCS_MIN+=	AST/OpenMPClause.cpp
91SRCS_MIN+=	AST/ParentMap.cpp
92SRCS_MIN+=	AST/PrintfFormatString.cpp
93SRCS_MIN+=	AST/QualTypeNames.cpp
94SRCS_MIN+=	AST/RawCommentList.cpp
95SRCS_MIN+=	AST/RecordLayout.cpp
96SRCS_MIN+=	AST/RecordLayoutBuilder.cpp
97SRCS_MIN+=	AST/ScanfFormatString.cpp
98SRCS_MIN+=	AST/SelectorLocationsKind.cpp
99SRCS_MIN+=	AST/Stmt.cpp
100SRCS_MIN+=	AST/StmtCXX.cpp
101SRCS_MIN+=	AST/StmtIterator.cpp
102SRCS_MIN+=	AST/StmtObjC.cpp
103SRCS_MIN+=	AST/StmtOpenMP.cpp
104SRCS_MIN+=	AST/StmtPrinter.cpp
105SRCS_MIN+=	AST/StmtProfile.cpp
106SRCS_MIN+=	AST/StmtViz.cpp
107SRCS_MIN+=	AST/TemplateBase.cpp
108SRCS_MIN+=	AST/TemplateName.cpp
109SRCS_MIN+=	AST/TextNodeDumper.cpp
110SRCS_MIN+=	AST/Type.cpp
111SRCS_MIN+=	AST/TypeLoc.cpp
112SRCS_MIN+=	AST/TypePrinter.cpp
113SRCS_MIN+=	AST/VTTBuilder.cpp
114SRCS_MIN+=	AST/VTableBuilder.cpp
115SRCS_MIN+=	ASTMatchers/ASTMatchFinder.cpp
116SRCS_MIN+=	ASTMatchers/ASTMatchersInternal.cpp
117SRCS_MIN+=	ASTMatchers/Dynamic/Diagnostics.cpp
118SRCS_MIN+=	ASTMatchers/Dynamic/Parser.cpp
119SRCS_MIN+=	ASTMatchers/Dynamic/Registry.cpp
120SRCS_MIN+=	ASTMatchers/Dynamic/VariantValue.cpp
121SRCS_MIN+=	Analysis/AnalysisDeclContext.cpp
122SRCS_MIN+=	Analysis/BodyFarm.cpp
123SRCS_MIN+=	Analysis/CFG.cpp
124SRCS_MIN+=	Analysis/CFGReachabilityAnalysis.cpp
125SRCS_MIN+=	Analysis/CFGStmtMap.cpp
126SRCS_FUL+=	Analysis/CallGraph.cpp
127SRCS_MIN+=	Analysis/CloneDetection.cpp
128SRCS_MIN+=	Analysis/CocoaConventions.cpp
129SRCS_FUL+=	Analysis/CodeInjector.cpp
130SRCS_MIN+=	Analysis/Consumed.cpp
131SRCS_MIN+=	Analysis/ConstructionContext.cpp
132SRCS_FUL+=	Analysis/Dominators.cpp
133SRCS_MIN+=	Analysis/LiveVariables.cpp
134SRCS_MIN+=	Analysis/ObjCNoReturn.cpp
135SRCS_MIN+=	Analysis/PostOrderCFGView.cpp
136SRCS_FUL+=	Analysis/ProgramPoint.cpp
137SRCS_MIN+=	Analysis/ReachableCode.cpp
138SRCS_MIN+=	Analysis/ThreadSafety.cpp
139SRCS_MIN+=	Analysis/ThreadSafetyCommon.cpp
140SRCS_MIN+=	Analysis/ThreadSafetyLogical.cpp
141SRCS_MIN+=	Analysis/ThreadSafetyTIL.cpp
142SRCS_MIN+=	Analysis/UninitializedValues.cpp
143SRCS_MIN+=	Basic/Attributes.cpp
144SRCS_MIN+=	Basic/Builtins.cpp
145SRCS_MIN+=	Basic/CharInfo.cpp
146SRCS_MIN+=	Basic/CodeGenOptions.cpp
147SRCS_MIN+=	Basic/Cuda.cpp
148SRCS_MIN+=	Basic/Diagnostic.cpp
149SRCS_MIN+=	Basic/DiagnosticIDs.cpp
150SRCS_MIN+=	Basic/DiagnosticOptions.cpp
151SRCS_MIN+=	Basic/FileManager.cpp
152SRCS_MIN+=	Basic/FileSystemStatCache.cpp
153SRCS_MIN+=	Basic/FixedPoint.cpp
154SRCS_MIN+=	Basic/IdentifierTable.cpp
155SRCS_MIN+=	Basic/LangOptions.cpp
156SRCS_MIN+=	Basic/MemoryBufferCache.cpp
157SRCS_MIN+=	Basic/Module.cpp
158SRCS_MIN+=	Basic/ObjCRuntime.cpp
159SRCS_MIN+=	Basic/OpenMPKinds.cpp
160SRCS_MIN+=	Basic/OperatorPrecedence.cpp
161SRCS_MIN+=	Basic/SanitizerBlacklist.cpp
162SRCS_MIN+=	Basic/SanitizerSpecialCaseList.cpp
163SRCS_MIN+=	Basic/Sanitizers.cpp
164SRCS_MIN+=	Basic/SourceLocation.cpp
165SRCS_MIN+=	Basic/SourceManager.cpp
166SRCS_MIN+=	Basic/TargetInfo.cpp
167SRCS_MIN+=	Basic/Targets.cpp
168SRCS_MIN+=	Basic/Targets/AArch64.cpp
169SRCS_MIN+=	Basic/Targets/AMDGPU.cpp
170SRCS_MIN+=	Basic/Targets/ARC.cpp
171SRCS_MIN+=	Basic/Targets/ARM.cpp
172SRCS_MIN+=	Basic/Targets/AVR.cpp
173SRCS_MIN+=	Basic/Targets/BPF.cpp
174SRCS_MIN+=	Basic/Targets/Hexagon.cpp
175SRCS_MIN+=	Basic/Targets/Lanai.cpp
176SRCS_MIN+=	Basic/Targets/Le64.cpp
177SRCS_MIN+=	Basic/Targets/MSP430.cpp
178SRCS_MIN+=	Basic/Targets/Mips.cpp
179SRCS_MIN+=	Basic/Targets/NVPTX.cpp
180SRCS_MIN+=	Basic/Targets/OSTargets.cpp
181SRCS_MIN+=	Basic/Targets/PNaCl.cpp
182SRCS_MIN+=	Basic/Targets/PPC.cpp
183SRCS_MIN+=	Basic/Targets/RISCV.cpp
184SRCS_MIN+=	Basic/Targets/SPIR.cpp
185SRCS_MIN+=	Basic/Targets/Sparc.cpp
186SRCS_MIN+=	Basic/Targets/SystemZ.cpp
187SRCS_MIN+=	Basic/Targets/TCE.cpp
188SRCS_MIN+=	Basic/Targets/WebAssembly.cpp
189SRCS_MIN+=	Basic/Targets/X86.cpp
190SRCS_MIN+=	Basic/Targets/XCore.cpp
191SRCS_MIN+=	Basic/TokenKinds.cpp
192SRCS_MIN+=	Basic/Version.cpp
193SRCS_MIN+=	Basic/Warnings.cpp
194SRCS_MIN+=	Basic/XRayInstr.cpp
195SRCS_MIN+=	Basic/XRayLists.cpp
196SRCS_MIN+=	CodeGen/BackendUtil.cpp
197SRCS_MIN+=	CodeGen/CGAtomic.cpp
198SRCS_MIN+=	CodeGen/CGBlocks.cpp
199SRCS_MIN+=	CodeGen/CGBuiltin.cpp
200SRCS_MIN+=	CodeGen/CGCUDANV.cpp
201SRCS_MIN+=	CodeGen/CGCUDARuntime.cpp
202SRCS_MIN+=	CodeGen/CGCXX.cpp
203SRCS_MIN+=	CodeGen/CGCXXABI.cpp
204SRCS_MIN+=	CodeGen/CGCall.cpp
205SRCS_MIN+=	CodeGen/CGClass.cpp
206SRCS_MIN+=	CodeGen/CGCleanup.cpp
207SRCS_MIN+=	CodeGen/CGCoroutine.cpp
208SRCS_MIN+=	CodeGen/CGDebugInfo.cpp
209SRCS_MIN+=	CodeGen/CGDecl.cpp
210SRCS_MIN+=	CodeGen/CGDeclCXX.cpp
211SRCS_MIN+=	CodeGen/CGException.cpp
212SRCS_MIN+=	CodeGen/CGExpr.cpp
213SRCS_MIN+=	CodeGen/CGExprAgg.cpp
214SRCS_MIN+=	CodeGen/CGExprCXX.cpp
215SRCS_MIN+=	CodeGen/CGExprComplex.cpp
216SRCS_MIN+=	CodeGen/CGExprConstant.cpp
217SRCS_MIN+=	CodeGen/CGExprScalar.cpp
218SRCS_MIN+=	CodeGen/CGGPUBuiltin.cpp
219SRCS_MIN+=	CodeGen/CGLoopInfo.cpp
220SRCS_MIN+=	CodeGen/CGNonTrivialStruct.cpp
221SRCS_MIN+=	CodeGen/CGObjC.cpp
222SRCS_MIN+=	CodeGen/CGObjCGNU.cpp
223SRCS_MIN+=	CodeGen/CGObjCMac.cpp
224SRCS_MIN+=	CodeGen/CGObjCRuntime.cpp
225SRCS_MIN+=	CodeGen/CGOpenCLRuntime.cpp
226SRCS_MIN+=	CodeGen/CGOpenMPRuntime.cpp
227SRCS_MIN+=	CodeGen/CGOpenMPRuntimeNVPTX.cpp
228SRCS_MIN+=	CodeGen/CGRecordLayoutBuilder.cpp
229SRCS_MIN+=	CodeGen/CGStmt.cpp
230SRCS_MIN+=	CodeGen/CGStmtOpenMP.cpp
231SRCS_MIN+=	CodeGen/CGVTT.cpp
232SRCS_MIN+=	CodeGen/CGVTables.cpp
233SRCS_MIN+=	CodeGen/CodeGenABITypes.cpp
234SRCS_MIN+=	CodeGen/CodeGenAction.cpp
235SRCS_MIN+=	CodeGen/CodeGenFunction.cpp
236SRCS_MIN+=	CodeGen/CodeGenModule.cpp
237SRCS_MIN+=	CodeGen/CodeGenPGO.cpp
238SRCS_MIN+=	CodeGen/CodeGenTBAA.cpp
239SRCS_MIN+=	CodeGen/CodeGenTypes.cpp
240SRCS_MIN+=	CodeGen/ConstantInitBuilder.cpp
241SRCS_MIN+=	CodeGen/CoverageMappingGen.cpp
242SRCS_MIN+=	CodeGen/ItaniumCXXABI.cpp
243SRCS_MIN+=	CodeGen/MacroPPCallbacks.cpp
244SRCS_MIN+=	CodeGen/MicrosoftCXXABI.cpp
245SRCS_MIN+=	CodeGen/ModuleBuilder.cpp
246SRCS_MIN+=	CodeGen/ObjectFilePCHContainerOperations.cpp
247SRCS_MIN+=	CodeGen/SanitizerMetadata.cpp
248SRCS_MIN+=	CodeGen/SwiftCallingConv.cpp
249SRCS_MIN+=	CodeGen/TargetInfo.cpp
250SRCS_MIN+=	CodeGen/VarBypassDetector.cpp
251SRCS_FUL+=	CrossTU/CrossTranslationUnit.cpp
252SRCS_MIN+=	Driver/Action.cpp
253SRCS_MIN+=	Driver/Compilation.cpp
254SRCS_MIN+=	Driver/DarwinSDKInfo.cpp
255SRCS_MIN+=	Driver/Distro.cpp
256SRCS_MIN+=	Driver/Driver.cpp
257SRCS_MIN+=	Driver/DriverOptions.cpp
258SRCS_MIN+=	Driver/Job.cpp
259SRCS_MIN+=	Driver/Multilib.cpp
260SRCS_MIN+=	Driver/Phases.cpp
261SRCS_MIN+=	Driver/SanitizerArgs.cpp
262SRCS_MIN+=	Driver/Tool.cpp
263SRCS_MIN+=	Driver/ToolChain.cpp
264SRCS_MIN+=	Driver/ToolChains/AMDGPU.cpp
265SRCS_MIN+=	Driver/ToolChains/AVR.cpp
266SRCS_MIN+=	Driver/ToolChains/Ananas.cpp
267SRCS_MIN+=	Driver/ToolChains/Arch/AArch64.cpp
268SRCS_MIN+=	Driver/ToolChains/Arch/ARM.cpp
269SRCS_MIN+=	Driver/ToolChains/Arch/Mips.cpp
270SRCS_MIN+=	Driver/ToolChains/Arch/PPC.cpp
271SRCS_MIN+=	Driver/ToolChains/Arch/RISCV.cpp
272SRCS_MIN+=	Driver/ToolChains/Arch/Sparc.cpp
273SRCS_MIN+=	Driver/ToolChains/Arch/SystemZ.cpp
274SRCS_MIN+=	Driver/ToolChains/Arch/X86.cpp
275SRCS_MIN+=	Driver/ToolChains/BareMetal.cpp
276SRCS_MIN+=	Driver/ToolChains/Clang.cpp
277SRCS_MIN+=	Driver/ToolChains/CloudABI.cpp
278SRCS_MIN+=	Driver/ToolChains/CommonArgs.cpp
279SRCS_MIN+=	Driver/ToolChains/Contiki.cpp
280SRCS_MIN+=	Driver/ToolChains/CrossWindows.cpp
281SRCS_MIN+=	Driver/ToolChains/Cuda.cpp
282SRCS_MIN+=	Driver/ToolChains/Darwin.cpp
283SRCS_MIN+=	Driver/ToolChains/DragonFly.cpp
284SRCS_MIN+=	Driver/ToolChains/FreeBSD.cpp
285SRCS_MIN+=	Driver/ToolChains/Fuchsia.cpp
286SRCS_MIN+=	Driver/ToolChains/Gnu.cpp
287SRCS_MIN+=	Driver/ToolChains/HIP.cpp
288SRCS_MIN+=	Driver/ToolChains/Haiku.cpp
289SRCS_MIN+=	Driver/ToolChains/Hexagon.cpp
290SRCS_MIN+=	Driver/ToolChains/Hurd.cpp
291SRCS_MIN+=	Driver/ToolChains/Linux.cpp
292SRCS_MIN+=	Driver/ToolChains/MSP430.cpp
293SRCS_MIN+=	Driver/ToolChains/MSVC.cpp
294SRCS_MIN+=	Driver/ToolChains/MinGW.cpp
295SRCS_MIN+=	Driver/ToolChains/Minix.cpp
296SRCS_MIN+=	Driver/ToolChains/MipsLinux.cpp
297SRCS_MIN+=	Driver/ToolChains/Myriad.cpp
298SRCS_MIN+=	Driver/ToolChains/NaCl.cpp
299SRCS_MIN+=	Driver/ToolChains/NetBSD.cpp
300SRCS_MIN+=	Driver/ToolChains/OpenBSD.cpp
301SRCS_MIN+=	Driver/ToolChains/PS4CPU.cpp
302SRCS_MIN+=	Driver/ToolChains/RISCVToolchain.cpp
303SRCS_MIN+=	Driver/ToolChains/Solaris.cpp
304SRCS_MIN+=	Driver/ToolChains/TCE.cpp
305SRCS_MIN+=	Driver/ToolChains/WebAssembly.cpp
306SRCS_MIN+=	Driver/ToolChains/XCore.cpp
307SRCS_MIN+=	Driver/Types.cpp
308SRCS_MIN+=	Driver/XRayArgs.cpp
309SRCS_MIN+=	Edit/Commit.cpp
310SRCS_MIN+=	Edit/EditedSource.cpp
311SRCS_MIN+=	Edit/RewriteObjCFoundationAPI.cpp
312SRCS_EXT+=	Format/AffectedRangeManager.cpp
313SRCS_EXT+=	Format/BreakableToken.cpp
314SRCS_EXT+=	Format/ContinuationIndenter.cpp
315SRCS_EXT+=	Format/Format.cpp
316SRCS_EXT+=	Format/FormatToken.cpp
317SRCS_EXT+=	Format/FormatTokenLexer.cpp
318SRCS_EXT+=	Format/NamespaceEndCommentsFixer.cpp
319SRCS_EXT+=	Format/SortJavaScriptImports.cpp
320SRCS_EXT+=	Format/TokenAnalyzer.cpp
321SRCS_EXT+=	Format/TokenAnnotator.cpp
322SRCS_EXT+=	Format/UnwrappedLineFormatter.cpp
323SRCS_EXT+=	Format/UnwrappedLineParser.cpp
324SRCS_EXT+=	Format/UsingDeclarationsSorter.cpp
325SRCS_EXT+=	Format/WhitespaceManager.cpp
326SRCS_MIN+=	Frontend/ASTConsumers.cpp
327SRCS_MIN+=	Frontend/ASTMerge.cpp
328SRCS_MIN+=	Frontend/ASTUnit.cpp
329SRCS_MIN+=	Frontend/ChainedDiagnosticConsumer.cpp
330SRCS_MIN+=	Frontend/ChainedIncludesSource.cpp
331SRCS_MIN+=	Frontend/CompilerInstance.cpp
332SRCS_MIN+=	Frontend/CompilerInvocation.cpp
333SRCS_MIN+=	Frontend/CreateInvocationFromCommandLine.cpp
334SRCS_MIN+=	Frontend/DependencyFile.cpp
335SRCS_MIN+=	Frontend/DependencyGraph.cpp
336SRCS_MIN+=	Frontend/DiagnosticRenderer.cpp
337SRCS_MIN+=	Frontend/FrontendAction.cpp
338SRCS_MIN+=	Frontend/FrontendActions.cpp
339SRCS_MIN+=	Frontend/FrontendOptions.cpp
340SRCS_MIN+=	Frontend/FrontendTiming.cpp
341SRCS_MIN+=	Frontend/HeaderIncludeGen.cpp
342SRCS_MIN+=	Frontend/InitHeaderSearch.cpp
343SRCS_MIN+=	Frontend/InitPreprocessor.cpp
344SRCS_MIN+=	Frontend/LangStandards.cpp
345SRCS_MIN+=	Frontend/LayoutOverrideSource.cpp
346SRCS_MIN+=	Frontend/LogDiagnosticPrinter.cpp
347SRCS_MIN+=	Frontend/ModuleDependencyCollector.cpp
348SRCS_MIN+=	Frontend/MultiplexConsumer.cpp
349SRCS_MIN+=	Frontend/PrecompiledPreamble.cpp
350SRCS_MIN+=	Frontend/PrintPreprocessedOutput.cpp
351SRCS_MIN+=	Frontend/Rewrite/FixItRewriter.cpp
352SRCS_MIN+=	Frontend/Rewrite/FrontendActions.cpp
353SRCS_MIN+=	Frontend/Rewrite/HTMLPrint.cpp
354SRCS_MIN+=	Frontend/Rewrite/InclusionRewriter.cpp
355SRCS_MIN+=	Frontend/Rewrite/RewriteMacros.cpp
356SRCS_MIN+=	Frontend/Rewrite/RewriteTest.cpp
357SRCS_MIN+=	Frontend/SerializedDiagnosticPrinter.cpp
358SRCS_MIN+=	Frontend/SerializedDiagnosticReader.cpp
359SRCS_MIN+=	Frontend/TestModuleFileExtension.cpp
360SRCS_MIN+=	Frontend/TextDiagnostic.cpp
361SRCS_MIN+=	Frontend/TextDiagnosticBuffer.cpp
362SRCS_MIN+=	Frontend/TextDiagnosticPrinter.cpp
363SRCS_MIN+=	Frontend/VerifyDiagnosticConsumer.cpp
364SRCS_MIN+=	FrontendTool/ExecuteCompilerInvocation.cpp
365SRCS_MIN+=	Index/CodegenNameGenerator.cpp
366SRCS_MIN+=	Index/CommentToXML.cpp
367SRCS_MIN+=	Index/IndexBody.cpp
368SRCS_MIN+=	Index/IndexDecl.cpp
369SRCS_MIN+=	Index/IndexSymbol.cpp
370SRCS_MIN+=	Index/IndexTypeSourceInfo.cpp
371SRCS_MIN+=	Index/IndexingAction.cpp
372SRCS_MIN+=	Index/IndexingContext.cpp
373SRCS_MIN+=	Index/USRGeneration.cpp
374SRCS_MIN+=	Lex/HeaderMap.cpp
375SRCS_MIN+=	Lex/HeaderSearch.cpp
376SRCS_MIN+=	Lex/Lexer.cpp
377SRCS_MIN+=	Lex/LiteralSupport.cpp
378SRCS_MIN+=	Lex/MacroArgs.cpp
379SRCS_MIN+=	Lex/MacroInfo.cpp
380SRCS_MIN+=	Lex/ModuleMap.cpp
381SRCS_MIN+=	Lex/PPCaching.cpp
382SRCS_MIN+=	Lex/PPCallbacks.cpp
383SRCS_MIN+=	Lex/PPConditionalDirectiveRecord.cpp
384SRCS_MIN+=	Lex/PPDirectives.cpp
385SRCS_MIN+=	Lex/PPExpressions.cpp
386SRCS_MIN+=	Lex/PPLexerChange.cpp
387SRCS_MIN+=	Lex/PPMacroExpansion.cpp
388SRCS_MIN+=	Lex/Pragma.cpp
389SRCS_MIN+=	Lex/PreprocessingRecord.cpp
390SRCS_MIN+=	Lex/Preprocessor.cpp
391SRCS_MIN+=	Lex/PreprocessorLexer.cpp
392SRCS_MIN+=	Lex/ScratchBuffer.cpp
393SRCS_MIN+=	Lex/TokenConcatenation.cpp
394SRCS_MIN+=	Lex/TokenLexer.cpp
395SRCS_MIN+=	Parse/ParseAST.cpp
396SRCS_MIN+=	Parse/ParseCXXInlineMethods.cpp
397SRCS_MIN+=	Parse/ParseDecl.cpp
398SRCS_MIN+=	Parse/ParseDeclCXX.cpp
399SRCS_MIN+=	Parse/ParseExpr.cpp
400SRCS_MIN+=	Parse/ParseExprCXX.cpp
401SRCS_MIN+=	Parse/ParseInit.cpp
402SRCS_MIN+=	Parse/ParseObjc.cpp
403SRCS_MIN+=	Parse/ParseOpenMP.cpp
404SRCS_MIN+=	Parse/ParsePragma.cpp
405SRCS_MIN+=	Parse/ParseStmt.cpp
406SRCS_MIN+=	Parse/ParseStmtAsm.cpp
407SRCS_MIN+=	Parse/ParseTemplate.cpp
408SRCS_MIN+=	Parse/ParseTentative.cpp
409SRCS_MIN+=	Parse/Parser.cpp
410SRCS_MIN+=	Rewrite/DeltaTree.cpp
411SRCS_MIN+=	Rewrite/HTMLRewrite.cpp
412SRCS_MIN+=	Rewrite/RewriteRope.cpp
413SRCS_MIN+=	Rewrite/Rewriter.cpp
414SRCS_MIN+=	Rewrite/TokenRewriter.cpp
415SRCS_MIN+=	Sema/AnalysisBasedWarnings.cpp
416SRCS_MIN+=	Sema/CodeCompleteConsumer.cpp
417SRCS_MIN+=	Sema/DeclSpec.cpp
418SRCS_MIN+=	Sema/DelayedDiagnostic.cpp
419SRCS_MIN+=	Sema/IdentifierResolver.cpp
420SRCS_MIN+=	Sema/JumpDiagnostics.cpp
421SRCS_MIN+=	Sema/MultiplexExternalSemaSource.cpp
422SRCS_MIN+=	Sema/ParsedAttr.cpp
423SRCS_MIN+=	Sema/Scope.cpp
424SRCS_MIN+=	Sema/ScopeInfo.cpp
425SRCS_MIN+=	Sema/Sema.cpp
426SRCS_MIN+=	Sema/SemaAccess.cpp
427SRCS_MIN+=	Sema/SemaAttr.cpp
428SRCS_MIN+=	Sema/SemaCUDA.cpp
429SRCS_MIN+=	Sema/SemaCXXScopeSpec.cpp
430SRCS_MIN+=	Sema/SemaCast.cpp
431SRCS_MIN+=	Sema/SemaChecking.cpp
432SRCS_MIN+=	Sema/SemaCodeComplete.cpp
433SRCS_MIN+=	Sema/SemaConsumer.cpp
434SRCS_MIN+=	Sema/SemaCoroutine.cpp
435SRCS_MIN+=	Sema/SemaDecl.cpp
436SRCS_MIN+=	Sema/SemaDeclAttr.cpp
437SRCS_MIN+=	Sema/SemaDeclCXX.cpp
438SRCS_MIN+=	Sema/SemaDeclObjC.cpp
439SRCS_MIN+=	Sema/SemaExceptionSpec.cpp
440SRCS_MIN+=	Sema/SemaExpr.cpp
441SRCS_MIN+=	Sema/SemaExprCXX.cpp
442SRCS_MIN+=	Sema/SemaExprMember.cpp
443SRCS_MIN+=	Sema/SemaExprObjC.cpp
444SRCS_MIN+=	Sema/SemaFixItUtils.cpp
445SRCS_MIN+=	Sema/SemaInit.cpp
446SRCS_MIN+=	Sema/SemaLambda.cpp
447SRCS_MIN+=	Sema/SemaLookup.cpp
448SRCS_MIN+=	Sema/SemaObjCProperty.cpp
449SRCS_MIN+=	Sema/SemaOpenMP.cpp
450SRCS_MIN+=	Sema/SemaOverload.cpp
451SRCS_MIN+=	Sema/SemaPseudoObject.cpp
452SRCS_MIN+=	Sema/SemaStmt.cpp
453SRCS_MIN+=	Sema/SemaStmtAsm.cpp
454SRCS_MIN+=	Sema/SemaStmtAttr.cpp
455SRCS_MIN+=	Sema/SemaTemplate.cpp
456SRCS_MIN+=	Sema/SemaTemplateDeduction.cpp
457SRCS_MIN+=	Sema/SemaTemplateInstantiate.cpp
458SRCS_MIN+=	Sema/SemaTemplateInstantiateDecl.cpp
459SRCS_MIN+=	Sema/SemaTemplateVariadic.cpp
460SRCS_MIN+=	Sema/SemaType.cpp
461SRCS_MIN+=	Sema/TypeLocBuilder.cpp
462SRCS_MIN+=	Serialization/ASTCommon.cpp
463SRCS_MIN+=	Serialization/ASTReader.cpp
464SRCS_MIN+=	Serialization/ASTReaderDecl.cpp
465SRCS_MIN+=	Serialization/ASTReaderStmt.cpp
466SRCS_MIN+=	Serialization/ASTWriter.cpp
467SRCS_MIN+=	Serialization/ASTWriterDecl.cpp
468SRCS_MIN+=	Serialization/ASTWriterStmt.cpp
469SRCS_MIN+=	Serialization/GeneratePCH.cpp
470SRCS_MIN+=	Serialization/GlobalModuleIndex.cpp
471SRCS_MIN+=	Serialization/Module.cpp
472SRCS_MIN+=	Serialization/ModuleFileExtension.cpp
473SRCS_MIN+=	Serialization/ModuleManager.cpp
474SRCS_MIN+=	Serialization/PCHContainerOperations.cpp
475SRCS_FUL+=	StaticAnalyzer/Checkers/AnalysisOrderChecker.cpp
476SRCS_FUL+=	StaticAnalyzer/Checkers/AnalyzerStatsChecker.cpp
477SRCS_FUL+=	StaticAnalyzer/Checkers/ArrayBoundChecker.cpp
478SRCS_FUL+=	StaticAnalyzer/Checkers/ArrayBoundCheckerV2.cpp
479SRCS_FUL+=	StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp
480SRCS_FUL+=	StaticAnalyzer/Checkers/BlockInCriticalSectionChecker.cpp
481SRCS_FUL+=	StaticAnalyzer/Checkers/BoolAssignmentChecker.cpp
482SRCS_FUL+=	StaticAnalyzer/Checkers/BuiltinFunctionChecker.cpp
483SRCS_FUL+=	StaticAnalyzer/Checkers/GCDAntipatternChecker.cpp
484SRCS_FUL+=	StaticAnalyzer/Checkers/CStringChecker.cpp
485SRCS_FUL+=	StaticAnalyzer/Checkers/CStringSyntaxChecker.cpp
486SRCS_FUL+=	StaticAnalyzer/Checkers/CXXSelfAssignmentChecker.cpp
487SRCS_FUL+=	StaticAnalyzer/Checkers/CallAndMessageChecker.cpp
488SRCS_FUL+=	StaticAnalyzer/Checkers/CastSizeChecker.cpp
489SRCS_FUL+=	StaticAnalyzer/Checkers/CastToStructChecker.cpp
490SRCS_FUL+=	StaticAnalyzer/Checkers/CheckObjCDealloc.cpp
491SRCS_FUL+=	StaticAnalyzer/Checkers/CheckObjCInstMethSignature.cpp
492SRCS_FUL+=	StaticAnalyzer/Checkers/CheckSecuritySyntaxOnly.cpp
493SRCS_FUL+=	StaticAnalyzer/Checkers/CheckSizeofPointer.cpp
494SRCS_FUL+=	StaticAnalyzer/Checkers/ChrootChecker.cpp
495SRCS_FUL+=	StaticAnalyzer/Checkers/CloneChecker.cpp
496SRCS_FUL+=	StaticAnalyzer/Checkers/ConversionChecker.cpp
497SRCS_FUL+=	StaticAnalyzer/Checkers/DeadStoresChecker.cpp
498SRCS_FUL+=	StaticAnalyzer/Checkers/DebugCheckers.cpp
499SRCS_FUL+=	StaticAnalyzer/Checkers/DeleteWithNonVirtualDtorChecker.cpp
500SRCS_FUL+=	StaticAnalyzer/Checkers/DereferenceChecker.cpp
501SRCS_FUL+=	StaticAnalyzer/Checkers/DirectIvarAssignment.cpp
502SRCS_FUL+=	StaticAnalyzer/Checkers/DivZeroChecker.cpp
503SRCS_FUL+=	StaticAnalyzer/Checkers/DynamicTypeChecker.cpp
504SRCS_FUL+=	StaticAnalyzer/Checkers/DynamicTypePropagation.cpp
505SRCS_FUL+=	StaticAnalyzer/Checkers/EnumCastOutOfRangeChecker.cpp
506SRCS_FUL+=	StaticAnalyzer/Checkers/ExprInspectionChecker.cpp
507SRCS_FUL+=	StaticAnalyzer/Checkers/FixedAddressChecker.cpp
508SRCS_FUL+=	StaticAnalyzer/Checkers/GTestChecker.cpp
509SRCS_FUL+=	StaticAnalyzer/Checkers/GenericTaintChecker.cpp
510SRCS_FUL+=	StaticAnalyzer/Checkers/IdenticalExprChecker.cpp
511SRCS_FUL+=	StaticAnalyzer/Checkers/InnerPointerChecker.cpp
512SRCS_FUL+=	StaticAnalyzer/Checkers/IteratorChecker.cpp
513SRCS_FUL+=	StaticAnalyzer/Checkers/IvarInvalidationChecker.cpp
514SRCS_FUL+=	StaticAnalyzer/Checkers/LLVMConventionsChecker.cpp
515SRCS_FUL+=	StaticAnalyzer/Checkers/LocalizationChecker.cpp
516SRCS_FUL+=	StaticAnalyzer/Checkers/MPI-Checker/MPIBugReporter.cpp
517SRCS_FUL+=	StaticAnalyzer/Checkers/MPI-Checker/MPIChecker.cpp
518SRCS_FUL+=	StaticAnalyzer/Checkers/MPI-Checker/MPIFunctionClassifier.cpp
519SRCS_FUL+=	StaticAnalyzer/Checkers/MacOSKeychainAPIChecker.cpp
520SRCS_FUL+=	StaticAnalyzer/Checkers/MacOSXAPIChecker.cpp
521SRCS_FUL+=	StaticAnalyzer/Checkers/MallocChecker.cpp
522SRCS_FUL+=	StaticAnalyzer/Checkers/MallocOverflowSecurityChecker.cpp
523SRCS_FUL+=	StaticAnalyzer/Checkers/MallocSizeofChecker.cpp
524SRCS_FUL+=	StaticAnalyzer/Checkers/MmapWriteExecChecker.cpp
525SRCS_FUL+=	StaticAnalyzer/Checkers/MoveChecker.cpp
526SRCS_FUL+=	StaticAnalyzer/Checkers/NSAutoreleasePoolChecker.cpp
527SRCS_FUL+=	StaticAnalyzer/Checkers/NSErrorChecker.cpp
528SRCS_FUL+=	StaticAnalyzer/Checkers/NoReturnFunctionChecker.cpp
529SRCS_FUL+=	StaticAnalyzer/Checkers/NonNullParamChecker.cpp
530SRCS_FUL+=	StaticAnalyzer/Checkers/NonnullGlobalConstantsChecker.cpp
531SRCS_FUL+=	StaticAnalyzer/Checkers/NullabilityChecker.cpp
532SRCS_FUL+=	StaticAnalyzer/Checkers/NumberObjectConversionChecker.cpp
533SRCS_FUL+=	StaticAnalyzer/Checkers/ObjCAtSyncChecker.cpp
534SRCS_FUL+=	StaticAnalyzer/Checkers/ObjCAutoreleaseWriteChecker.cpp
535SRCS_FUL+=	StaticAnalyzer/Checkers/ObjCContainersASTChecker.cpp
536SRCS_FUL+=	StaticAnalyzer/Checkers/ObjCContainersChecker.cpp
537SRCS_FUL+=	StaticAnalyzer/Checkers/ObjCMissingSuperCallChecker.cpp
538SRCS_FUL+=	StaticAnalyzer/Checkers/ObjCPropertyChecker.cpp
539SRCS_FUL+=	StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp
540SRCS_FUL+=	StaticAnalyzer/Checkers/ObjCSuperDeallocChecker.cpp
541SRCS_FUL+=	StaticAnalyzer/Checkers/ObjCUnusedIVarsChecker.cpp
542SRCS_FUL+=	StaticAnalyzer/Checkers/PaddingChecker.cpp
543SRCS_FUL+=	StaticAnalyzer/Checkers/PointerArithChecker.cpp
544SRCS_FUL+=	StaticAnalyzer/Checkers/PointerSubChecker.cpp
545SRCS_FUL+=	StaticAnalyzer/Checkers/PthreadLockChecker.cpp
546SRCS_FUL+=	StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.cpp
547SRCS_FUL+=	StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp
548SRCS_FUL+=	StaticAnalyzer/Checkers/ReturnPointerRangeChecker.cpp
549SRCS_FUL+=	StaticAnalyzer/Checkers/ReturnUndefChecker.cpp
550SRCS_FUL+=	StaticAnalyzer/Checkers/RunLoopAutoreleaseLeakChecker.cpp
551SRCS_FUL+=	StaticAnalyzer/Checkers/SimpleStreamChecker.cpp
552SRCS_FUL+=	StaticAnalyzer/Checkers/StackAddrEscapeChecker.cpp
553SRCS_FUL+=	StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
554SRCS_FUL+=	StaticAnalyzer/Checkers/StreamChecker.cpp
555SRCS_FUL+=	StaticAnalyzer/Checkers/TaintTesterChecker.cpp
556SRCS_FUL+=	StaticAnalyzer/Checkers/TestAfterDivZeroChecker.cpp
557SRCS_FUL+=	StaticAnalyzer/Checkers/TraversalChecker.cpp
558SRCS_FUL+=	StaticAnalyzer/Checkers/TrustNonnullChecker.cpp
559SRCS_FUL+=	StaticAnalyzer/Checkers/UndefBranchChecker.cpp
560SRCS_FUL+=	StaticAnalyzer/Checkers/UndefCapturedBlockVarChecker.cpp
561SRCS_FUL+=	StaticAnalyzer/Checkers/UndefResultChecker.cpp
562SRCS_FUL+=	StaticAnalyzer/Checkers/UndefinedArraySubscriptChecker.cpp
563SRCS_FUL+=	StaticAnalyzer/Checkers/UndefinedAssignmentChecker.cpp
564SRCS_FUL+=	StaticAnalyzer/Checkers/UninitializedObject/UninitializedObjectChecker.cpp
565SRCS_FUL+=	StaticAnalyzer/Checkers/UninitializedObject/UninitializedPointee.cpp
566SRCS_FUL+=	StaticAnalyzer/Checkers/UnixAPIChecker.cpp
567SRCS_FUL+=	StaticAnalyzer/Checkers/UnreachableCodeChecker.cpp
568SRCS_FUL+=	StaticAnalyzer/Checkers/VLASizeChecker.cpp
569SRCS_FUL+=	StaticAnalyzer/Checkers/ValistChecker.cpp
570SRCS_FUL+=	StaticAnalyzer/Checkers/VforkChecker.cpp
571SRCS_FUL+=	StaticAnalyzer/Checkers/VirtualCallChecker.cpp
572SRCS_FUL+=	StaticAnalyzer/Core/APSIntType.cpp
573SRCS_FUL+=	StaticAnalyzer/Core/AnalysisManager.cpp
574SRCS_FUL+=	StaticAnalyzer/Core/AnalyzerOptions.cpp
575SRCS_FUL+=	StaticAnalyzer/Core/BasicValueFactory.cpp
576SRCS_FUL+=	StaticAnalyzer/Core/BlockCounter.cpp
577SRCS_FUL+=	StaticAnalyzer/Core/BugReporter.cpp
578SRCS_FUL+=	StaticAnalyzer/Core/BugReporterVisitors.cpp
579SRCS_FUL+=	StaticAnalyzer/Core/CallEvent.cpp
580SRCS_FUL+=	StaticAnalyzer/Core/Checker.cpp
581SRCS_FUL+=	StaticAnalyzer/Core/CheckerContext.cpp
582SRCS_FUL+=	StaticAnalyzer/Core/CheckerHelpers.cpp
583SRCS_FUL+=	StaticAnalyzer/Core/CheckerManager.cpp
584SRCS_FUL+=	StaticAnalyzer/Core/CommonBugCategories.cpp
585SRCS_FUL+=	StaticAnalyzer/Core/ConstraintManager.cpp
586SRCS_FUL+=	StaticAnalyzer/Core/CoreEngine.cpp
587SRCS_FUL+=	StaticAnalyzer/Core/DynamicTypeMap.cpp
588SRCS_FUL+=	StaticAnalyzer/Core/Environment.cpp
589SRCS_FUL+=	StaticAnalyzer/Core/ExplodedGraph.cpp
590SRCS_FUL+=	StaticAnalyzer/Core/ExprEngine.cpp
591SRCS_FUL+=	StaticAnalyzer/Core/ExprEngineC.cpp
592SRCS_FUL+=	StaticAnalyzer/Core/ExprEngineCXX.cpp
593SRCS_FUL+=	StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp
594SRCS_FUL+=	StaticAnalyzer/Core/ExprEngineObjC.cpp
595SRCS_FUL+=	StaticAnalyzer/Core/FunctionSummary.cpp
596SRCS_FUL+=	StaticAnalyzer/Core/HTMLDiagnostics.cpp
597SRCS_FUL+=	StaticAnalyzer/Core/IssueHash.cpp
598SRCS_FUL+=	StaticAnalyzer/Core/LoopUnrolling.cpp
599SRCS_FUL+=	StaticAnalyzer/Core/LoopWidening.cpp
600SRCS_FUL+=	StaticAnalyzer/Core/MemRegion.cpp
601SRCS_FUL+=	StaticAnalyzer/Core/PathDiagnostic.cpp
602SRCS_FUL+=	StaticAnalyzer/Core/PlistDiagnostics.cpp
603SRCS_FUL+=	StaticAnalyzer/Core/ProgramState.cpp
604SRCS_FUL+=	StaticAnalyzer/Core/RangeConstraintManager.cpp
605SRCS_FUL+=	StaticAnalyzer/Core/RangedConstraintManager.cpp
606SRCS_FUL+=	StaticAnalyzer/Core/RegionStore.cpp
607SRCS_FUL+=	StaticAnalyzer/Core/RetainSummaryManager.cpp
608SRCS_FUL+=	StaticAnalyzer/Core/SValBuilder.cpp
609SRCS_FUL+=	StaticAnalyzer/Core/SVals.cpp
610SRCS_FUL+=	StaticAnalyzer/Core/SarifDiagnostics.cpp
611SRCS_FUL+=	StaticAnalyzer/Core/SimpleConstraintManager.cpp
612SRCS_FUL+=	StaticAnalyzer/Core/SimpleSValBuilder.cpp
613SRCS_FUL+=	StaticAnalyzer/Core/Store.cpp
614SRCS_FUL+=	StaticAnalyzer/Core/SubEngine.cpp
615SRCS_FUL+=	StaticAnalyzer/Core/SymbolManager.cpp
616SRCS_FUL+=	StaticAnalyzer/Core/TaintManager.cpp
617SRCS_FUL+=	StaticAnalyzer/Core/WorkList.cpp
618SRCS_FUL+=	StaticAnalyzer/Core/Z3ConstraintManager.cpp
619SRCS_FUL+=	StaticAnalyzer/Frontend/AnalysisConsumer.cpp
620SRCS_FUL+=	StaticAnalyzer/Frontend/CheckerRegistration.cpp
621SRCS_FUL+=	StaticAnalyzer/Frontend/CheckerRegistry.cpp
622SRCS_FUL+=	StaticAnalyzer/Frontend/FrontendActions.cpp
623SRCS_FUL+=	StaticAnalyzer/Frontend/ModelConsumer.cpp
624SRCS_FUL+=	StaticAnalyzer/Frontend/ModelInjector.cpp
625SRCS_MIN+=	Tooling/ArgumentsAdjusters.cpp
626SRCS_MIN+=	Tooling/CommonOptionsParser.cpp
627SRCS_MIN+=	Tooling/CompilationDatabase.cpp
628SRCS_MIN+=	Tooling/Core/Lookup.cpp
629SRCS_EXT+=	Tooling/Core/Replacement.cpp
630SRCS_MIN+=	Tooling/FileMatchTrie.cpp
631SRCS_MIN+=	Tooling/FixIt.cpp
632SRCS_EXT+=	Tooling/Inclusions/HeaderIncludes.cpp
633SRCS_EXT+=	Tooling/Inclusions/IncludeStyle.cpp
634SRCS_MIN+=	Tooling/JSONCompilationDatabase.cpp
635SRCS_MIN+=	Tooling/Refactoring.cpp
636SRCS_MIN+=	Tooling/RefactoringCallbacks.cpp
637SRCS_MIN+=	Tooling/Tooling.cpp
638
639SRCS_ALL+=	${SRCS_MIN}
640.if ${MK_CLANG_EXTRAS} != "no"
641SRCS_ALL+=	${SRCS_EXT}
642.endif
643.if ${MK_CLANG_FULL} != "no"
644SRCS_ALL+=	${SRCS_FUL}
645.endif
646.if ${MK_LLDB} != "no"
647SRCS_ALL+=	${SRCS_LDB}
648.endif
649SRCS+=		${SRCS_ALL:O}
650
651clang/AST/AttrImpl.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
652	${CLANG_TBLGEN} -gen-clang-attr-impl \
653	    -I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
654	    ${CLANG_SRCS}/include/clang/Basic/Attr.td
655TGHDRS+=	clang/AST/AttrImpl.inc
656
657clang/AST/AttrNodeTraverse.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
658	${CLANG_TBLGEN} -gen-clang-attr-node-traverse \
659	    -I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
660	    ${CLANG_SRCS}/include/clang/Basic/Attr.td
661TGHDRS+=	clang/AST/AttrNodeTraverse.inc
662
663clang/AST/AttrTextNodeDump.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
664	${CLANG_TBLGEN} -gen-clang-attr-text-node-dump \
665	    -I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
666	    ${CLANG_SRCS}/include/clang/Basic/Attr.td
667TGHDRS+=	clang/AST/AttrTextNodeDump.inc
668
669clang/AST/AttrVisitor.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
670	${CLANG_TBLGEN} -gen-clang-attr-ast-visitor \
671	    -I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
672	    ${CLANG_SRCS}/include/clang/Basic/Attr.td
673TGHDRS+=	clang/AST/AttrVisitor.inc
674
675clang/AST/Attrs.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
676	${CLANG_TBLGEN} -gen-clang-attr-classes \
677	    -I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
678	    ${CLANG_SRCS}/include/clang/Basic/Attr.td
679TGHDRS+=	clang/AST/Attrs.inc
680
681clang/AST/CommentCommandInfo.inc: \
682	${CLANG_SRCS}/include/clang/AST/CommentCommands.td
683	${CLANG_TBLGEN} -gen-clang-comment-command-info \
684	    -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
685	    ${CLANG_SRCS}/include/clang/AST/CommentCommands.td
686TGHDRS+=	clang/AST/CommentCommandInfo.inc
687
688clang/AST/CommentCommandList.inc: \
689	${CLANG_SRCS}/include/clang/AST/CommentCommands.td
690	${CLANG_TBLGEN} -gen-clang-comment-command-list \
691	    -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
692	    ${CLANG_SRCS}/include/clang/AST/CommentCommands.td
693TGHDRS+=	clang/AST/CommentCommandList.inc
694
695clang/AST/CommentHTMLNamedCharacterReferences.inc: \
696	${CLANG_SRCS}/include/clang/AST/CommentHTMLNamedCharacterReferences.td
697	${CLANG_TBLGEN} -gen-clang-comment-html-named-character-references \
698	    -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
699	    ${CLANG_SRCS}/include/clang/AST/CommentHTMLNamedCharacterReferences.td
700TGHDRS+=	clang/AST/CommentHTMLNamedCharacterReferences.inc
701
702clang/AST/CommentHTMLTags.inc: \
703	${CLANG_SRCS}/include/clang/AST/CommentHTMLTags.td
704	${CLANG_TBLGEN} -gen-clang-comment-html-tags \
705	    -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
706	    ${CLANG_SRCS}/include/clang/AST/CommentHTMLTags.td
707TGHDRS+=	clang/AST/CommentHTMLTags.inc
708
709clang/AST/CommentHTMLTagsProperties.inc: \
710	${CLANG_SRCS}/include/clang/AST/CommentHTMLTags.td
711	${CLANG_TBLGEN} -gen-clang-comment-html-tags-properties \
712	    -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
713	    ${CLANG_SRCS}/include/clang/AST/CommentHTMLTags.td
714TGHDRS+=	clang/AST/CommentHTMLTagsProperties.inc
715
716clang/AST/CommentNodes.inc: ${CLANG_SRCS}/include/clang/Basic/CommentNodes.td
717	${CLANG_TBLGEN} -gen-clang-comment-nodes \
718	    -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
719	    ${CLANG_SRCS}/include/clang/Basic/CommentNodes.td
720TGHDRS+=	clang/AST/CommentNodes.inc
721
722clang/AST/DeclNodes.inc: ${CLANG_SRCS}/include/clang/Basic/DeclNodes.td
723	${CLANG_TBLGEN} -gen-clang-decl-nodes \
724	    -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
725	    ${CLANG_SRCS}/include/clang/Basic/DeclNodes.td
726TGHDRS+=	clang/AST/DeclNodes.inc
727
728clang/AST/StmtDataCollectors.inc: ${CLANG_SRCS}/include/clang/AST/StmtDataCollectors.td
729	${CLANG_TBLGEN} -gen-clang-data-collectors \
730	    -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
731	    ${CLANG_SRCS}/include/clang/AST/StmtDataCollectors.td
732TGHDRS+=	clang/AST/StmtDataCollectors.inc
733
734clang/AST/StmtNodes.inc: ${CLANG_SRCS}/include/clang/Basic/StmtNodes.td
735	${CLANG_TBLGEN} -gen-clang-stmt-nodes \
736	    -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
737	    ${CLANG_SRCS}/include/clang/Basic/StmtNodes.td
738TGHDRS+=	clang/AST/StmtNodes.inc
739
740clang/Basic/AttrHasAttributeImpl.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
741	${CLANG_TBLGEN} -gen-clang-attr-has-attribute-impl \
742	    -I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
743	    ${CLANG_SRCS}/include/clang/Basic/Attr.td
744TGHDRS+=	clang/Basic/AttrHasAttributeImpl.inc
745
746clang/Basic/AttrList.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
747	${CLANG_TBLGEN} -gen-clang-attr-list \
748	    -I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
749	    ${CLANG_SRCS}/include/clang/Basic/Attr.td
750TGHDRS+=	clang/Basic/AttrList.inc
751
752clang/Basic/AttrSubMatchRulesList.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
753	${CLANG_TBLGEN} -gen-clang-attr-subject-match-rule-list \
754	    -I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
755	    ${CLANG_SRCS}/include/clang/Basic/Attr.td
756TGHDRS+=	clang/Basic/AttrSubMatchRulesList.inc
757
758.for hdr in \
759	AST Analysis Comment Common CrossTU Driver Frontend Lex Parse \
760	Refactoring Sema Serialization SemaSerialization
761clang/Basic/Diagnostic${hdr}Kinds.inc: \
762	${CLANG_SRCS}/include/clang/Basic/Diagnostic.td
763	${CLANG_TBLGEN} -gen-clang-diags-defs -clang-component=${hdr} \
764	    -I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET:C/$/.d/} \
765	    -o ${.TARGET} ${CLANG_SRCS}/include/clang/Basic/Diagnostic.td
766TGHDRS+=	clang/Basic/Diagnostic${hdr}Kinds.inc
767.endfor
768
769clang/Basic/DiagnosticGroups.inc: \
770	${CLANG_SRCS}/include/clang/Basic/Diagnostic.td
771	${CLANG_TBLGEN} -gen-clang-diag-groups \
772	    -I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET:C/$/.d/} \
773	    -o ${.TARGET} ${CLANG_SRCS}/include/clang/Basic/Diagnostic.td
774TGHDRS+=	clang/Basic/DiagnosticGroups.inc
775
776clang/Basic/DiagnosticIndexName.inc: \
777	${CLANG_SRCS}/include/clang/Basic/Diagnostic.td
778	${CLANG_TBLGEN} -gen-clang-diags-index-name \
779	    -I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET:C/$/.d/} \
780	    -o ${.TARGET} ${CLANG_SRCS}/include/clang/Basic/Diagnostic.td
781TGHDRS+=	clang/Basic/DiagnosticIndexName.inc
782
783clang/Basic/arm_fp16.inc: ${CLANG_SRCS}/include/clang/Basic/arm_fp16.td
784	${CLANG_TBLGEN} -gen-arm-neon-sema \
785	    -I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET:C/$/.d/} \
786	    -o ${.TARGET} ${CLANG_SRCS}/include/clang/Basic/arm_fp16.td
787TGHDRS+=	clang/Basic/arm_fp16.inc
788
789clang/Basic/arm_neon.inc: ${CLANG_SRCS}/include/clang/Basic/arm_neon.td
790	${CLANG_TBLGEN} -gen-arm-neon-sema \
791	    -I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET:C/$/.d/} \
792	    -o ${.TARGET} ${CLANG_SRCS}/include/clang/Basic/arm_neon.td
793TGHDRS+=	clang/Basic/arm_neon.inc
794
795clang/Driver/Options.inc: ${CLANG_SRCS}/include/clang/Driver/Options.td
796	${LLVM_TBLGEN} -gen-opt-parser-defs \
797	    -I ${LLVM_SRCS}/include -I ${CLANG_SRCS}/include/clang/Driver \
798	    -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
799	    ${CLANG_SRCS}/include/clang/Driver/Options.td
800TGHDRS+=	clang/Driver/Options.inc
801
802clang/Parse/AttrParserStringSwitches.inc: \
803	${CLANG_SRCS}/include/clang/Basic/Attr.td
804	${CLANG_TBLGEN} -gen-clang-attr-parser-string-switches \
805	    -I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
806	    ${CLANG_SRCS}/include/clang/Basic/Attr.td
807TGHDRS+=	clang/Parse/AttrParserStringSwitches.inc
808
809clang/Parse/AttrSubMatchRulesParserStringSwitches.inc: \
810	${CLANG_SRCS}/include/clang/Basic/Attr.td
811	${CLANG_TBLGEN} -gen-clang-attr-subject-match-rules-parser-string-switches \
812	    -I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
813	    ${CLANG_SRCS}/include/clang/Basic/Attr.td
814TGHDRS+=	clang/Parse/AttrSubMatchRulesParserStringSwitches.inc
815
816clang/Sema/AttrParsedAttrImpl.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
817	${CLANG_TBLGEN} -gen-clang-attr-parsed-attr-impl \
818	    -I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
819	    ${CLANG_SRCS}/include/clang/Basic/Attr.td
820TGHDRS+=	clang/Sema/AttrParsedAttrImpl.inc
821
822clang/Sema/AttrParsedAttrKinds.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
823	${CLANG_TBLGEN} -gen-clang-attr-parsed-attr-kinds \
824	    -I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
825	    ${CLANG_SRCS}/include/clang/Basic/Attr.td
826TGHDRS+=	clang/Sema/AttrParsedAttrKinds.inc
827
828clang/Sema/AttrParsedAttrList.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
829	${CLANG_TBLGEN} -gen-clang-attr-parsed-attr-list \
830	    -I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
831	    ${CLANG_SRCS}/include/clang/Basic/Attr.td
832TGHDRS+=	clang/Sema/AttrParsedAttrList.inc
833
834clang/Sema/AttrSpellingListIndex.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
835	${CLANG_TBLGEN} -gen-clang-attr-spelling-index \
836	    -I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
837	    ${CLANG_SRCS}/include/clang/Basic/Attr.td
838TGHDRS+=	clang/Sema/AttrSpellingListIndex.inc
839
840clang/Sema/AttrTemplateInstantiate.inc: \
841	${CLANG_SRCS}/include/clang/Basic/Attr.td
842	${CLANG_TBLGEN} -gen-clang-attr-template-instantiate \
843	    -I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
844	    ${CLANG_SRCS}/include/clang/Basic/Attr.td
845TGHDRS+=	clang/Sema/AttrTemplateInstantiate.inc
846
847clang/Serialization/AttrPCHRead.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
848	${CLANG_TBLGEN} -gen-clang-attr-pch-read \
849	    -I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
850	    ${CLANG_SRCS}/include/clang/Basic/Attr.td
851TGHDRS+=	clang/Serialization/AttrPCHRead.inc
852
853clang/Serialization/AttrPCHWrite.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
854	${CLANG_TBLGEN} -gen-clang-attr-pch-write \
855	    -I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
856	    ${CLANG_SRCS}/include/clang/Basic/Attr.td
857TGHDRS+=	clang/Serialization/AttrPCHWrite.inc
858
859clang/StaticAnalyzer/Checkers/Checkers.inc: \
860	${CLANG_SRCS}/include/clang/StaticAnalyzer/Checkers/Checkers.td
861	${CLANG_TBLGEN} -gen-clang-sa-checkers \
862	    -I ${CLANG_SRCS}/include/clang/StaticAnalyzer/Checkers \
863	    -d ${.TARGET:C/$/.d/} -o ${.TARGET} \
864	    ${CLANG_SRCS}/include/clang/StaticAnalyzer/Checkers/Checkers.td
865TGHDRS+=	clang/StaticAnalyzer/Checkers/Checkers.inc
866
867DEPENDFILES+=	${TGHDRS:C/$/.d/}
868DPSRCS+=	${TGHDRS}
869CLEANFILES+=	${TGHDRS} ${TGHDRS:C/$/.d/}
870
871.include "../clang.build.mk"
872
873INTERNALLIB=
874
875.include <bsd.lib.mk>
876