summaryrefslogtreecommitdiff
path: root/ns3-simulations/ns3-simulator/Makefile
diff options
context:
space:
mode:
authorLoic Guegan <manzerberdes@gmx.com>2019-04-25 15:51:05 +0200
committerLoic Guegan <manzerberdes@gmx.com>2019-04-25 15:51:05 +0200
commita6e70544bb28c209891ea5335be0d2939f0737d6 (patch)
tree361f3989128bff0633fd956b00f10ce7ee629003 /ns3-simulations/ns3-simulator/Makefile
parent1399886f4d56370d713ba3262b83df1df008d2a7 (diff)
Start some simulation tests
Diffstat (limited to 'ns3-simulations/ns3-simulator/Makefile')
-rw-r--r--ns3-simulations/ns3-simulator/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/ns3-simulations/ns3-simulator/Makefile b/ns3-simulations/ns3-simulator/Makefile
index d7bf341..a9cee83 100644
--- a/ns3-simulations/ns3-simulator/Makefile
+++ b/ns3-simulations/ns3-simulator/Makefile
@@ -4,6 +4,7 @@ EXEC=simulator
##### NS3 g++ Arguments
NS3_ARGS= -D NS3_LOG_ENABLE -L ${NS3_PATH}/build/lib -I ${NS3_PATH}/build/
NS3_ARGS+=$(addprefix -l, $(subst lib,,$(subst .so,,$(notdir $(wildcard ${NS3_PATH}/build/lib/*.so)))))
+NS3_VERSION=$(shell cat ${NS3_PATH}/VERSION)
##### Source Files
SRC=main.cc modules/platform.cc modules/energy.cc modules/callbacks.cc
@@ -11,10 +12,9 @@ SRC=main.cc modules/platform.cc modules/energy.cc modules/callbacks.cc
all: $(EXEC)
-
$(EXEC): $(SRC)
@echo -e "\e[32mDon't forget to define NS3_PATH env variable !\e[0m"
- g++ $(NS3_ARGS) $(SRC) -o $@
+ g++ -D NS3_VERSION=${NS3_VERSION} $(NS3_ARGS) $(SRC) -o $@
@echo -e "\e[32mRun the following command before running $(EXEC):\e[0m"
@echo -e "\e[32mexport LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${NS3_PATH}/build/lib\e[0m"