-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathBuild.mak
66 lines (54 loc) · 2 KB
/
Build.mak
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
ifeq ($F, production)
override DFLAGS += -release
endif
override LDFLAGS += -llzo2
override DFLAGS += -w
$B/dhtnode: override LDFLAGS += -ltokyocabinet -lebtree -lrt -lgcrypt -lgpg-error -lglib-2.0 -lpcre
$B/dhtnode: src/dhtnode/main.d
dhtnode: $B/dhtnode
all += $B/dhtnode
$B/dhtdump: override LDFLAGS += -lebtree -lrt -lgcrypt -lgpg-error -lglib-2.0 -lpcre
$B/dhtdump: src/dhtnode/dhtdump/main.d
dhtdump: $B/dhtdump
all += $B/dhtdump
$B/dhtredist: override LDFLAGS += -lebtree -lrt -lgcrypt -lgpg-error -lglib-2.0 -lpcre
$B/dhtredist: src/dhtredist/main.d
dhtredist: $B/dhtredist
all += $B/dhtredist
$B/tcmcli: override LDFLAGS += -lebtree -lrt -lgcrypt -lgpg-error -lglib-2.0 -lpcre
$B/tcmcli: src/tcmcli/main.d
tcmcli: $B/tcmcli
all += $B/tcmcli
$B/dhtperformance: override LDFLAGS += -lebtree -lrt -lgcrypt -lgpg-error -lglib-2.0 -lpcre
$B/dhtperformance: src/dhtperformance/main.d
dhtperformance: $B/dhtperformance
all += $B/dhtperformance
$O/test-dhttest: $B/dhtnode
$O/test-dhttest: override LDFLAGS += -lebtree -lrt -lgcrypt -lgpg-error -lglib-2.0 -lpcre
$B/neotest: override LDFLAGS += -lebtree -lrt -lgcrypt -lgpg-error -lglib-2.0 -lpcre
$B/neotest: neotest/main.d
neotest: $B/neotest
all += $B/neotest
# any text passed via TURTLE_ARGS will be used as extra CLI arguments:
# make run-dhttest TURTLE_ARGS="--help"
# make run-dhttest TURTLE_ARGS="--id=7"
run-dhttest: $O/test-dhttest $B/dhtnode
$(call exec, $O/test-dhttest $(TURTLE_ARGS))
debug-dhttest: $O/test-dhttest $B/dhtnode
$(call exec, gdb --args $O/test-dhttest $(TURTLE_ARGS))
# Additional flags needed when unittesting
$O/%unittests: override LDFLAGS += -ltokyocabinet -lebtree -lrt -lgcrypt -lgpg-error -lglib-2.0 -lpcre
# Packages dependencies
$O/pkg-dhtnode-common.stamp: \
$(PKG)/defaults.py \
$C/deploy/logrotate/dhtnode-logs
$O/pkg-dhtnode.stamp: \
$(PKG)/defaults.py \
$(PKG)/after_dhtnode_install.sh \
$B/dhtnode \
$B/dhtdump
$O/pkg-dhtnode-utils.stamp: \
$(PKG)/defaults.py \
$B/tcmcli \
$B/dhtredist \
$B/dhtperformance