From 927283437161307a23a954b42297412ba03a619c Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Fri, 12 Apr 2019 13:52:06 +0200 Subject: Init final simulator source --- ns3-simulator/Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 ns3-simulator/Makefile (limited to 'ns3-simulator/Makefile') diff --git a/ns3-simulator/Makefile b/ns3-simulator/Makefile new file mode 100644 index 0000000..c2e1d35 --- /dev/null +++ b/ns3-simulator/Makefile @@ -0,0 +1,20 @@ + +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))))) + +SRC=main.cc modules/platform.cc modules/energy.cc modules/callbacks.cc +EXEC=simulator + +all: $(EXEC) + +$(EXEC): $(SRC) + g++ $(NS3_ARGS) $(SRC) -o $@ + +run: + @LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${NS3_PATH}/build/lib ./wifi-test + +export: + @echo export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${NS3_PATH}/build/lib + +clean: + - rm $(EXEC) -- cgit v1.2.3