Init final simulator source

This commit is contained in:
Loic Guegan 2019-04-12 13:52:06 +02:00
parent 23e8f7f688
commit 9272834371
7 changed files with 302 additions and 0 deletions

20
ns3-simulator/Makefile Normal file
View 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)