fixed Makefile to avoid secp256k1 compilation on macOS
@@ -120,6 +120,7 @@ else
flags = -std=gnu11 -O3 -DDFSTOOLS -DCHEATCOIN -DNDEBUG -g -lpthread -lcrypto -lssl -lm -Wall -Wmissing-prototypes -Wno-unused-result -Wl,--export-dynamic
endif
+ifneq ($(OS), Darwin)
ifeq ($(use_openssl_ec), false)
secp256k1_i = secp256k1.o -isystem$(secp256k1)/include/ -lgmp
ifeq ("$(wildcard $(secp256k1)/src/libsecp256k1-config.h)","")
@@ -129,6 +130,7 @@ ifeq ($(use_openssl_ec), false)
secp256k1_full_compile = true
endif
endif
+endif
all: secp256k1 xdag
@@ -137,6 +139,7 @@ xdag: $(sources) $(headers) Makefile
cc -o xdag $(secp256k1_i) $(sources) $(asm_src) -DSHA256_USE_OPENSSL_TXFM -DSHA256_OPENSSL_MBLOCK -I$(SRCROOT) -I$(utils) $(flags)
secp256k1:
+ifneq ($(OS), Darwin)
ifeq ($(use_openssl_ec), false)
ifeq ($(secp256k1_full_compile), true)
cd $(secp256k1) && ./autogen.sh && ./configure && make; \
@@ -150,6 +153,9 @@ ifeq ($(use_openssl_ec), false)
else
@rm -f secp256k1.o
endif
+else
+ @rm -f secp256k1.o
+endif
clean:
rm -f xdag
