From cdf983b637d1343ebb35c44bc8a5a849106230ce Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Sun, 25 Oct 2020 15:21:14 -0400 Subject: [PATCH] Obviously nobody taught jl777 how to write Makefiles --- Makefile | 7 +++++++ dragon/Makefile | 12 ++++++++++++ dragon/m_unix | 13 ------------- 3 files changed, 19 insertions(+), 13 deletions(-) create mode 100644 Makefile create mode 100755 dragon/Makefile delete mode 100755 dragon/m_unix diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..cb8a26c --- /dev/null +++ b/Makefile @@ -0,0 +1,7 @@ +# Copyright 2018-2020 The Hush Developers + +all: + echo "cd dragon; make" + +clean: + rm *.o diff --git a/dragon/Makefile b/dragon/Makefile new file mode 100755 index 0000000..b922baf --- /dev/null +++ b/dragon/Makefile @@ -0,0 +1,12 @@ +# Copyright © 2018-2020 The Hush Developers + +#./configure --enable-endomorphism --enable-module-ecdh --enable-module-schnorr --enable-module-rangeproof --enable-experimental --enable-module_recovery + +clean: + rm -f ../agents/dragon *.o + +all: + $(CC) -g -fno-aggressive-loop-optimizations -Wno-deprecated -c *.c ../basilisk/basilisk.c ../gecko/gecko.c ../datachain/datachain.c + $(CC) -g -fno-aggressive-loop-optimizations -Wno-deprecated -c main.c dragon.c dragon_bundles.c ../basilisk/basilisk.c + $(CC) -g -o ../agents/dragon *.o ../agents/libcrypto555.a -lpthread -lm -lnanomsg -lcurl -lsodium + diff --git a/dragon/m_unix b/dragon/m_unix deleted file mode 100755 index ac49a47..0000000 --- a/dragon/m_unix +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -# Copyright © 2018-2020 The Hush Developers - -#./configure --enable-endomorphism --enable-module-ecdh --enable-module-schnorr --enable-module-rangeproof --enable-experimental --enable-module_recovery -rm ../agents/dragon *.o -if [[ $# -eq 0 ]]; then - git pull -fi -cd secp256k1; ./m_unix; cd .. -cd ../crypto555; ./m_unix; cd ../dragon -gcc -g -fno-aggressive-loop-optimizations -Wno-deprecated -c *.c ../basilisk/basilisk.c ../gecko/gecko.c ../datachain/datachain.c -gcc -g -fno-aggressive-loop-optimizations -Wno-deprecated -c main.c dragon.c dragon_bundles.c ../basilisk/basilisk.c -gcc -g -o ../agents/dragon *.o ../agents/libcrypto555.a -lpthread -lm -lnanomsg -lcurl -lsodium