-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
189 lines (165 loc) · 5.9 KB
/
Makefile
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
include Makefile.common
###---------------files used for the schedulers----------
SCHED_TREE = scheduler
SCHED_COMMON_SRCS =
SCHED_COMMON_HEADERS = $(SCHED_TREE)/common/
SCHEDULER_SRC_TREE = $(SCHED_TREE)/ScoreSchedulerDynamic
SCHEDULER_SRCS= $(SCHED_TREE)/ScoreSchedulerDynamic/ScoreSchedulerDynamic.cc \
$(SCHED_TREE)/ScoreSchedulerDynamic/ScoreSchedTemplate.cc \
$(SCHED_TREE)/ScoreSchedulerDynamic/ScoreSchedulerDynamic_util.cc \
$(SCHED_COMMON_SRCS)
SCHEDULER_INCLUDES = -I$(SCHED_TREE)/ScoreSchedulerDynamic -I$(SCHED_COMMON_HEADERS)
###------------------------------------------------------
#ScoreThreadCounter.cc \
SRCS = ScoreArray.cc \
ScoreArrayPhysicalStatus.cc \
ScoreCInterface.cc \
ScoreCluster.cc \
ScoreConfig.cc \
ScoreDummyDonePage.cc \
ScoreGraphNode.cc \
ScoreHardwareAPI.cc \
ScoreOperator.cc \
ScoreOperatorElement.cc \
ScoreOperatorInstance.cc \
ScoreOperatorInstanceElement.cc \
ScorePage.cc \
ScoreProcess.cc \
ScoreProcessorNode.cc \
ScoreRuntime.cc \
ScoreSegment.cc \
ScoreSegmentOperatorReadOnly.cc \
ScoreSegmentOperatorReadWrite.cc \
ScoreSegmentOperatorSeqReadOnly.cc \
ScoreSegmentOperatorSeqCyclicReadOnly.cc \
ScoreSegmentOperatorSeqReadWrite.cc \
ScoreSegmentOperatorSeqWriteOnly.cc \
ScoreSegmentOperatorWriteOnly.cc \
ScoreSegmentReadOnly.cc \
ScoreSegmentReadWrite.cc \
ScoreSegmentSeqReadOnly.cc \
ScoreSegmentSeqCyclicReadOnly.cc \
ScoreSegmentSeqReadWrite.cc \
ScoreSegmentSeqWriteOnly.cc \
ScoreSegmentStitch.cc \
ScoreSegmentTable.cc \
ScoreSegmentWriteOnly.cc \
ScoreSimulator.cc \
ScoreStream.cc \
ScoreStreamStitch.cc \
ScoreStreamType.cc \
ScoreSyncEvent.cc \
ScoreUserSupport.cc \
ScoreVisualization.cc \
ScoreGlobalCounter.cc \
ScorePlayer.cc \
ScoreFeedbackGraph.cc \
ScoreAccountingReconfigCmds.cc \
AllocationTracker.cc \
ScoreSharedObject_helper.cc \
ScoreProfiler.cc \
ScoreOperatorMangle.cc \
ScoreMangler.cc \
ScorePlock.cc \
$(SCHEDULER_SRCS)
RUNTIMESRCS = ScoreArray.cc \
ScoreArrayPhysicalStatus.cc \
ScoreCluster.cc \
ScoreConfig.cc \
ScoreDummyDonePage.cc \
ScoreGraphNode.cc \
ScoreHardwareAPI.cc \
ScoreOperatorElement.cc \
ScoreOperatorInstance.cc \
ScoreOperatorInstanceElement.cc \
ScorePage.cc \
ScoreProcess.cc \
ScoreProcessorNode.cc \
ScoreRuntime.cc \
ScoreSegment.cc \
ScoreSegmentReadOnly.cc \
ScoreSegmentReadWrite.cc \
ScoreSegmentSeqReadOnly.cc \
ScoreSegmentSeqCyclicReadOnly.cc \
ScoreSegmentSeqReadWrite.cc \
ScoreSegmentSeqWriteOnly.cc \
ScoreSegmentStitch.cc \
ScoreSegmentTable.cc \
ScoreSimulator.cc \
ScoreStream.cc \
ScoreStreamStitch.cc \
ScoreStreamType.cc \
ScoreSyncEvent.cc \
ScoreSegmentWriteOnly.cc \
ScoreVisualization.cc \
ScoreStateGraph.cc \
ScoreFeedbackGraph.cc \
ScoreAccountingReconfigCmds.cc \
ScoreGlobalCounter.cc \
AllocationTracker.cc \
ScoreProfiler.cc \
ScorePlock.cc \
$(SCHEDULER_SRCS)
USERSRCS = ScoreCInterface.cc \
ScoreGraphNode.cc \
ScoreOperator.cc \
ScoreOperatorElement.cc \
ScoreOperatorInstance.cc \
ScoreOperatorInstanceElement.cc \
ScorePage.cc \
ScoreSegment.cc \
ScoreSegmentOperatorReadOnly.cc \
ScoreSegmentOperatorReadWrite.cc \
ScoreSegmentOperatorSeqReadOnly.cc \
ScoreSegmentOperatorSeqCyclicReadOnly.cc \
ScoreSegmentOperatorSeqReadWrite.cc \
ScoreSegmentOperatorSeqWriteOnly.cc \
ScoreSegmentOperatorWriteOnly.cc \
ScoreSegmentReadOnly.cc \
ScoreSegmentReadWrite.cc \
ScoreSegmentSeqReadOnly.cc \
ScoreSegmentSeqCyclicReadOnly.cc \
ScoreSegmentSeqReadWrite.cc \
ScoreSegmentSeqWriteOnly.cc \
ScoreSegmentWriteOnly.cc \
ScoreStream.cc \
ScoreStreamType.cc \
ScoreGlobalCounter.cc \
ScoreUserSupport.cc \
ScoreOperatorMangle.cc \
AllocationTracker.cc \
ScorePlock.cc
RUNTIMEOBJS = $(addsuffix .o, $(basename $(RUNTIMESRCS)))
USEROBJS = $(addsuffix .o, $(basename $(USERSRCS)))
#the following variable should point to the current location of the xvcg
XVCG_LOCATION=/project/cs/brass/a/tools/free/vcg.1.30/bin/xvcg
.PHONY: export_defines
all: $(OBJS) ScoreRuntime libScoreRuntime.a force_instances ScorePlayer ScoreMangler
force_instances: libScoreRuntime.a
$(MAKE) TOOL_PATH=$(TOOL_PATH) -f Makefile.instance
ScoreRuntime: $(RUNTIMEOBJS)
$(CXX) $(GPROFFLAG) -o $@ $^ $(LIB) $(CXXFLAGS)
ScoreRuntime-efence: $(RUNTIMEOBJS)
$(CXX) -g -o $@ $^ $(LIB) -lefence
ScoreRuntime.a: $(USEROBJS)
$(AR) $(AR_OPTS) ScoreRuntime.a $^
libScoreRuntime.a: ScoreRuntime.a
rm -f libScoreRuntime.a
ln -s ScoreRuntime.a libScoreRuntime.a
ScorePlayer: ScorePlayer.o ScoreStateGraph.o libScoreRuntime.a
$(CXX) -o $@ $^ -L. -lScoreRuntime $(LIB)
ScoreMangler: ScoreMangler.o ScoreOperatorMangle.o
$(CXX) -o $@ $^
%.o: %.cc
$(CXX) -Wno-write-strings -fPIC -c $(CXXFLAGS) $(INCLUDE) $< -o $@
clean:
rm -f Makefile.dep
rm -f Makefile.instance.dep
rm -f *.o ScoreRuntime ScoreRuntime-efence *.a ScorePlayer \
$(addsuffix /*.o, $(SCHEDULER_SRC_TREE))
$(MAKE) -f Makefile.instance clean
depend:
rm -f Makefile.dep
$(CXX) -MM $(CXXFLAGS) $(INCLUDE) $(SRCS) | ./correct_deps.pl > Makefile.dep
$(MAKE) -f Makefile.instance depend
-include Makefile.dep