-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
396 lines (368 loc) · 12.6 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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
#
# OMNeT++/OMNEST Makefile for ccnSim
#
# This file was generated with the command:
# opp_makemake --deep -f -X ./patch/ -X scripts/ -X networks/ -X modules/ -o ccnSim -X results/ -X ini/ -X manual/ -X doc/ -X file_routing/ -X ccn14distrib/ -X ccn14scripts/
#
# Name of target to be created (-o option)
TARGET = ccnSim$(EXE_SUFFIX)
# User interface (uncomment one) (-u option)
USERIF_LIBS = $(ALL_ENV_LIBS) # that is, $(TKENV_LIBS) $(CMDENV_LIBS)
#USERIF_LIBS = $(CMDENV_LIBS)
#USERIF_LIBS = $(TKENV_LIBS)
# C++ include paths (with -I)
INCLUDE_PATH = \
-I. \
-Iinclude \
-Iinclude/cost_related_decision_policies \
-Ipackets \
-Isrc \
-Isrc/clients \
-Isrc/content \
-Isrc/node \
-Isrc/node/cache \
-Isrc/node/strategy \
-Isrc/statistics
# Additional object and library files to link with
EXTRA_OBJS =
# Additional libraries (-L, -l options)
LIBS =
# Output directory
PROJECT_OUTPUT_DIR = out
PROJECTRELATIVE_PATH =
O = $(PROJECT_OUTPUT_DIR)/$(CONFIGNAME)/$(PROJECTRELATIVE_PATH)
# Object files for local .cc and .msg files
OBJS = \
$O/src/error_handling.o \
$O/src/clients/client.o \
$O/src/clients/client_IRM.o \
$O/src/clients/client_GeographicalLocality.o \
$O/src/content/content_distribution.o \
$O/src/content/GeographicalLocalityContentDistribution.o \
$O/src/content/zipf.o \
$O/src/content/zipf_sampled.o \
$O/src/node/core_layer.o \
$O/src/node/cache/base_cache.o \
$O/src/node/cache/fifo_cache.o \
$O/src/node/cache/lru_cache.o \
$O/src/node/cache/k2lru_cache.o \
$O/src/node/cache/random_cache.o \
$O/src/node/cache/two_cache.o \
$O/src/node/strategy/MonopathStrategyLayer.o \
$O/src/node/strategy/MultipathStrategyLayer.o \
$O/src/node/strategy/nrr.o \
$O/src/node/strategy/nrr1.o \
$O/src/node/strategy/parallel_repository.o \
$O/src/node/strategy/ProbabilisticSplitStrategy.o \
$O/src/node/strategy/random_repository.o \
$O/src/node/strategy/spr.o \
$O/src/node/strategy/strategy_layer.o \
$O/src/statistics/statistics.o \
$O/packets/ccn_data_m.o \
$O/packets/ccn_interest_m.o
# Message files
MSGFILES = \
packets/ccn_data.msg \
packets/ccn_interest.msg
#------------------------------------------------------------------------------
# Pull in OMNeT++ configuration (Makefile.inc or configuser.vc)
ifneq ("$(OMNETPP_CONFIGFILE)","")
CONFIGFILE = $(OMNETPP_CONFIGFILE)
else
ifneq ("$(OMNETPP_ROOT)","")
CONFIGFILE = $(OMNETPP_ROOT)/Makefile.inc
else
CONFIGFILE = $(shell opp_configfilepath)
endif
endif
ifeq ("$(wildcard $(CONFIGFILE))","")
$(error Config file '$(CONFIGFILE)' does not exist -- add the OMNeT++ bin directory to the path so that opp_configfilepath can be found, or set the OMNETPP_CONFIGFILE variable to point to Makefile.inc)
endif
include $(CONFIGFILE)
# Simulation kernel and user interface libraries
OMNETPP_LIB_SUBDIR = $(OMNETPP_LIB_DIR)/$(TOOLCHAIN_NAME)
OMNETPP_LIBS = -L"$(OMNETPP_LIB_SUBDIR)" -L"$(OMNETPP_LIB_DIR)" -loppmain$D $(USERIF_LIBS) $(KERNEL_LIBS) $(SYS_LIBS)
COPTS = $(CFLAGS) $(INCLUDE_PATH) -I$(OMNETPP_INCL_DIR)
MSGCOPTS = $(INCLUDE_PATH)
# we want to recompile everything if COPTS changes,
# so we store COPTS into $COPTS_FILE and have object
# files depend on it (except when "make depend" was called)
COPTS_FILE = $O/.last-copts
ifneq ($(MAKECMDGOALS),depend)
ifneq ("$(COPTS)","$(shell cat $(COPTS_FILE) 2>/dev/null || echo '')")
$(shell $(MKPATH) "$O" && echo "$(COPTS)" >$(COPTS_FILE))
endif
endif
#------------------------------------------------------------------------------
# User-supplied makefile fragment(s)
# >>>
# <<<
#------------------------------------------------------------------------------
# Main target
all: $O/$(TARGET)
$(Q)$(LN) $O/$(TARGET) .
$O/$(TARGET): $(OBJS) $(wildcard $(EXTRA_OBJS)) Makefile
@$(MKPATH) $O
@echo Creating executable: $@
$(Q)$(CXX) $(LDFLAGS) -o $O/$(TARGET) $(OBJS) $(EXTRA_OBJS) $(AS_NEEDED_OFF) $(WHOLE_ARCHIVE_ON) $(LIBS) $(WHOLE_ARCHIVE_OFF) $(OMNETPP_LIBS)
.PHONY: all clean cleanall depend msgheaders
.SUFFIXES: .cc
$O/%.o: %.cc $(COPTS_FILE)
@$(MKPATH) $(dir $@)
$(qecho) "$<"
$(Q)$(CXX) -c $(CXXFLAGS) $(COPTS) -o $@ $<
%_m.cc %_m.h: %.msg
$(qecho) MSGC: $<
$(Q)$(MSGC) -s _m.cc $(MSGCOPTS) $?
msgheaders: $(MSGFILES:.msg=_m.h)
clean:
$(qecho) Cleaning...
$(Q)-rm -rf $O
$(Q)-rm -f ccnSim ccnSim.exe libccnSim.so libccnSim.a libccnSim.dll libccnSim.dylib
$(Q)-rm -f ./*_m.cc ./*_m.h
$(Q)-rm -f include/*_m.cc include/*_m.h
$(Q)-rm -f include/cost_related_decision_policies/*_m.cc include/cost_related_decision_policies/*_m.h
$(Q)-rm -f packets/*_m.cc packets/*_m.h
$(Q)-rm -f src/*_m.cc src/*_m.h
$(Q)-rm -f src/clients/*_m.cc src/clients/*_m.h
$(Q)-rm -f src/content/*_m.cc src/content/*_m.h
$(Q)-rm -f src/node/*_m.cc src/node/*_m.h
$(Q)-rm -f src/node/cache/*_m.cc src/node/cache/*_m.h
$(Q)-rm -f src/node/strategy/*_m.cc src/node/strategy/*_m.h
$(Q)-rm -f src/statistics/*_m.cc src/statistics/*_m.h
cleanall: clean
$(Q)-rm -rf $(PROJECT_OUTPUT_DIR)
depend:
$(qecho) Creating dependencies...
$(Q)$(MAKEDEPEND) $(INCLUDE_PATH) -f Makefile -P\$$O/ -- $(MSG_CC_FILES) ./*.cc include/*.cc include/cost_related_decision_policies/*.cc packets/*.cc src/*.cc src/clients/*.cc src/content/*.cc src/node/*.cc src/node/cache/*.cc src/node/strategy/*.cc src/statistics/*.cc
# DO NOT DELETE THIS LINE -- make depend depends on it.
$O/src/error_handling.o: src/error_handling.cc \
include/error_handling.h
$O/src/clients/client.o: src/clients/client.cc \
include/ccn_data.h \
packets/ccn_data_m.h \
include/ccnsim.h \
include/zipf.h \
include/zipf_sampled.h \
include/ccn_interest.h \
include/error_handling.h \
include/client.h \
include/statistics.h \
packets/ccn_interest_m.h \
include/content_distribution.h
$O/src/clients/client_IRM.o: src/clients/client_IRM.cc \
include/ccnsim.h \
include/statistics.h \
include/error_handling.h \
packets/ccn_data_m.h \
include/client.h \
include/zipf_sampled.h \
include/zipf.h \
include/ccn_data.h \
include/ccn_interest.h \
include/client_IRM.h \
include/content_distribution.h \
packets/ccn_interest_m.h
$O/src/clients/client_GeographicalLocality.o: src/clients/client_GeographicalLocality.cc \
include/ccn_interest.h \
include/content_distribution.h \
include/ccn_data.h \
include/zipf.h \
include/GeographicalLocalityContentDistribution.h \
packets/ccn_interest_m.h \
include/zipf_sampled.h \
packets/ccn_data_m.h \
include/client.h \
include/statistics.h \
include/ccnsim.h \
include/client_GeographicalLocality.h \
include/error_handling.h
$O/src/content/GeographicalLocalityContentDistribution.o: src/content/GeographicalLocalityContentDistribution.cc \
include/client.h \
include/error_handling.h \
include/ccnsim.h \
include/GeographicalLocalityContentDistribution.h \
include/zipf.h \
include/content_distribution.h \
include/core_layer.h \
include/zipf_sampled.h
$O/src/content/content_distribution.o: src/content/content_distribution.cc \
include/error_handling.h \
include/client.h \
include/zipf.h \
include/ccnsim.h \
include/GeographicalLocalityContentDistribution.h \
include/content_distribution.h
$O/src/content/zipf.o: src/content/zipf.cc \
include/zipf.h
$O/src/content/zipf_sampled.o: src/content/zipf_sampled.cc \
include/client.h \
include/error_handling.h \
include/statistics.h \
include/ccnsim.h \
include/zipf_sampled.h
$O/src/node/core_layer.o: src/node/core_layer.cc \
packets/ccn_interest_m.h \
include/base_cache.h \
include/content_distribution.h \
include/core_layer.h \
include/strategy_layer.h \
include/client.h \
include/ccn_interest.h \
include/error_handling.h \
include/ccnsim.h \
packets/ccn_data_m.h \
include/zipf.h \
include/ccn_data.h
$O/src/node/cache/base_cache.o: src/node/cache/base_cache.cc \
include/lcd_policy.h \
include/decision_policy.h \
include/base_cache.h \
include/cost_related_decision_policies/costaware_ancestor_policy.h \
include/fix_policy.h \
include/content_distribution.h \
include/core_layer.h \
include/always_policy.h \
include/cost_related_decision_policies/ideal_costaware_policy.h \
include/error_handling.h \
include/ccnsim.h \
packets/ccn_data_m.h \
include/cost_related_decision_policies/ideal_blind_policy.h \
include/ccn_data.h \
include/prob_cache.h \
include/lru_cache.h \
include/k2lru_cache.h \
include/cost_related_decision_policies/costaware_parent_policy.h \
include/cost_related_decision_policies/costaware_policy.h \
include/cost_related_decision_policies/ideal_costaware_grandparent_policy.h \
include/cost_related_decision_policies/ideal_costaware_parent_policy.h \
include/never_policy.h \
include/statistics.h \
include/client.h \
include/zipf.h \
include/betweenness_centrality.h
$O/src/node/cache/fifo_cache.o: src/node/cache/fifo_cache.cc \
include/base_cache.h \
include/ccnsim.h \
include/fifo_cache.h \
include/client.h
$O/src/node/cache/lru_cache.o: src/node/cache/lru_cache.cc \
include/lru_cache.h \
include/client.h \
include/base_cache.h \
include/ccnsim.h \
include/error_handling.h
$O/src/node/cache/k2lru_cache.o: src/node/cache/k2lru_cache.cc \
include/k2lru_cache.h \
include/client.h \
include/base_cache.h \
include/ccnsim.h \
include/error_handling.h
$O/src/node/cache/random_cache.o: src/node/cache/random_cache.cc \
include/client.h \
include/base_cache.h \
include/random_cache.h \
include/ccnsim.h
$O/src/node/cache/two_cache.o: src/node/cache/two_cache.cc \
include/base_cache.h \
include/ccnsim.h \
include/client.h \
include/two_cache.h
$O/src/node/strategy/MonopathStrategyLayer.o: src/node/strategy/MonopathStrategyLayer.cc \
include/strategy_layer.h \
include/client.h \
include/MonopathStrategyLayer.h \
include/error_handling.h \
include/ccnsim.h
$O/src/node/strategy/MultipathStrategyLayer.o: src/node/strategy/MultipathStrategyLayer.cc \
include/ccnsim.h \
include/error_handling.h \
include/client.h \
include/strategy_layer.h \
include/MultipathStrategyLayer.h
$O/src/node/strategy/ProbabilisticSplitStrategy.o: src/node/strategy/ProbabilisticSplitStrategy.cc \
include/content_distribution.h \
include/base_cache.h \
include/ccnsim.h \
include/error_handling.h \
include/MultipathStrategyLayer.h \
include/ProbabilisticSplitStrategy.h \
packets/ccn_interest_m.h \
include/zipf.h \
include/client.h \
include/ccn_interest.h \
include/strategy_layer.h
$O/src/node/strategy/nrr.o: src/node/strategy/nrr.cc \
include/base_cache.h \
include/content_distribution.h \
include/MonopathStrategyLayer.h \
include/ccnsim.h \
include/error_handling.h \
packets/ccn_interest_m.h \
include/strategy_layer.h \
include/zipf.h \
include/ccn_interest.h \
include/client.h \
include/nrr.h
$O/src/node/strategy/nrr1.o: src/node/strategy/nrr1.cc \
include/ccnsim.h \
include/error_handling.h \
include/content_distribution.h \
include/MonopathStrategyLayer.h \
include/zipf.h \
include/client.h \
include/ccn_interest.h \
include/nrr1.h \
include/strategy_layer.h \
packets/ccn_interest_m.h
$O/src/node/strategy/parallel_repository.o: src/node/strategy/parallel_repository.cc \
packets/ccn_interest_m.h \
include/strategy_layer.h \
include/zipf.h \
include/client.h \
include/ccn_interest.h \
include/content_distribution.h \
include/MonopathStrategyLayer.h \
include/parallel_repository.h \
include/ccnsim.h \
include/error_handling.h
$O/src/node/strategy/random_repository.o: src/node/strategy/random_repository.cc \
include/zipf.h \
include/ccn_interest.h \
include/client.h \
include/strategy_layer.h \
packets/ccn_interest_m.h \
include/ccnsim.h \
include/error_handling.h \
include/MonopathStrategyLayer.h \
include/content_distribution.h \
include/random_repository.h
$O/src/node/strategy/spr.o: src/node/strategy/spr.cc \
packets/ccn_interest_m.h \
include/strategy_layer.h \
include/zipf.h \
include/client.h \
include/ccn_interest.h \
include/content_distribution.h \
include/MonopathStrategyLayer.h \
include/ccnsim.h \
include/error_handling.h \
include/spr.h
$O/src/node/strategy/strategy_layer.o: src/node/strategy/strategy_layer.cc \
include/client.h \
include/strategy_layer.h \
include/ccnsim.h \
include/error_handling.h
$O/src/statistics/statistics.o: src/statistics/statistics.cc \
include/lru_cache.h \
include/k2lru_cache.h \
include/zipf.h \
include/client.h \
include/client_IRM.h \
include/statistics.h \
include/base_cache.h \
include/core_layer.h \
include/content_distribution.h \
include/GeographicalLocalityContentDistribution.h \
include/ccnsim.h \
include/error_handling.h