-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathBuild.mak
37 lines (29 loc) · 1022 Bytes
/
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
# check whether to build with position-independent code
# (may be required to build on newer distro releases)
ifeq ($(USE_PIC),1)
override DFLAGS += -fPIC
endif
override DFLAGS += -w
override LDFLAGS += -llzo2 -lebtree -lrt -lgcrypt -lgpg-error -lglib-2.0
$B/dlsnode: override LDFLAGS += -lpcre -lebtree
$B/dlsnode: src/dlsnode/main.d
$B/dlsredist: override LDFLAGS += -lpcre -lebtree
$B/dlsredist: src/dlsredist/main.d
dlsnode: $B/dlsnode
dlsredist: $B/dlsredist
all += dlsnode dlsredist
# Additional flags needed when unittesting
$O/%unittests: override LDFLAGS += -lpcre -lebtree -lrt
$O/test-dlstest: dlsnode
$O/test-dlstest: override LDFLAGS += -lebtree -lrt -lpcre
$O/test-versioning: dlsnode
$O/test-versioning: override LDFLAGS += -lebtree -lrt -lpcre
# Packages dependencies
$O/pkg-dlsnode-common.stamp: \
$C/pkg/defaults.py \
$C/deploy/logrotate/dlsnode-logs \
$C/deploy/cron/compress_dls_data \
$C/deploy/cron/compress_data.sh
$O/pkg-dlsnode.stamp: \
$C/pkg/defaults.py \
$C/build/$F/bin/dlsnode