Clean Makefile

This commit is contained in:
Loic Guegan 2021-05-06 09:09:54 +02:00
parent 4b321cfe80
commit 0ec9b3f334

View file

@ -1,14 +1,14 @@
EXEC := simulator EXEC := simulator
SG_LIBS := ./libs/simgrid/build/lib LIBS := ./libs/simgrid/build/lib
SG_INC := -I ./libs/simgrid/build/include -I ./libs/simgrid/include -I libs/rapidjson/include INCLUDES := ./libs/simgrid/build/include ./libs/simgrid/include libs/rapidjson/include
CC := g++ -lsimgrid $(SG_INC) -L $(SG_LIBS) CC := g++ -lsimgrid $(addprefix -L , $(LIBS)) $(addprefix -I , $(INCLUDES))
$(EXEC): src/simulator.cc src/inputs.cc $(EXEC): $(wildcard src/*)
$(CC) $^ -o $@ $(CC) $^ -o $@
run: $(EXEC) run: $(EXEC)
export LD_LIBRARY_PATH=$(SG_LIBS) && ./$(EXEC) 10 --cfg=network/bandwidth-factor:1.05 --cfg=network/model:CM02 -cfg=network/crosstraffic:0 export LD_LIBRARY_PATH=$(addprefix :, $(LIBS)) && ./$(EXEC) 10 --cfg=network/bandwidth-factor:1.05 --cfg=network/model:CM02 -cfg=network/crosstraffic:0
clean: clean:
-rm $(EXEC) -rm $(EXEC)