Makefile.am 4.59 KB
Newer Older
david_v's avatar
david_v committed
1
2
3
4
5
6
include $(top_srcdir)/config/Makefile.xt
-include afcxx-disambiguate.c.dep

SRCS		= \
		Ambiguity.str \
		AmbiguityCandidate.str \
7
		BaseTraverse.meta \
david_v's avatar
david_v committed
8
		BaseTraverse.str \
9
		BaseTraverseCandidate.meta \
david_v's avatar
david_v committed
10
		BaseTraverseCandidate.str \
11
		CheckClassName.meta \
david_v's avatar
david_v committed
12
		CheckClassName.str \
13
		CheckEnumName.meta \
david_v's avatar
david_v committed
14
		CheckEnumName.str \
15
		CheckNamespaceName.meta \
david_v's avatar
david_v committed
16
		CheckNamespaceName.str \
17
		CheckTypeName.meta \
david_v's avatar
david_v committed
18
		CheckTypeName.str \
19
		ClassDefinition.meta \
david_v's avatar
david_v committed
20
		ClassDefinition.str \
21
		ClassDefinitionCandidate.meta \
david_v's avatar
david_v committed
22
23
		ClassDefinitionCandidate.str \
		ClassOrNamespaceAmbiguity.str \
24
		ClassOrNamespaceAmbiguityCandidate.meta \
david_v's avatar
david_v committed
25
26
		ClassOrNamespaceAmbiguityCandidate.str \
		ClassOrNamespaceAmbiguityCut.str \
27
		ClassOrNamespaceTraverse.meta \
david_v's avatar
david_v committed
28
		ClassOrNamespaceTraverse.str \
29
		ClassTraverse.meta \
david_v's avatar
david_v committed
30
		ClassTraverse.str \
31
		CompoundStatement.meta \
david_v's avatar
david_v committed
32
		CompoundStatement.str \
33
		CompoundStatementCandidate.meta \
david_v's avatar
david_v committed
34
		CompoundStatementCandidate.str \
35
		ConstructorDefinition.meta \
36
		ConstructorDefinition.str \
37
		DeclaratorIdAmbiguity.meta \
38
		DeclaratorIdAmbiguity.str \
david_v's avatar
david_v committed
39
		Definition.str \
40
		EnumDefinition.meta \
41
		EnumDefinition.str \
42
		EnumDefinitionCandidate.meta \
43
		EnumDefinitionCandidate.str \
44
		FunctionDefinitionAmbiguity.meta \
45
		FunctionDefinitionAmbiguity.str \
46
		GetKey.meta \
47
		GetKey.str \
david_v's avatar
david_v committed
48
		IfDebug.str \
49
		InitDeclaratorAmbiguity.meta \
50
		InitDeclaratorAmbiguity.str \
51
		Keys.str \
david_v's avatar
david_v committed
52
		Kinds.str \
53
		LocalOrGlobal.meta \
david_v's avatar
david_v committed
54
55
		LocalOrGlobal.str \
		Lookup.str \
56
57
58
		MemInitializerIdAmbiguity.meta \
		MemInitializerIdAmbiguity.str \
		NamespaceDefinition.meta \
david_v's avatar
david_v committed
59
		NamespaceDefinition.str \
60
		NamespaceDefinitionCandidate.meta \
david_v's avatar
david_v committed
61
		NamespaceDefinitionCandidate.str \
62
		NamespaceTraverse.meta \
david_v's avatar
david_v committed
63
		NamespaceTraverse.str \
64
		NestedNameSpecifier.meta \
david_v's avatar
david_v committed
65
		NestedNameSpecifier.str \
66
		Parameter.meta \
67
		Parameter.str \
68
		PostfixExpressionAmbiguity.meta \
69
		PostfixExpressionAmbiguity.str \
70
		PostfixExpressionAmbiguityCandidate.meta \
71
		PostfixExpressionAmbiguityCandidate.str \
72
		PrimaryExpression.meta \
david_v's avatar
david_v committed
73
		PrimaryExpression.str \
74
		PrimaryExpressionCandidate.meta \
david_v's avatar
david_v committed
75
76
77
		PrimaryExpressionCandidate.str \
		Resolve.str \
		ResolveCompound.str \
78
79
		SizeofAmbiguity.str \
		SizeofAmbiguity.meta \
80
		SimpleDeclarationAmbiguity.meta \
81
		SimpleDeclarationAmbiguity.str \
82
		SimpleTypeSpecifier.meta \
david_v's avatar
david_v committed
83
		SimpleTypeSpecifier.str \
84
		SimpleTypeSpecifierCandidate.meta \
david_v's avatar
david_v committed
85
		SimpleTypeSpecifierCandidate.str \
86
		StatementAmbiguity.meta \
87
		StatementAmbiguity.str \
88
		TemplateArguments.meta \
david_v's avatar
david_v committed
89
		TemplateArguments.str \
90
		TemplateClassDefinition.meta \
david_v's avatar
david_v committed
91
		TemplateClassDefinition.str \
92
		TemplateClassDefinitionCandidate.meta \
david_v's avatar
david_v committed
93
		TemplateClassDefinitionCandidate.str \
94
		TemplateClassTraverse.meta \
95
		TemplateClassTraverse.str \
96
		TemplateDefinition.meta \
david_v's avatar
david_v committed
97
		TemplateDefinition.str \
98
		TemplateDefinitionCandidate.meta \
david_v's avatar
david_v committed
99
		TemplateDefinitionCandidate.str \
100
		TemplateFunctionDefinition.meta \
101
		TemplateFunctionDefinition.str \
102
		TemplateFunctionDefinitionCandidate.meta \
103
		TemplateFunctionDefinitionCandidate.str \
104
		TemplateFunctionTraverse.meta \
105
		TemplateFunctionTraverse.str \
106
107
108
109
110
111
112
		TemplateIdAmbiguity.meta \
		TemplateIdAmbiguity.str \
		TemplateIdAmbiguityCandidate.meta \
		TemplateIdAmbiguityCandidate.str \
		TemplateIdAmbiguityCut.meta \
		TemplateIdAmbiguityCut.str \
		TemplateTraverse.meta \
113
		TemplateTraverse.str \
114
		TemplateTraverseCandidate.meta \
115
		TemplateTraverseCandidate.str \
david_v's avatar
david_v committed
116
		TypeAmbiguity.str \
117
		TypeAmbiguityCandidate.meta \
david_v's avatar
david_v committed
118
119
		TypeAmbiguityCandidate.str \
		TypeAmbiguityCut.str \
120
		TypeDeclarator.meta \
david_v's avatar
david_v committed
121
		TypeDeclarator.str \
122
		TypeDeclaratorCandidate.meta \
david_v's avatar
david_v committed
123
		TypeDeclaratorCandidate.str \
124
		TypeDefinition.meta \
david_v's avatar
david_v committed
125
		TypeDefinition.str \
126
		TypeDefinitionCandidate.meta \
david_v's avatar
david_v committed
127
		TypeDefinitionCandidate.str \
128
		VariableDeclarator.meta \
david_v's avatar
david_v committed
129
		VariableDeclarator.str \
130
		VariableDeclaratorCandidate.meta \
david_v's avatar
david_v committed
131
		VariableDeclaratorCandidate.str \
132
		VariableDefinition.meta \
david_v's avatar
david_v committed
133
		VariableDefinition.str \
134
135
136
		VariableDefinitionCandidate.meta \
		VariableDefinitionCandidate.str \
		afcxx-disambiguate.str
137

138
139
140
141
afcxx-disambiguate.c: $(SRCS:.str=.rtree)
.str.rtree:
	$(PARSESTRATEGO) $(STRINCLUDES) -i $< -o $@ --verbose 0 --asfix

142
SCFLAGS         = --main $* --verbose 0 --asfix
david_v's avatar
david_v committed
143
STRINCLUDES     = -I $(ASFIX_TOOLS)/share/asfix-tools \
144
145
		  -I $(top_builddir)/src/strategocxx \
		  -I $(top_builddir)/src/sig \
david_v's avatar
david_v committed
146
147
		  -I $(top_srcdir)/lib/cxx \
		  -I $(top_srcdir)/lib/prelude
148
149
bin_PROGRAMS    = afcxx-disambiguate afcxx-disambiguate-ast
BOOTCLEANFILES  = afcxx-disambiguate.c afcxx-disambiguate-ast.c
david_v's avatar
david_v committed
150
EXTRA_DIST	= $(SRCS)
151
152
153
154
CLEANFILES      = afcxx-disambiguate.c.dep afcxx-disambiguate-ast.c.dep

afcxx-disambiguate-ast.c: afcxx-disambiguate.str
	$(SCOMPILE) $(STRINCLUDES) --main afcxx-disambiguate --verbose 0 -i $< -o $@ -c