From f9d8e59ebbd697948f718f295bafa492f2d0947c Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Sat, 4 May 2019 11:52:18 +0200 Subject: Simplify nix source code --- ns3-simulations/nix/simulator/src/Makefile | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 ns3-simulations/nix/simulator/src/Makefile (limited to 'ns3-simulations/nix/simulator/src/Makefile') diff --git a/ns3-simulations/nix/simulator/src/Makefile b/ns3-simulations/nix/simulator/src/Makefile deleted file mode 100644 index ffe03a4..0000000 --- a/ns3-simulations/nix/simulator/src/Makefile +++ /dev/null @@ -1,26 +0,0 @@ - -EXEC=simulator - -##### NS3 g++ Arguments -NS3_ARGS= -D NS3_LOG_ENABLE -L ${NS3_PATH}/lib -I ${NS3_PATH}/include -NS3_ARGS+=$(addprefix -l, $(subst lib,,$(subst .so,,$(notdir $(wildcard ${NS3_PATH}/lib/libns3*.so))))) -NS3_VERSION="3.29" - - -##### Source Files -SRC=main.cc modules/platform.cc modules/energy.cc modules/callbacks.cc - - -all: $(EXEC) - -$(EXEC): $(SRC) - @echo -e "\e[32mDon't forget to define NS3_PATH env variable !\e[0m" - g++ -g -D NS3_VERSION=${NS3_VERSION} $(NS3_ARGS) $(SRC) -o $@ - @echo -e "\e[32mRun the following command before running $(EXEC):\e[0m" - @echo -e "\e[32mexport LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${NIX}/lib\e[0m" - -clean: - - rm $(EXEC) - - -.PHONY: clean -- cgit v1.2.3