mirror of
https://gitlab.com/manzerbredes/paper-lowrate-iot.git
synced 2025-05-01 09:27:45 +00:00
Init final simulator source
This commit is contained in:
parent
23e8f7f688
commit
9272834371
7 changed files with 302 additions and 0 deletions
20
ns3-simulator/Makefile
Normal file
20
ns3-simulator/Makefile
Normal file
|
@ -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)
|
Loading…
Add table
Add a link
Reference in a new issue