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