Browse Source

Obviously nobody taught jl777 how to write Makefiles

master
Duke Leto 4 years ago
parent
commit
cdf983b637
  1. 7
      Makefile
  2. 12
      dragon/Makefile
  3. 13
      dragon/m_unix

7
Makefile

@ -0,0 +1,7 @@
# Copyright 2018-2020 The Hush Developers
all:
echo "cd dragon; make"
clean:
rm *.o

12
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

13
dragon/m_unix

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