mirror of
https://gitlab.com/manzerbredes/paper-lowrate-iot.git
synced 2025-06-07 07:07:40 +00:00
Update org+add ns-3 wifi source code
This commit is contained in:
parent
62b56e52ac
commit
457e27d81d
4 changed files with 166 additions and 1 deletions
17
ns-3_wifi_tests/Makefile
Normal file
17
ns-3_wifi_tests/Makefile
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue