Browse Source
for linux: m_mm script will use dynamic nanomsg lib like before for osx: m_mm script will compile static nanomsg lib and generate static marketmaker binarydev
satindergrewal
7 years ago
2 changed files with 19 additions and 2 deletions
@ -1,4 +1,16 @@ |
|||
cd secp256k1; ./m_unix; cd .. |
|||
cd ../crypto777; ./m_LP; cd ../iguana |
|||
|
|||
if [[ "$OSTYPE" == "linux-gnu" ]]; then |
|||
echo "Linux" |
|||
# Default is dynamic nanomsg for linux using this script |
|||
nanomsg_lib="-lnanomsg" |
|||
elif [[ "$OSTYPE" == "darwin"* ]]; then |
|||
# Mac OSX |
|||
echo "Mac OSX" |
|||
# on osx this script generates static libnanomsg and uses it to compile static marketmaker binary |
|||
./build_static_nanomsg.sh |
|||
gcc -g -o marketmaker -I../crypto777 exchanges/mm.c ../crypto777/cJSON.c mini-gmp.c groestl.c segwit_addr.c secp256k1.o ../agents/libcrypto777.a ../OSlibs/osx/$(uname -m)/libnanomsg-static.a -lcurl -lpthread -lm |
|||
nanomsg_lib="../OSlibs/osx/$(uname -m)/libnanomsg-static.a" |
|||
fi |
|||
|
|||
gcc -g -o marketmaker -I../crypto777 exchanges/mm.c ../crypto777/cJSON.c mini-gmp.c groestl.c segwit_addr.c secp256k1.o ../agents/libcrypto777.a $nanomsg_lib -lcurl -lpthread -lm |
|||
|
Loading…
Reference in new issue