diff options
| author | Loic Guegan <manzerberdes@gmx.com> | 2019-04-10 17:01:17 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerberdes@gmx.com> | 2019-04-10 17:01:17 +0200 |
| commit | 457e27d81d334081d003daa7fd1cc67d052c98fc (patch) | |
| tree | 188089a7e5be7cfd2adabbc15fc9b3ffbaffeb3d /ns-3_wifi_tests/Makefile | |
| parent | 62b56e52ace1239a97768f1b802d555f63c6e4a7 (diff) | |
Update org+add ns-3 wifi source code
Diffstat (limited to 'ns-3_wifi_tests/Makefile')
| -rw-r--r-- | ns-3_wifi_tests/Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
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 |
