Makefile.am 4.79 KB
Newer Older
1
2
# Makefile.am                                          -*-Makefile-*-

david_v's avatar
david_v committed
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
include $(top_srcdir)/config/Makefile.xt
-include afcxx-disambiguate.c.dep

SRCS		= \
		Ambiguity.str \
		AmbiguityCandidate.str \
		BaseTraverse.str \
		BaseTraverseCandidate.str \
		CheckClassName.str \
		CheckEnumName.str \
		CheckNamespaceName.str \
		CheckTypeName.str \
		ClassDefinition.str \
		ClassDefinitionCandidate.str \
		ClassOrNamespaceAmbiguity.str \
		ClassOrNamespaceAmbiguityCandidate.str \
		ClassOrNamespaceAmbiguityCut.str \
		ClassOrNamespaceTraverse.str \
		ClassTraverse.str \
		CompoundStatement.str \
		CompoundStatementCandidate.str \
24
25
		ConstructorDefinition.str \
		DeclaratorIdAmbiguity.str \
david_v's avatar
david_v committed
26
		Definition.str \
27
28
		EnumDefinition.str \
		EnumDefinitionCandidate.str \
29
30
31
		ForInitStatementAmbiguity.str \
		ForInitStatementAmbiguityCandidate.str \
		ForInitStatementAmbiguityCut.str \
32
		FunctionDefinitionAmbiguity.str \
33
		GetKey.str \
david_v's avatar
david_v committed
34
		IfDebug.str \
35
		InitDeclaratorAmbiguity.str \
36
		Keys.str \
david_v's avatar
david_v committed
37
38
39
		Kinds.str \
		LocalOrGlobal.str \
		Lookup.str \
40
		MemInitializerIdAmbiguity.str \
david_v's avatar
david_v committed
41
42
		NamespaceDefinition.str \
		NamespaceDefinitionCandidate.str \
43
		NamespaceNameAmbiguity.str \
david_v's avatar
david_v committed
44
45
		NamespaceTraverse.str \
		NestedNameSpecifier.str \
46
47
48
		Parameter.str \
		PostfixExpressionAmbiguity.str \
		PostfixExpressionAmbiguityCandidate.str \
david_v's avatar
david_v committed
49
50
51
52
		PrimaryExpression.str \
		PrimaryExpressionCandidate.str \
		Resolve.str \
		ResolveCompound.str \
53
		SizeofAmbiguity.str \
54
		SimpleDeclarationAmbiguity.str \
david_v's avatar
david_v committed
55
56
		SimpleTypeSpecifier.str \
		SimpleTypeSpecifierCandidate.str \
57
		StatementAmbiguity.str \
david_v's avatar
david_v committed
58
59
60
		TemplateArguments.str \
		TemplateClassDefinition.str \
		TemplateClassDefinitionCandidate.str \
61
		TemplateClassTraverse.str \
david_v's avatar
david_v committed
62
63
		TemplateDefinition.str \
		TemplateDefinitionCandidate.str \
64
65
66
		TemplateFunctionDefinition.str \
		TemplateFunctionDefinitionCandidate.str \
		TemplateFunctionTraverse.str \
67
68
69
		TemplateIdAmbiguity.str \
		TemplateIdAmbiguityCandidate.str \
		TemplateIdAmbiguityCut.str \
70
71
		TemplateTraverse.str \
		TemplateTraverseCandidate.str \
david_v's avatar
david_v committed
72
73
74
75
76
77
78
		TypeAmbiguity.str \
		TypeAmbiguityCandidate.str \
		TypeAmbiguityCut.str \
		TypeDeclarator.str \
		TypeDeclaratorCandidate.str \
		TypeDefinition.str \
		TypeDefinitionCandidate.str \
79
		UsingDefinition.str \
80
		UsingNamespace.str \
david_v's avatar
david_v committed
81
82
83
		VariableDeclarator.str \
		VariableDeclaratorCandidate.str \
		VariableDefinition.str \
84
85
		VariableDefinitionCandidate.str \
		afcxx-disambiguate.str
86

87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
METAS		= \
		BaseTraverse.meta \
		BaseTraverseCandidate.meta \
		CheckClassName.meta \
		CheckEnumName.meta \
		CheckNamespaceName.meta \
		CheckTypeName.meta \
		ClassDefinition.meta \
		ClassDefinitionCandidate.meta \
		ClassOrNamespaceAmbiguityCandidate.meta \
		ClassOrNamespaceTraverse.meta \
		ClassTraverse.meta \
		CompoundStatement.meta \
		CompoundStatementCandidate.meta \
		ConstructorDefinition.meta \
		DeclaratorIdAmbiguity.meta \
		EnumDefinition.meta \
		EnumDefinitionCandidate.meta \
		FunctionDefinitionAmbiguity.meta \
106
107
		ForInitStatementAmbiguityCandidate.meta \
		ForInitStatementAmbiguityCut.meta \
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
		GetKey.meta \
		InitDeclaratorAmbiguity.meta \
		LocalOrGlobal.meta \
		MemInitializerIdAmbiguity.meta \
		NamespaceDefinition.meta \
		NamespaceDefinitionCandidate.meta \
		NamespaceNameAmbiguity.meta \
		NamespaceTraverse.meta \
		NestedNameSpecifier.meta \
		Parameter.meta \
		PostfixExpressionAmbiguity.meta \
		PostfixExpressionAmbiguityCandidate.meta \
		PrimaryExpression.meta \
		PrimaryExpressionCandidate.meta \
		SizeofAmbiguity.meta \
		SimpleDeclarationAmbiguity.meta \
		SimpleTypeSpecifier.meta \
		SimpleTypeSpecifierCandidate.meta \
		StatementAmbiguity.meta \
		TemplateArguments.meta \
		TemplateClassDefinition.meta \
		TemplateClassDefinitionCandidate.meta \
		TemplateClassTraverse.meta \
		TemplateDefinition.meta \
		TemplateDefinitionCandidate.meta \
		TemplateFunctionDefinition.meta \
		TemplateFunctionDefinitionCandidate.meta \
		TemplateFunctionTraverse.meta \
		TemplateIdAmbiguity.meta \
		TemplateIdAmbiguityCandidate.meta \
		TemplateIdAmbiguityCut.meta \
		TemplateTraverse.meta \
		TemplateTraverseCandidate.meta \
		TypeAmbiguityCandidate.meta \
		TypeDeclarator.meta \
		TypeDeclaratorCandidate.meta \
		TypeDefinition.meta \
		TypeDefinitionCandidate.meta \
146
		UsingDefinition.meta \
147
		UsingNamespace.meta \
148
149
150
151
152
153
154
155
156
		VariableDeclarator.meta \
		VariableDeclaratorCandidate.meta \
		VariableDefinition.meta \
		VariableDefinitionCandidate.meta

RTREES		= $(SRCS:.str=.rtree)

afcxx-disambiguate.c: $(RTREES)

157
158
SCFLAGS		= --main $* --verbose 0
STRINCLUDES	= -I $(ASFIX_TOOLS)/share/asfix-tools \
159
160
		  -I $(top_builddir)/src/strategocxx \
		  -I $(top_builddir)/src/sig \
david_v's avatar
david_v committed
161
		  -I $(top_srcdir)/lib/cxx \
162
163
		  -I $(top_srcdir)/lib/prelude \
		  --asfix
164

165
libexec_PROGRAMS= afcxx-disambiguate
166
EXTRA_DIST	= $(SRCS) $(METAS)
167
168
nodist_afcxx_disambiguate_SOURCES = afcxx-disambiguate.c
CLEANFILES      = afcxx-disambiguate.{c.dep,c} $(RTREES)