mirror of
https://bitbucket.org/Mattrixwv/projecteulercpp.git
synced 2025-12-06 17:13:59 -05:00
Added build solutions for benchmark
This commit is contained in:
6
makefile
6
makefile
@@ -8,11 +8,15 @@ PROBLEM_FILES = $(patsubst %,Source/libProblem%.cpp,$(PROBLEM_NUMBERS))
|
||||
LIBDIR = ./lib
|
||||
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:
|
||||
@@ -36,6 +40,8 @@ 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