-
Notifications
You must be signed in to change notification settings - Fork 15
/
Makefile
93 lines (76 loc) · 2.29 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
CXX = g++
SRCDIR=./
COMMDIR=./main
NSDIR=./ns
SIGNDIR=./ns_base
GCADIR=./agc
RESAMPLE=./resample
SIG_DIR=./signal_processing
CCFILES += \
$(NSDIR)/noise_suppression_x.c \
$(NSDIR)/nsx_core.c \
$(NSDIR)/real_fft.c \
$(SIGNDIR)/spl_init.c \
$(SIGNDIR)/copy_set_operations.c \
$(SIGNDIR)/division_operations.c \
$(SIGNDIR)/energy.c \
$(SIGNDIR)/spl_sqrt_floor.c \
$(SIGNDIR)/complex_bit_reverse.c \
$(SIGNDIR)/complex_fft.c \
$(SIGNDIR)/min_max_operations.c \
$(SIGNDIR)/cross_correlation.c \
$(SIGNDIR)/downsample_fast.c \
$(SIGNDIR)/vector_scaling_operations.c \
$(SIGNDIR)/get_scaling_square.c \
$(RESAMPLE)/resample_48khz.c \
$(RESAMPLE)/resample_by_2.c \
$(RESAMPLE)/resample.c \
$(RESAMPLE)/resample_by_2_internal.c \
$(RESAMPLE)/resample_fractional.c \
$(SIG_DIR)/dot_product_with_scale.c \
$(SIG_DIR)/spl_sqrt.c \
$(GCADIR)/analog_agc.c \
$(GCADIR)/digital_agc.c \
$(GCADIR)/agc_main.c \
$(NSDIR)/nsx_main.c \
$(COMMDIR)/main.c \
HFILES += \
$(NSDIR)/windows_private.h \
$(SRCDIR)/hal_trace.h \
$(GCADIR)/analog_agc.h \
$(GCADIR)/agc_main.h \
$(GCADIR)/digital_agc.h \
$(GCADIR)/gain_control.h \
$(NSDIR)/typedefs.h \
$(NSDIR)/cpu_features_wrapper.h \
$(NSDIR)/nsx_core.h \
$(NSDIR)/defines.h \
$(NSDIR)/nsx_defines.h \
$(NSDIR)/noise_suppression_x.h \
$(NSDIR)/signal_processing_library.h \
$(NSDIR)/real_fft.h \
$(NSDIR)/nsx_main.h \
$(RESAMPLE)/resample.h \
$(RESAMPLE)/resample_by_2_internal.h \
$(COMMDIR)/typedefs.h \
$(COMMDIR)/common_types.h \
$(COMMDIR)/config.h \
$(NSDIR)/spl_inl.h
LD_FLAGS = -lm
LD_LIBS =
#DEFS = -DSTATIC_MEM -DWEBRTC_NSX -DNSX_CODE_UNUSE=1
DEFS = -DSTATIC_MEM -DWEBRTC_AGC=1
OBJS += $(patsubst %.c,%.c.o, $(CCFILES))
CFLAGS = -g -O0 -m64 -Wall
CFLAGS += $(DEFS)
EXECUTABLE = webrtc
INCLUDE_FLAGS = -I$(SRCDIR) -I$(COMMDIR) -I$(NSDIR) -I$(AGCDIR) -I$(VADDIR)
#INCLUDE_FLAGS = -I$(SRCDIR) -I$(COMMDIR) -I$(AGCDIR) -I$(VADDIR)
## Each subdirectory must supply rules for building sources it contributes
all: $(OBJS) $(CCFILES)
$(CXX) -o $(EXECUTABLE) $(CFLAGS) $(OBJS) $(LD_FLAGS)
$(OBJS): $(CCFILES) $(HFILES)
$(CXX) $(CFLAGS) $(INCLUDE_FLAGS) -o $@ -c $*
.phony: clean
clean:
@rm -f $(OBJS) $(EXECUTABLE)