mirror of
https://bitbucket.org/Mattrixwv/projecteulercpp.git
synced 2025-12-06 17:13:59 -05:00
Refactored to make benchmark part of the main program
This commit is contained in:
4
makefile
4
makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user