forked from rachoA/txchain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (30 loc) · 894 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
CC = g++
CSDKDIR = HdacCSDK2
SDKLIBS = -lsecp256k1 -lssl -lcrypto -ldl -lboost_system -lboost_thread -lpthread
LIBS = -lzmq -lpq -lleveldb
INCLUDE = -I/usr/include/postgresql -IHdacCSDK2/include -Ilib
CPPFLAGS = -O2 $(INCLUDE) -Wall -W -std=c++11 -Wwrite-strings -Wno-unused-parameter
HDACLIB = ../HdacCSDK2/hdaclib.a
all: lib test
lib: $(HDACLIB) txlib.a
txlib.a:
cd lib; make; cd ..
$(HDACLIB):
cd $(CSDKDIR); make; cd ..
test:
cd test; make; cd ..
bak:
tar cf ~/BAK/txchain-`date +"%y%m%d"`.tar M* README* HISTORY \
*/*.[hc]* */Make* */README* */*/*.[hc]* */*/Make* */*/*/*.[hc]*
gzip -f ~/BAK/txchain-`date +"%y%m%d"`.tar
cleanall:
cd $(CSDKDIR); make clean; cd ..
cd lib; make clean; cd ..
make clean
clean:
rm -f lib/*.o
cd v0.1; make clean; cd ..
cd v0.2; make clean; cd ..
cd v0.3; make clean; cd ..
cd v0.4; make clean; cd ..
cd test; make clean; cd ..