diff options
| author | Loic Guegan <manzerberdes@gmx.com> | 2019-04-12 13:52:06 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerberdes@gmx.com> | 2019-04-12 13:52:06 +0200 |
| commit | 927283437161307a23a954b42297412ba03a619c (patch) | |
| tree | 38c0abc5ae8df4edd428b3662d733882d76ebdf3 /ns3-simulator/Makefile | |
| parent | 23e8f7f688da3df8d5b4d47e881865717141325c (diff) | |
Init final simulator source
Diffstat (limited to 'ns3-simulator/Makefile')
| -rw-r--r-- | ns3-simulator/Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ns3-simulator/Makefile b/ns3-simulator/Makefile new file mode 100644 index 0000000..c2e1d35 --- /dev/null +++ b/ns3-simulator/Makefile @@ -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) |
