3 changed files with 35 additions and 7 deletions
@ -1,7 +0,0 @@ |
|||||
#!/bin/bash |
|
||||
#./configure --enable-endomorphism --enable-module-ecdh --enable-module-schnorr --enable-module-rangeproof --enable-experimental --enable-module_recovery |
|
||||
rm -f marketmaker |
|
||||
git pull |
|
||||
cd secp256k1; ./m_unix; cd .. |
|
||||
cd ../crypto777; make -f m_LP_StaticNanoMsg all; make -f m_LP_StaticNanoMsg clean; cd ../iguana |
|
||||
gcc -g -o marketmaker -I../crypto777 exchanges/mm.c mini-gmp.c secp256k1.o ../agents/libcrypto777.a ../OSlibs/linux/$(uname -m)/libnanomsg-static.a -lcurl -lpthread -lm |
|
@ -0,0 +1,28 @@ |
|||||
|
# makefile for marketmaker uses static nanomsg |
||||
|
# author: fadedreamz@SuperNet.org |
||||
|
# date: Aug, 2017 |
||||
|
|
||||
|
LIB_ARCH=$(uname -m) |
||||
|
|
||||
|
.PHONY: clean all |
||||
|
|
||||
|
err: |
||||
|
@echo "no rule specified, use {clean,all}" |
||||
|
exit 1 |
||||
|
|
||||
|
clean: |
||||
|
- rm -f ../agents/iguana *.o |
||||
|
- rm ../agents/marketmaker |
||||
|
|
||||
|
all: |
||||
|
@echo "Add -j(core count + 1) to speed up build - e,g make -j5 -f m_mm_StaticNanoMsg; on a quad core cpu" |
||||
|
+$(MAKE) -C secp256k1 -f m_unix_Makefile all |
||||
|
+$(MAKE) -C ../crypto777 -f m_LP_StaticNanoMsg all |
||||
|
+$(MAKE) -C ../crypto777 -f m_LP_StaticNanoMsg clean |
||||
|
$(CC) -o ../agents/marketmaker -I../crypto777 exchanges/mm.c ../crypto777/cJSON.c mini-gmp.c secp256k1.o ../agents/libcrypto777.a ../OSlibs/linux/$(shell uname -m)/libnanomsg-static.a -lcurl -lpthread -lm -lanl |
||||
|
@echo "===========================" |
||||
|
@echo " marketmaker -> `pwd`/../agents/marketmaker" |
||||
|
@echo "===========================" |
||||
|
|
||||
|
|
||||
|
|
@ -0,0 +1,7 @@ |
|||||
|
# author: fadedreamz@SuperNet.org |
||||
|
# date: August, 2017 |
||||
|
|
||||
|
all: |
||||
|
gcc -c -o ../secp256k1.o -I. -I./src -I./include -I./src -O3 -W -std=c89 -pedantic -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -Wno-unused-function -Wno-long-long -Wno-overlength-strings -fvisibility=hidden -DHAVE_CONFIG_H src/secp256k1.c |
||||
|
|
||||
|
.PHONY: all |
Loading…
Reference in new issue