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
|
LIBDIR = ./lib
|
||||||
LIBS = $(patsubst %, -lProblem%,$(PROBLEM_NUMBERS))
|
LIBS = $(patsubst %, -lProblem%,$(PROBLEM_NUMBERS))
|
||||||
|
|
||||||
|
#Linux makes
|
||||||
all: libsMulti ProjectEuler
|
all: libsMulti ProjectEuler
|
||||||
libs: directory $(patsubst %, $(LIBDIR)/libProblem%.so,$(PROBLEM_NUMBERS))
|
libs: directory $(patsubst %, $(LIBDIR)/libProblem%.so,$(PROBLEM_NUMBERS))
|
||||||
|
benchmark: libsMulti ProjectEulerBenchmark
|
||||||
|
#Windows makes
|
||||||
windows: allWindows
|
windows: allWindows
|
||||||
allWindows: libsWindowsMulti ProjectEuler moveBin
|
allWindows: libsWindowsMulti ProjectEuler moveBin
|
||||||
libsWindows: directory $(patsubst %, $(LIBDIR)/libProblem%.a,$(PROBLEM_NUMBERS))
|
libsWindows: directory $(patsubst %, $(LIBDIR)/libProblem%.a,$(PROBLEM_NUMBERS))
|
||||||
|
windowsBenchmark: libsWindowsMulti ProjectEulerBenchmark moveBin
|
||||||
|
|
||||||
#Non-build jobs
|
#Non-build jobs
|
||||||
directory:
|
directory:
|
||||||
@@ -36,6 +40,8 @@ libsWindowsMulti:
|
|||||||
#Building the executable
|
#Building the executable
|
||||||
ProjectEuler: main.cpp
|
ProjectEuler: main.cpp
|
||||||
$(CXX) $(EXEFLAGS) -o $@.exe $< -L $(LIBDIR) $(LIBS) $(LINKEDLIBS)
|
$(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
|
#Clean up/Remove all files and folders created
|
||||||
|
|||||||
Reference in New Issue
Block a user