fadedreamz
8 years ago
4 changed files with 43 additions and 2 deletions
Binary file not shown.
@ -0,0 +1,30 @@ |
|||||
|
# Very basic makefile for compiling iguana in Linux with StaticNanoMsg |
||||
|
# derived from m_LP (used to compile iguana for linux) |
||||
|
# author: fadedreamz |
||||
|
|
||||
|
SRCS=$(wildcard *.c) |
||||
|
SRCS+=$(wildcard jpeg/*.c) |
||||
|
SRCS+=$(wildcard jpeg/unix/*.c) |
||||
|
|
||||
|
OBJS=$(SRCS:%.c=%.o) |
||||
|
|
||||
|
INCLUDE_DIRS+=-I/usr/lib/x86_64-linux-gnu/curl |
||||
|
PREPROCESSORS+=-DLIQUIDITY_PROVIDER=1 -DUSE_STATIC_NANOMSG |
||||
|
|
||||
|
CFLAGS+=-O2 $(PREPROCESSORS) $(INCLUDE_DIRS) |
||||
|
|
||||
|
update_repo: |
||||
|
git pull |
||||
|
|
||||
|
clean: |
||||
|
-rm $(OBJS) |
||||
|
|
||||
|
all: update_repo $(OBJS) static |
||||
|
@echo ' ================' |
||||
|
@echo '| crypto777 [OK] |' |
||||
|
@echo ' ================' |
||||
|
|
||||
|
static: $(OBJS) |
||||
|
ar rc ../agents/libcrypto777.a $(OBJS) |
||||
|
|
||||
|
.PHONY: update_repo clean all static |
@ -0,0 +1,12 @@ |
|||||
|
#!/bin/bash |
||||
|
#./configure --enable-endomorphism --enable-module-ecdh --enable-module-schnorr --enable-module-rangeproof --enable-experimental --enable-module_recovery |
||||
|
rm -f ../agents/iguana *.o |
||||
|
git pull |
||||
|
cd secp256k1; ./m_unix; cd .. |
||||
|
cd ../crypto777; make -f m_LP_StaticNanoMsg all; make -f m_LP_StaticNanoMsg clean; cd ../iguana |
||||
|
|
||||
|
clang -g -Wno-deprecated -c -O2 -DLIQUIDITY_PROVIDER=1 -DUSE_STATIC_NANOMSG *.c ../basilisk/basilisk.c ../gecko/gecko.c ../datachain/datachain.c |
||||
|
clang -g -Wno-deprecated -c -DLIQUIDITY_PROVIDER=1 -DUSE_STATIC_NANOMSG main.c iguana777.c iguana_bundles.c ../basilisk/basilisk.c |
||||
|
|
||||
|
|
||||
|
clang -g -o ../agents/iguana *.o ../agents/libcrypto777.a ../OSlibs/linux/$(uname -m)/libnanomsg-static.a -lcurl -lssl -lcrypto -lpthread -lz -lm -lanl -lrt -lnsl |
Loading…
Reference in new issue