-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (22 loc) · 906 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
CXX = g++
CXXFLAGS = -std=c++0x -Wall -g
COINCLASSESSRCDIR = ./keynode/CoinClasses
KEYNODESRCDIR = ./keynode
HEADERS = \
$(COINCLASSESSRCDIR)/hdkeys.h \
$(COINCLASSESSRCDIR)/hash.h \
$(COINCLASSESSRCDIR)/secp256k1.h \
$(COINCLASSESSRCDIR)/BigInt.h \
$(COINCLASSESSRCDIR)/uchar_vector.h
kt: keytree.cpp keynode.o logger.o hdkeys.o keytreeutil.o
$(CXX) $(CXXFLAGS) -o $@ $< keynode.o logger.o hdkeys.o keytreeutil.o -lcrypto
keytreeutil.o: keytreeutil.cpp
$(CXX) $(CXXFLAGS) -o $@ -c $<
keynode.o: $(KEYNODESRCDIR)/keynode.cpp $(COINCLASSESSRCDIR)/Base58Check.h
$(CXX) $(CXXFLAGS) -o $@ -c $<
logger.o: $(KEYNODESRCDIR)/logger.cpp
$(CXX) $(CXXFLAGS) -o $@ -c $<
hdkeys.o: $(COINCLASSESSRCDIR)/hdkeys.cpp $(HEADERS)
$(CXX) $(CXXFLAGS) -o $@ -c $<
clean:
-rm -rf *.o $(KEYNODESRCDIR)/*.o $(COINCLASSESSRCDIR)/*.o *~ $(KEYNODESRCDIR)/*~ $(COINCLASSESSRCDIR)/*.o~ kt.dSYM kt