Loading src/Makefile +0 −19 Original line number Original line Diff line number Diff line SUBDIRS := cluster sphere trapping SUBDIRS := cluster sphere trapping SRCDIR=$(PWD) SRCDIR=$(PWD) BUILDDIR=$(SRCDIR)/../build BUILDDIR=$(SRCDIR)/../build CC=g++ all: $(SUBDIRS) all: $(SUBDIRS) $(SUBDIRS): $(SUBDIRS): $(MAKE) -C $@ $(MAKE) -C $@ np_sphere: $(BUILDDIR)/sphere/np_sphere.o $(BUILDDIR)/sphere/Commons.o $(BUILDDIR)/sphere/Configuration.o $(BUILDDIR)/sphere/Parsers.o $(BUILDDIR)/sphere/sphere.o $(CC) -o $(BUILDDIR)/sphere/np_sphere $(BUILDDIR)/sphere/np_sphere.o $(BUILDDIR)/sphere/Commons.o $(BUILDDIR)/sphere/Configuration.o $(BUILDDIR)/sphere/Parsers.o $(BUILDDIR)/sphere/sphere.o clean: clean: rm -f $(BUILDDIR)/cluster/*.o rm -f $(BUILDDIR)/cluster/*.o rm -f $(BUILDDIR)/sphere/*.o rm -f $(BUILDDIR)/sphere/*.o Loading @@ -22,18 +18,3 @@ wipe: rm -f $(BUILDDIR)/trapping/* rm -f $(BUILDDIR)/trapping/* .PHONY: all $(SUBDIRS) .PHONY: all $(SUBDIRS) $(BUILDDIR)/sphere/np_sphere.o: $(CC) -c np_sphere.cpp -o $(BUILDDIR)/sphere/np_sphere.o $(BUILDDIR)/sphere/Commons.o: $(CC) -c Commons.cpp -o $(BUILDDIR)/sphere/Commons.o $(BUILDDIR)/sphere/Configuration.o: $(CC) -c Configuration.cpp -o $(BUILDDIR)/sphere/Configuration.o $(BUILDDIR)/sphere/Parsers.o: $(CC) -c Parsers.cpp -o $(BUILDDIR)/sphere/Parsers.o $(BUILDDIR)/sphere/sphere.o: $(CC) -c sphere/sphere.cpp -o $(BUILDDIR)/sphere/sphere.o src/Commons.cpp→src/libnptm/Commons.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -2,7 +2,7 @@ * * */ */ #include "include/Commons.h" #include "../include/Commons.h" using namespace std; using namespace std; Loading src/Configuration.cpp→src/libnptm/Configuration.cpp +3 −3 Original line number Original line Diff line number Diff line Loading @@ -5,9 +5,9 @@ #include <cstdio> #include <cstdio> #include <fstream> #include <fstream> #include <string> #include <string> #include "include/List.h" #include "../include/List.h" #include "include/Parsers.h" #include "../include/Parsers.h" #include "include/Configuration.h" #include "../include/Configuration.h" using namespace std; using namespace std; Loading src/Parsers.cpp→src/libnptm/Parsers.cpp +2 −2 Original line number Original line Diff line number Diff line Loading @@ -3,8 +3,8 @@ #include <fstream> #include <fstream> #include <string> #include <string> #include "include/List.h" #include "../include/List.h" #include "include/Parsers.h" #include "../include/Parsers.h" std::string *load_file(std::string file_name, int *count = 0) { std::string *load_file(std::string file_name, int *count = 0) { std::fstream input_file(file_name.c_str(), std::ios::in); std::fstream input_file(file_name.c_str(), std::ios::in); Loading src/sphere/Makefile +22 −1 Original line number Original line Diff line number Diff line Loading @@ -2,8 +2,11 @@ BUILDDIR=../../build/sphere FC=gfortran FC=gfortran FCFLAGS=-std=legacy -O3 FCFLAGS=-std=legacy -O3 LFLAGS= LFLAGS= CXX=g++ CXXFLAGS=-O0 -ggdb -pg -coverage CXXLFLAGS= all: edfb sph all: edfb sph np_sphere edfb: edfb.o edfb: edfb.o $(FC) $(FCFLAGS) -o $(BUILDDIR)/edfb $(BUILDDIR)/edfb.o $(LFLAGS) $(FC) $(FCFLAGS) -o $(BUILDDIR)/edfb $(BUILDDIR)/edfb.o $(LFLAGS) Loading @@ -11,6 +14,24 @@ edfb: edfb.o sph: sph.o sph: sph.o $(FC) $(FCFLAGS) -o $(BUILDDIR)/sph $(BUILDDIR)/sph.o $(LFLAGS) $(FC) $(FCFLAGS) -o $(BUILDDIR)/sph $(BUILDDIR)/sph.o $(LFLAGS) np_sphere: $(BUILDDIR)/np_sphere.o $(BUILDDIR)/Commons.o $(BUILDDIR)/Configuration.o $(BUILDDIR)/Parsers.o $(BUILDDIR)/sphere.o $(CXX) $(CXXFLAGS) $(CXXLFLAGS) -o $(BUILDDIR)/np_sphere $(BUILDDIR)/np_sphere.o $(BUILDDIR)/Commons.o $(BUILDDIR)/Configuration.o $(BUILDDIR)/Parsers.o $(BUILDDIR)/sphere.o $(BUILDDIR)/np_sphere.o: $(CXX) $(CXXFLAGS) -c ../np_sphere.cpp -o $(BUILDDIR)/np_sphere.o $(BUILDDIR)/Commons.o: $(CXX) $(CXXFLAGS) -c ../libnptm/Commons.cpp -o $(BUILDDIR)/Commons.o $(BUILDDIR)/Configuration.o: $(CXX) $(CXXFLAGS) -c ../libnptm/Configuration.cpp -o $(BUILDDIR)/Configuration.o $(BUILDDIR)/Parsers.o: $(CXX) $(CXXFLAGS) -c ../libnptm/Parsers.cpp -o $(BUILDDIR)/Parsers.o $(BUILDDIR)/sphere.o: $(CXX) $(CXXFLAGS) -c sphere.cpp -o $(BUILDDIR)/sphere.o clean: clean: rm -f $(BUILDDIR)/*.o rm -f $(BUILDDIR)/*.o Loading Loading
src/Makefile +0 −19 Original line number Original line Diff line number Diff line SUBDIRS := cluster sphere trapping SUBDIRS := cluster sphere trapping SRCDIR=$(PWD) SRCDIR=$(PWD) BUILDDIR=$(SRCDIR)/../build BUILDDIR=$(SRCDIR)/../build CC=g++ all: $(SUBDIRS) all: $(SUBDIRS) $(SUBDIRS): $(SUBDIRS): $(MAKE) -C $@ $(MAKE) -C $@ np_sphere: $(BUILDDIR)/sphere/np_sphere.o $(BUILDDIR)/sphere/Commons.o $(BUILDDIR)/sphere/Configuration.o $(BUILDDIR)/sphere/Parsers.o $(BUILDDIR)/sphere/sphere.o $(CC) -o $(BUILDDIR)/sphere/np_sphere $(BUILDDIR)/sphere/np_sphere.o $(BUILDDIR)/sphere/Commons.o $(BUILDDIR)/sphere/Configuration.o $(BUILDDIR)/sphere/Parsers.o $(BUILDDIR)/sphere/sphere.o clean: clean: rm -f $(BUILDDIR)/cluster/*.o rm -f $(BUILDDIR)/cluster/*.o rm -f $(BUILDDIR)/sphere/*.o rm -f $(BUILDDIR)/sphere/*.o Loading @@ -22,18 +18,3 @@ wipe: rm -f $(BUILDDIR)/trapping/* rm -f $(BUILDDIR)/trapping/* .PHONY: all $(SUBDIRS) .PHONY: all $(SUBDIRS) $(BUILDDIR)/sphere/np_sphere.o: $(CC) -c np_sphere.cpp -o $(BUILDDIR)/sphere/np_sphere.o $(BUILDDIR)/sphere/Commons.o: $(CC) -c Commons.cpp -o $(BUILDDIR)/sphere/Commons.o $(BUILDDIR)/sphere/Configuration.o: $(CC) -c Configuration.cpp -o $(BUILDDIR)/sphere/Configuration.o $(BUILDDIR)/sphere/Parsers.o: $(CC) -c Parsers.cpp -o $(BUILDDIR)/sphere/Parsers.o $(BUILDDIR)/sphere/sphere.o: $(CC) -c sphere/sphere.cpp -o $(BUILDDIR)/sphere/sphere.o
src/Commons.cpp→src/libnptm/Commons.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -2,7 +2,7 @@ * * */ */ #include "include/Commons.h" #include "../include/Commons.h" using namespace std; using namespace std; Loading
src/Configuration.cpp→src/libnptm/Configuration.cpp +3 −3 Original line number Original line Diff line number Diff line Loading @@ -5,9 +5,9 @@ #include <cstdio> #include <cstdio> #include <fstream> #include <fstream> #include <string> #include <string> #include "include/List.h" #include "../include/List.h" #include "include/Parsers.h" #include "../include/Parsers.h" #include "include/Configuration.h" #include "../include/Configuration.h" using namespace std; using namespace std; Loading
src/Parsers.cpp→src/libnptm/Parsers.cpp +2 −2 Original line number Original line Diff line number Diff line Loading @@ -3,8 +3,8 @@ #include <fstream> #include <fstream> #include <string> #include <string> #include "include/List.h" #include "../include/List.h" #include "include/Parsers.h" #include "../include/Parsers.h" std::string *load_file(std::string file_name, int *count = 0) { std::string *load_file(std::string file_name, int *count = 0) { std::fstream input_file(file_name.c_str(), std::ios::in); std::fstream input_file(file_name.c_str(), std::ios::in); Loading
src/sphere/Makefile +22 −1 Original line number Original line Diff line number Diff line Loading @@ -2,8 +2,11 @@ BUILDDIR=../../build/sphere FC=gfortran FC=gfortran FCFLAGS=-std=legacy -O3 FCFLAGS=-std=legacy -O3 LFLAGS= LFLAGS= CXX=g++ CXXFLAGS=-O0 -ggdb -pg -coverage CXXLFLAGS= all: edfb sph all: edfb sph np_sphere edfb: edfb.o edfb: edfb.o $(FC) $(FCFLAGS) -o $(BUILDDIR)/edfb $(BUILDDIR)/edfb.o $(LFLAGS) $(FC) $(FCFLAGS) -o $(BUILDDIR)/edfb $(BUILDDIR)/edfb.o $(LFLAGS) Loading @@ -11,6 +14,24 @@ edfb: edfb.o sph: sph.o sph: sph.o $(FC) $(FCFLAGS) -o $(BUILDDIR)/sph $(BUILDDIR)/sph.o $(LFLAGS) $(FC) $(FCFLAGS) -o $(BUILDDIR)/sph $(BUILDDIR)/sph.o $(LFLAGS) np_sphere: $(BUILDDIR)/np_sphere.o $(BUILDDIR)/Commons.o $(BUILDDIR)/Configuration.o $(BUILDDIR)/Parsers.o $(BUILDDIR)/sphere.o $(CXX) $(CXXFLAGS) $(CXXLFLAGS) -o $(BUILDDIR)/np_sphere $(BUILDDIR)/np_sphere.o $(BUILDDIR)/Commons.o $(BUILDDIR)/Configuration.o $(BUILDDIR)/Parsers.o $(BUILDDIR)/sphere.o $(BUILDDIR)/np_sphere.o: $(CXX) $(CXXFLAGS) -c ../np_sphere.cpp -o $(BUILDDIR)/np_sphere.o $(BUILDDIR)/Commons.o: $(CXX) $(CXXFLAGS) -c ../libnptm/Commons.cpp -o $(BUILDDIR)/Commons.o $(BUILDDIR)/Configuration.o: $(CXX) $(CXXFLAGS) -c ../libnptm/Configuration.cpp -o $(BUILDDIR)/Configuration.o $(BUILDDIR)/Parsers.o: $(CXX) $(CXXFLAGS) -c ../libnptm/Parsers.cpp -o $(BUILDDIR)/Parsers.o $(BUILDDIR)/sphere.o: $(CXX) $(CXXFLAGS) -c sphere.cpp -o $(BUILDDIR)/sphere.o clean: clean: rm -f $(BUILDDIR)/*.o rm -f $(BUILDDIR)/*.o Loading