forked from sipwise/rtpengine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
57 lines (45 loc) · 1.14 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
RTPENGINE_ROOT_DIR=.
with_transcoding ?= yes
ifeq ($(DO_ASAN_FLAGS),1)
ASAN_FLAGS = -ggdb -O0 -fsanitize=address -fsanitize=leak -fsanitize=undefined
CFLAGS ?= -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wstrict-prototypes
CFLAGS += $(ASAN_FLAGS)
LDFLAGS += $(ASAN_FLAGS)
export CFLAGS
export LDFLAGS
export ASAN_OPTIONS=verify_asan_link_order=0
export UBSAN_OPTIONS=print_stacktrace=1
export G_SLICE=always-malloc
endif
include lib/lib.Makefile
.PHONY: all distclean clean coverity
all:
$(MAKE) -C daemon
ifeq ($(with_transcoding),yes)
$(MAKE) -C recording-daemon
endif
$(MAKE) -C iptables-extension
coverity:
$(MAKE) -C daemon
ifeq ($(with_transcoding),yes)
$(MAKE) -C recording-daemon
endif
.PHONY: with-kernel
with-kernel: all
$(MAKE) -C kernel-module
distclean clean:
$(MAKE) -C daemon clean
$(MAKE) -C recording-daemon clean
$(MAKE) -C iptables-extension clean
$(MAKE) -C kernel-module clean
$(MAKE) -C t clean
.DEFAULT:
$(MAKE) -C daemon $@
$(MAKE) -C recording-daemon $@
$(MAKE) -C iptables-extension $@
$(MAKE) -C kernel-module $@
.PHONY: check asan-check
check: all
$(MAKE) -C t
asan-check:
DO_ASAN_FLAGS=1 $(MAKE) check