C++ framework for fast blockchain.address.get_history
[electrum-server.git] / backends / libbitcoin / Makefile
diff --git a/backends/libbitcoin/Makefile b/backends/libbitcoin/Makefile
new file mode 100644 (file)
index 0000000..3f44322
--- /dev/null
@@ -0,0 +1,6 @@
+CC = g++ -fPIC -Wall -ansi `pkg-config --cflags libbitcoin` -I/usr/include/python2.7 
+
+default:
+       $(CC) -c history.cpp -o history.o
+       $(CC) -shared -Wl,-soname,_history.so history.o -lpython2.7 -lboost_python `pkg-config --libs libbitcoin` -lboost_thread -o history1/_history.so
+