mirror of
https://git.wownero.com/wownero/wownero-puddle.git
synced 2024-08-15 01:03:20 +00:00
ease building with / without randomx
This commit is contained in:
parent
2c636d00e9
commit
bcc25dee1b
3 changed files with 20 additions and 3 deletions
14
Makefile
14
Makefile
|
@ -56,8 +56,9 @@ MONERO_LIBS = \
|
|||
${MONERO_BUILD_ROOT}/src/ringct/libringct_basic.a \
|
||||
${MONERO_BUILD_ROOT}/src/device/libdevice.a \
|
||||
${MONERO_BUILD_ROOT}/contrib/epee/src/libepee.a \
|
||||
${MONERO_BUILD_ROOT}/external/easylogging++/libeasylogging.a \
|
||||
${MONERO_BUILD_ROOT}/external/randomx/librandomx.a
|
||||
${MONERO_BUILD_ROOT}/external/easylogging++/libeasylogging.a
|
||||
|
||||
LIBRX = ${MONERO_BUILD_ROOT}/external/randomx/librandomx.a
|
||||
|
||||
DIRS = src data rxi/log/src
|
||||
|
||||
|
@ -65,6 +66,15 @@ OS := $(shell uname -s)
|
|||
|
||||
CPPDEFS = _GNU_SOURCE AUTO_INITIALIZE_EASYLOGGINGPP LOG_USE_COLOR
|
||||
|
||||
ifeq ($(wildcard ${LIBRX}),${LIBRX})
|
||||
MONERO_LIBS += ${LIBRX}
|
||||
CPPDEFS += HAVE_RX
|
||||
else
|
||||
ifneq ($(MAKECMDGOALS),clean)
|
||||
$(warning Building without RandomX!)
|
||||
endif
|
||||
endif
|
||||
|
||||
W = -W -Wall -Wno-unused-parameter -Wuninitialized
|
||||
OPT = -maes -fPIC
|
||||
CFLAGS = $(W) -Wbad-function-cast $(OPT) -std=c99
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue