C PoW library makefile

For easy compiling with GNU make (e.g. Unix-like systems).
Run as "make bitmsghash.so"
This commit is contained in:
Peter Šurda 2015-11-05 22:27:34 +01:00
parent dfda1527b8
commit cee59a0547
Signed by untrusted user: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

15
src/Makefile Normal file
View File

@ -0,0 +1,15 @@
all:
@echo "This compiles and tests the C PoW library, it's not necessary to run PyBitmessage"
powtest:
./testpow.py
bitmsghash.so: bitmsghash.o
g++ bitmsghash.o -shared -fPIC -lpthread -lcrypto -o bitmsghash.so
bitmsghash.o:
g++ -Wall -O3 -march=native -fPIC -c bitmsghash.cpp
clean:
rm -f bitmsghash.o bitmsghash.so