From 457e27d81d334081d003daa7fd1cc67d052c98fc Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Wed, 10 Apr 2019 17:01:17 +0200 Subject: Update org+add ns-3 wifi source code --- ns-3_wifi_tests/Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 ns-3_wifi_tests/Makefile (limited to 'ns-3_wifi_tests/Makefile') diff --git a/ns-3_wifi_tests/Makefile b/ns-3_wifi_tests/Makefile new file mode 100644 index 0000000..03f9ab6 --- /dev/null +++ b/ns-3_wifi_tests/Makefile @@ -0,0 +1,17 @@ + +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))))) + +all: wifi-test + +wifi-test: wifi-test.cc + g++ $(NS3_ARGS) $^ -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 wifi-test -- cgit v1.2.3