1a3794f3e3
- move to subdirectory - get rid of compile warnings on windows - get number of threads from affinity (Windows, Linux) or core count (BSD/OSX)
16 lines
328 B
Makefile
16 lines
328 B
Makefile
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
|
|
|