Browse Source

added makefile and preprocessor flag for static nanomsg library

Signed-off-by: fadedreamz <fadedreamz@gmail.com>
etomic
fadedreamz 8 years ago
parent
commit
7f85d72ac9
  1. BIN
      OSlibs/linux/x86_64/libnanomsg-static.a
  2. 30
      crypto777/m_LP_StaticNanoMsg
  3. 3
      iguana/iguana777.h
  4. 12
      iguana/m_LP_StaticNanoMsg

BIN
OSlibs/linux/x86_64/libnanomsg-static.a

Binary file not shown.

30
crypto777/m_LP_StaticNanoMsg

@ -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

3
iguana/iguana777.h

@ -55,8 +55,7 @@
#include "bus.h" #include "bus.h"
#else*/ #else*/
//#ifdef __APPLE__ //#ifdef __APPLE__
#if defined(__APPLE__) || defined(WIN32) #if defined(__APPLE__) || defined(WIN32) || defined(USE_STATIC_NANOMSG)
#include "../crypto777/nanosrc/nn.h" #include "../crypto777/nanosrc/nn.h"
#include "../crypto777/nanosrc/bus.h" #include "../crypto777/nanosrc/bus.h"
#include "../crypto777/nanosrc/pubsub.h" #include "../crypto777/nanosrc/pubsub.h"

12
iguana/m_LP_StaticNanoMsg

@ -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…
Cancel
Save