forked from squishyhuman/c-libp2p
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
76 lines (65 loc) · 1.38 KB
/
Makefile
File metadata and controls
76 lines (65 loc) · 1.38 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
DEBUG = true
export DEBUG
SO_LINKER_FLAGS=-L./protobuf/ -L./multiaddr/ -L./multihash/ -lprotobuf -lmultiaddr -lmultihash -lpthread -lm
LINKER_FLAGS=
OBJS = \
conn/*.o \
crypto/*.o \
crypto/encoding/*.o \
db/*.o \
thirdparty/mbedtls/*.o \
hashmap/hashmap.o \
identify/*.o \
net/*.o \
os/*.o \
peer/*.o \
record/*.o \
routing/*.o \
secio/*.o \
utils/*.o \
swarm/*.o \
yamux/*.o
all: compile link
link:
ar rcs libp2p.a $(OBJS) $(LINKER_FLAGS)
gcc -shared $(OBJS) protobuf/protobuf.o protobuf/varint.o -o libp2p.so $(SO_LINKER_FLAGS)
compile:
cd multihash; make all;
cd multiaddr; make all;
cd protobuf; make all;
cd conn; make all;
cd crypto; make all;
cd db; make all;
cd thirdparty; make all;
cd hashmap; make all;
cd identify; make all;
cd net; make all;
cd os; make all;
cd peer; make all;
cd record; make all;
cd routing; make all;
cd secio; make all;
cd swarm; make all;
cd utils; make all;
cd yamux; make all;
test: compile link
cd test; make all;
rebuild: clean all
clean:
cd conn; make clean;
cd crypto; make clean;
cd db; make clean;
cd hashmap; make clean;
cd identify; make clean;
cd net; make clean;
cd os; make clean;
cd peer; make clean;
cd thirdparty; make clean
cd record; make clean;
cd routing; make clean;
cd secio; make clean;
cd swarm; make clean;
cd utils; make clean;
cd test; make clean;
cd yamux; make clean;
rm -rf libp2p.a