-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile
37 lines (25 loc) · 832 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
objects = hash.o id.o block.o crypto.o bdb.o
server.out : $(objects) server.o
g++ -o server.out $(objects) server.o -lcrypto -ldb
client.out : $(objects) client.o
g++ -o client.out $(objects) client.o -lcrypto -ldb
hash.o : hash.cpp hash.h
g++ -c hash.cpp
id.o : id.cpp id.h
g++ -c id.cpp
block.o : block.cpp block.h hash.h id.h id.cpp hash.cpp crypto.h crypto.cpp
g++ -c block.cpp
crypto.o : crypto.cpp crypto.h
g++ -c crypto.cpp
bdb.o : bdb.cpp bdb.h block.h block.cpp id.h id.cpp
g++ -c bdb.cpp
server.o : $(objects) server.cpp
g++ -c server.cpp
client.o : $(objects) client.cpp
g++ -c client.cpp
test-mining.o : $(objects) test-mining.cpp
g++ -c test-mining.cpp
test-mining.out : $(objects) test-mining.o
g++ -o test-mining.out $(objects) test-mining.o -lcrypto
clean :
rm $(objects) server.o* client.o*