2015-11-08 11:22:17 +01:00
|
|
|
UNAME_S := $(shell uname -s)
|
|
|
|
ifeq ($(UNAME_S),Darwin)
|
|
|
|
CCFLAGS += -I/usr/local/Cellar/openssl/1.0.2d_1/include
|
|
|
|
LDFLAGS += -L/usr/local/Cellar/openssl/1.0.2d_1/lib
|
|
|
|
endif
|
|
|
|
|
2015-11-07 19:02:53 +01:00
|
|
|
all: bitmsghash.so
|
2015-11-05 22:27:34 +01:00
|
|
|
|
|
|
|
powtest:
|
|
|
|
./testpow.py
|
|
|
|
|
|
|
|
bitmsghash.so: bitmsghash.o
|
2015-11-08 11:22:17 +01:00
|
|
|
g++ bitmsghash.o -shared -fPIC -lpthread -lcrypto $(LDFLAGS) -o bitmsghash.so
|
2015-11-05 22:27:34 +01:00
|
|
|
|
|
|
|
bitmsghash.o:
|
2015-11-08 11:22:17 +01:00
|
|
|
g++ -Wall -O3 -march=native -fPIC $(CCFLAGS) -c bitmsghash.cpp
|
2015-11-05 22:27:34 +01:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f bitmsghash.o bitmsghash.so
|
|
|
|
|