Refactored to make benchmark part of the main program

This commit is contained in:
2020-07-09 00:00:33 -04:00
parent 89bb42d4d9
commit 6f55685f48
5 changed files with 73 additions and 68 deletions

View File

@@ -11,12 +11,10 @@ LIBS = $(patsubst %, -lProblem%,$(PROBLEM_NUMBERS))
#Linux makes
all: libsMulti ProjectEuler
libs: directory $(patsubst %, $(LIBDIR)/libProblem%.so,$(PROBLEM_NUMBERS))
benchmark: libsMulti ProjectEulerBenchmark
#Windows makes
windows: allWindows
allWindows: libsWindowsMulti ProjectEuler moveBin
libsWindows: directory $(patsubst %, $(LIBDIR)/libProblem%.a,$(PROBLEM_NUMBERS))
windowsBenchmark: libsWindowsMulti ProjectEulerBenchmark moveBin
#Non-build jobs
directory:
@@ -40,8 +38,6 @@ libsWindowsMulti:
#Building the executable
ProjectEuler: main.cpp
$(CXX) $(EXEFLAGS) -o $@.exe $< -L $(LIBDIR) $(LIBS) $(LINKEDLIBS)
ProjectEulerBenchmark: benchmark.cpp
$(CXX) $(EXEFLAGS) -o ProjectEuler.exe $< -L $(LIBDIR) $(LIBS) $(LINKEDLIBS)
#Clean up/Remove all files and folders created