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