mirror of
https://github.com/wownero/RandomWOW.git
synced 2026-10-17 15:31:46 +02:00
Merge branch 'jtgrassie-affinity'
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#CC=gcc-8
|
||||
AR=gcc-ar
|
||||
PLATFORM=$(shell uname -m)
|
||||
OS=$(shell uname -s)
|
||||
CXXFLAGS=-std=c++11
|
||||
CCFLAGS=-std=c99
|
||||
ARFLAGS=rcs
|
||||
@@ -21,6 +22,9 @@ ifeq ($(PLATFORM),x86_64)
|
||||
RXOBJS += $(addprefix $(OBJDIR)/,jit_compiler_x86_static.o jit_compiler_x86.o)
|
||||
CXXFLAGS += -maes
|
||||
endif
|
||||
ifeq ($(OS),Darwin)
|
||||
AR=ar
|
||||
endif
|
||||
|
||||
ifeq ($(PLATFORM),ppc64)
|
||||
CXXFLAGS += -mcpu=native
|
||||
@@ -61,11 +65,13 @@ $(OBJDIR):
|
||||
mkdir $(OBJDIR)
|
||||
$(BINDIR):
|
||||
mkdir $(BINDIR)
|
||||
$(OBJDIR)/affinity.o: $(TESTDIR)/affinity.cpp $(TESTDIR)/affinity.hpp
|
||||
$(CXX) $(CXXFLAGS) -c $< -o $@
|
||||
$(OBJDIR)/benchmark.o: $(TESTDIR)/benchmark.cpp $(TESTDIR)/stopwatch.hpp \
|
||||
$(TESTDIR)/utility.hpp $(SRCDIR)/randomx.h $(SRCDIR)/blake2/endian.h
|
||||
$(TESTDIR)/utility.hpp $(SRCDIR)/randomx.h $(SRCDIR)/blake2/endian.h $(TESTDIR)/affinity.hpp
|
||||
$(CXX) $(CXXFLAGS) -pthread -c $< -o $@
|
||||
$(BINDIR)/randomx-benchmark: $(OBJDIR)/benchmark.o $(RXA)
|
||||
$(CXX) $(LDFLAGS) -pthread $< $(RXA) -o $@
|
||||
$(BINDIR)/randomx-benchmark: $(OBJDIR)/benchmark.o $(OBJDIR)/affinity.o $(RXA)
|
||||
$(CXX) $(LDFLAGS) -pthread $< $(OBJDIR)/affinity.o $(RXA) -o $@
|
||||
$(OBJDIR)/code-generator.o: $(TESTDIR)/code-generator.cpp $(TESTDIR)/utility.hpp \
|
||||
$(SRCDIR)/common.hpp $(SRCDIR)/blake2/endian.h \
|
||||
$(SRCDIR)/configuration.h $(SRCDIR)/randomx.h \
|
||||
|
||||
Reference in New Issue
Block a user