2021-05-05 16:42:11 +02:00
|
|
|
|
EXEC := simulator
|
2021-05-06 09:09:54 +02:00
|
|
|
|
LIBS := ./libs/simgrid/build/lib
|
|
|
|
|
INCLUDES := ./libs/simgrid/build/include ./libs/simgrid/include libs/rapidjson/include
|
2021-05-08 13:38:43 +02:00
|
|
|
|
SCENARIOS := src/scenarios.cc
|
|
|
|
|
CC := g++ $(addprefix -L , $(LIBS)) $(addprefix -I , $(INCLUDES))
|
2021-05-05 16:42:11 +02:00
|
|
|
|
|
2021-05-08 13:38:43 +02:00
|
|
|
|
all: $(EXEC) $(basename $(notdir $(SCENARIOS)))
|
2021-05-05 16:42:11 +02:00
|
|
|
|
|
2021-05-08 13:38:43 +02:00
|
|
|
|
$(EXEC): $(filter-out $(SCENARIOS), $(wildcard src/*))
|
|
|
|
|
$(CC) -lsimgrid $^ -o $@
|
|
|
|
|
|
|
|
|
|
$(basename $(notdir $(SCENARIOS))): $(SCENARIOS)
|
2021-05-05 16:42:11 +02:00
|
|
|
|
$(CC) $^ -o $@
|
|
|
|
|
|
|
|
|
|
run: $(EXEC)
|
2021-05-06 09:09:54 +02:00
|
|
|
|
export LD_LIBRARY_PATH=$(addprefix :, $(LIBS)) && ./$(EXEC) 10 --cfg=network/bandwidth-factor:1.05 --cfg=network/model:CM02 -–cfg=network/crosstraffic:0
|
2021-05-05 16:42:11 +02:00
|
|
|
|
|
|
|
|
|
clean:
|
2021-05-08 13:38:43 +02:00
|
|
|
|
-rm $(EXEC) $(basename $(notdir $(SCENARIOS)))
|