-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (34 loc) · 976 Bytes
/
Makefile
File metadata and controls
47 lines (34 loc) · 976 Bytes
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
all::
YAJL_DIR = yajl
YAJL_BUILDDIR = $(YAJL_DIR)/build/yajl-2.0.3
YAJL_LIBDIR = $(YAJL_BUILDDIR)/lib
YAJL_INCDIR = $(YAJL_BUILDDIR)/include
YAJL_LIB = $(YAJL_LIBDIR)/libyajl_s.a
YAJL_LDFLAGS = $(YAJL_LIB)
YAJL_CFLAGS = -I$(YAJL_INCDIR)
ALL_CFLAGS += -Iccan -I.
ALL_LDFLAGS += -Lccan -lccan -lev
obj-pd = main.o
obj-nd_reader = nd_reader.o nodes_dat.o peer.o
obj-test_list = list_test.o
#TARGETS = pd nd_reader test_list nnode
obj-bt = bt_dht.o rbtree/rbtree.o tbl/tbl.o
TARGETS = bt
bt : ccan
cfg_json.o : $(YAJL_LIB)
obj-nnode = nnode.o cfg_json.o
cflags-nnode = $(YAJL_CFLAGS)
ldflags-nnode = $(YAJL_LDFLAGS) -lev
$(YAJL_LIB) :
cd $(YAJL_DIR) && ./configure && $(MAKE) $(MAKEFLAGS)
.PHONY: ccan
ccan:
$(MAKE) $(MAKEFLAGS) -C ccan
.PHONY: yajl.clean
yajl.clean :
$(MAKE) $(MAKEFLAGS) -C $(YAJL_DIR) clean
.PHONY: ccan.clean
ccan.clean:
$(MAKE) $(MAKEFLAGS) -C ccan clean
dirclean: yajl.clean clean ccan.clean
include base.mk