-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
48 lines (41 loc) · 1.54 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
.PHONY: clean amd64 arm64 armv6 armv7
MICROVAD_DIR := micro_vad
FRONTEND_DIR := $(MICROVAD_DIR)/tensorflow/lite/experimental/microfrontend/lib
KISSFFT_DIR := $(MICROVAD_DIR)/kissfft
all: main.cpp
g++ -o main main.cpp \
-O3 \
-DFIXED_POINT=16 \
$(MICROVAD_DIR)/micro_vad.cpp \
$(FRONTEND_DIR)/kiss_fft_int16.cc \
$(FRONTEND_DIR)/fft.cc \
$(FRONTEND_DIR)/fft_util.cc \
$(FRONTEND_DIR)/filterbank.cc \
$(FRONTEND_DIR)/filterbank_util.cc \
$(FRONTEND_DIR)/frontend.cc \
$(FRONTEND_DIR)/frontend_util.cc \
$(FRONTEND_DIR)/log_lut.cc \
$(FRONTEND_DIR)/log_scale.cc \
$(FRONTEND_DIR)/log_scale_util.cc \
$(FRONTEND_DIR)/noise_reduction.cc \
$(FRONTEND_DIR)/noise_reduction_util.cc \
$(FRONTEND_DIR)/pcan_gain_control.cc \
$(FRONTEND_DIR)/pcan_gain_control_util.cc \
$(FRONTEND_DIR)/window.cc \
$(FRONTEND_DIR)/window_util.cc \
$(KISSFFT_DIR)/kiss_fft.cc \
$(KISSFFT_DIR)/tools/kiss_fftr.cc \
-I$(MICROVAD_DIR) \
-I$(KISSFFT_DIR)
amd64:
docker buildx build . --platform linux/amd64 --output 'type=local,dest=dist/linux_amd64'
arm64:
docker buildx build . --platform linux/arm64 --output 'type=local,dest=dist/linux_arm64'
# armv6:
# mkdir -p dist/linux_armv6
# docker buildx build . -f Dockerfile.armv6 --platform linux/arm/v6 --output 'type=local,dest=dist/linux_armv6'
armv7:
mkdir -p dist/linux_armv7
docker buildx build . -f Dockerfile.armv7 --platform linux/arm/v7 --output 'type=local,dest=dist/linux_armv7'
clean:
rm -rf dist