File: extensions.mk

package info (click to toggle)
aspectc%2B%2B 1.0pre4~svn.20090918-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 117,308 kB
  • ctags: 410,601
  • sloc: cpp: 1,883,007; ansic: 17,279; sh: 2,190; makefile: 1,088
file content (133 lines) | stat: -rw-r--r-- 2,821 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
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
#-------------------------------------------------
# extensions
#-------------------------------------------------


EXTENSIONS ?= gnuext winext acppext tracing matchexpr


# No extensions
ifeq ($(EXTENSIONS),)
DONTWEAVE += \
	cpp/PreFileIncluder.cc \
	cpp/PreprocessorParser.cc \
	common/UnitManager.cc \
	scanner/CScanner.cc \
	parser/ccparser/CCBuilder.cc \
	parser/ccparser/CCNameLookup.cc \
	parser/ccparser/CCSemExpr.cc \
	parser/ccparser/CCSemantic.cc \
	parser/ccparser/CCSyntax.cc \
	parser/cparser/CBuilder.cc \
	parser/cparser/CSemExpr.cc \
	parser/cparser/CSyntax.cc \
	parser/cparser/CSemantic.cc \
	parser/cparser/CSemDeclSpecs.cc \
	parser/cparser/CProject.cc \
	parser/Syntax.cc \
	parser/Parser.cc \
	infos/CSemDatabase.cc
endif


# Win32/VisualC++ extensions
ifneq ($(findstring winext,$(EXTENSIONS)),)
ASPECTS += \
	aspects/WinIfExists.ah \
	aspects/WinImportHandler.ah \
	aspects/WinMacros.ah \
	aspects/WinAsm.ah \
	aspects/WinDeclSpecs.ah \
	aspects/WinMemberExplSpec.ah \
	aspects/WinTypeKeywords.ah \
	aspects/WinFriend.ah
endif


# AspectC++ extensions
ifneq ($(findstring acppext,$(EXTENSIONS)),)
ASPECTS += \
	aspects/ExtAC.ah \
	aspects/ExtACBuilderH.ah \
	aspects/ExtACBuilderCC.ah \
	aspects/ExtACSyntaxH.ah \
	aspects/ExtACSyntaxCC.ah \
	aspects/ExtACTree.ah \
	aspects/ExtACKeywords.ah

SOURCES += \
	aspects/ExtACTree.cc \
	parser/acparser/ACTree.cc \
	parser/acparser/ACIntroAnalyzer.cc \
	infos/acinfos/ACAdviceInfo.cc \
	infos/acinfos/ACAspectInfo.cc \
	infos/acinfos/ACSliceInfo.cc \
	infos/acinfos/ACClassDatabase.cc

DONTWEAVE += \
	aspects/ExtACTree.cc \
	parser/acparser/ACIntroAnalyzer.cc \
	infos/acinfos/ACAdviceInfo.cc \
	infos/acinfos/ACAspectInfo.cc \
	infos/acinfos/ACSliceInfo.cc \
	infos/acinfos/ACClassDatabase.cc
endif


# GNU C/C++ extensions
ifneq ($(findstring gnuext,$(EXTENSIONS)),)
ASPECTS += \
	aspects/ExtGnu.ah \
	aspects/ExtGnuCSemDeclSpecs.ah
endif


# #pragma once extension (if gnuext or winext is enabled)
ifneq ($(findstring gnuext,$(EXTENSIONS)),)
ASPECTS += \
	aspects/PragmaOnceUnitState.ah \
	aspects/PragmaOnce.ah
else 
ifneq ($(findstring winext,$(EXTENSIONS)),)
ASPECTS += \
	aspects/PragmaOnceUnitState.ah \
	aspects/PragmaOnce.ah
endif
endif


# Grammar rule tracing
ifneq ($(findstring tracing,$(EXTENSIONS)),)
ASPECTS += \
	aspects/TraceSyntax.ah

SOURCES += \
	parser/Tracing.cc

DONTWEAVE += \
	parser/Tracing.cc
endif


# AST match expressions
ifneq ($(findstring matchexpr,$(EXTENSIONS)),)
ASPECTS += \
	aspects/CMatchSyntax.ah

SOURCES += \
	manip/CMatch.cc \
	manip/CMatchChecker.cc \
	manip/CSubMatch.cc \
	manip/CTreeMatcher.cc \
	manip/MatchCollector.cc

DONTWEAVE += \
	manip/CMatch.cc \
	manip/CMatchChecker.cc \
	manip/CSubMatch.cc \
	manip/CTreeMatcher.cc \
	manip/MatchCollector.cc

LEMSOURCES += \
	manip/CMatchParser.lem
endif