summaryrefslogtreecommitdiff
path: root/src/ns3/nix/simulator/Makefile
diff options
context:
space:
mode:
authorLoic Guegan <manzerberdes@gmx.com>2019-05-22 11:24:17 +0200
committerLoic Guegan <manzerberdes@gmx.com>2019-05-22 11:24:17 +0200
commit8bdcd37ac44fe96d2c59424a24752f87f0444e36 (patch)
treee31a0fe38c01bc6814a0b35474875fe538ea87c2 /src/ns3/nix/simulator/Makefile
parent5a77b67d6baae0414310d29cab6f240963866062 (diff)
Update paper
Diffstat (limited to 'src/ns3/nix/simulator/Makefile')
-rw-r--r--src/ns3/nix/simulator/Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/ns3/nix/simulator/Makefile b/src/ns3/nix/simulator/Makefile
new file mode 100644
index 0000000..63c0141
--- /dev/null
+++ b/src/ns3/nix/simulator/Makefile
@@ -0,0 +1,26 @@
+
+EXEC=simulator
+
+##### NS3 g++ Arguments
+NS3_ARGS= -D NS3_LOG_ENABLE -L ${NS3_PATH}/lib -I ${NS3_PATH}/include
+NS3_ARGS+=$(addprefix -l, $(subst lib,,$(subst .so,,$(notdir $(wildcard ${NS3_PATH}/lib/libns3*.so)))))
+NS3_VERSION="3.29"
+
+
+##### Source Files
+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++ -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}/lib\e[0m"
+
+clean:
+ - rm $(EXEC)
+
+
+.PHONY: clean