xref: /openbsd-src/gnu/usr.bin/clang/libclangAST/Makefile (revision 43d0313fbbddf48da55c5a9d61b14232a2b0ac89)
1# $OpenBSD: Makefile,v 1.11 2024/02/08 20:28:54 miod Exp $
2
3LIB=	clangAST
4NOPIC=
5NOPROFILE=
6
7TBLGEN=		${.OBJDIR}/../clang-tblgen/clang-tblgen
8CLANG_INC=	${.CURDIR}/../../../llvm/clang/include
9
10CPPFLAGS+=	-I${.OBJDIR}/../include/clang/AST \
11		${CLANG_INCLUDES}
12
13.include <bsd.own.mk>
14
15SRCS=	APValue.cpp \
16	ASTConcept.cpp \
17	ASTConsumer.cpp \
18	ASTContext.cpp \
19	ASTDiagnostic.cpp \
20	ASTDumper.cpp \
21	ASTImporter.cpp \
22	ASTImporterLookupTable.cpp \
23	ASTStructuralEquivalence.cpp \
24	ASTTypeTraits.cpp \
25	AttrDocTable.cpp \
26	AttrImpl.cpp \
27	Comment.cpp \
28	CommentBriefParser.cpp \
29	CommentCommandTraits.cpp \
30	CommentLexer.cpp \
31	CommentParser.cpp \
32	CommentSema.cpp \
33	ComparisonCategories.cpp \
34	ComputeDependence.cpp \
35	CXXInheritance.cpp \
36	DataCollection.cpp \
37	Decl.cpp \
38	DeclarationName.cpp \
39	DeclBase.cpp \
40	DeclCXX.cpp \
41	DeclFriend.cpp \
42	DeclGroup.cpp \
43	DeclObjC.cpp \
44	DeclOpenMP.cpp \
45	DeclPrinter.cpp \
46	DeclTemplate.cpp \
47	ParentMapContext.cpp \
48	Expr.cpp \
49	ExprClassification.cpp \
50	ExprConcepts.cpp \
51	ExprConstant.cpp \
52	ExprCXX.cpp \
53	ExprObjC.cpp \
54	ExternalASTMerger.cpp \
55	ExternalASTSource.cpp \
56	FormatString.cpp \
57	InheritViz.cpp \
58	ItaniumCXXABI.cpp \
59	ItaniumMangle.cpp \
60	JSONNodeDumper.cpp \
61	Mangle.cpp \
62	MicrosoftCXXABI.cpp \
63	MicrosoftMangle.cpp \
64	NestedNameSpecifier.cpp \
65	NSAPI.cpp \
66	ODRDiagsEmitter.cpp \
67	ODRHash.cpp \
68	OpenMPClause.cpp \
69	OSLog.cpp \
70	ParentMap.cpp \
71	PrintfFormatString.cpp \
72	QualTypeNames.cpp \
73	Randstruct.cpp \
74	RawCommentList.cpp \
75	RecordLayout.cpp \
76	RecordLayoutBuilder.cpp \
77	ScanfFormatString.cpp \
78	SelectorLocationsKind.cpp \
79	Stmt.cpp \
80	StmtCXX.cpp \
81	StmtIterator.cpp \
82	StmtObjC.cpp \
83	StmtOpenMP.cpp \
84	StmtPrinter.cpp \
85	StmtProfile.cpp \
86	StmtViz.cpp \
87	TemplateBase.cpp \
88	TemplateName.cpp \
89	TextNodeDumper.cpp \
90	Type.cpp \
91	TypeLoc.cpp \
92	TypePrinter.cpp \
93	VTableBuilder.cpp \
94	VTTBuilder.cpp
95
96# Interp
97SRCS+=	ByteCodeEmitter.cpp \
98	ByteCodeExprGen.cpp \
99	ByteCodeGenError.cpp \
100	ByteCodeStmtGen.cpp \
101	Context.cpp \
102	Descriptor.cpp \
103	Disasm.cpp \
104	EvalEmitter.cpp \
105	Frame.cpp \
106	Function.cpp \
107	Interp.cpp \
108	InterpBlock.cpp \
109	InterpFrame.cpp \
110	InterpStack.cpp \
111	InterpState.cpp \
112	Pointer.cpp \
113	PrimType.cpp \
114	Program.cpp \
115	Record.cpp \
116	Source.cpp \
117	State.cpp
118
119.PATH:	${.CURDIR}/../../../llvm/clang/lib/AST
120.PATH:	${.CURDIR}/../../../llvm/clang/lib/AST/Interp
121
122BUILDFIRST=	AttrDocTable.inc \
123		Opcodes.inc
124CLEANFILES+=	AttrDocTable.inc \
125		Opcodes.inc
126
127AttrDocTable.inc:
128	${TBLGEN} -I${CLANG_INC} -gen-clang-attr-doc-table ${CLANG_INC}/clang/Basic/Attr.td \
129		-o ${.TARGET} ${.ALLSRC}
130
131Opcodes.inc:
132	${TBLGEN} -I${CLANG_INC} -gen-clang-opcodes ${.CURDIR}/../../../llvm/clang/lib/AST/Interp/Opcodes.td \
133		-o ${.TARGET} ${.ALLSRC}
134
135install:
136	@# Nothing here so far ...
137
138.include <bsd.lib.mk>
139