-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (24 loc) · 845 Bytes
/
Makefile
File metadata and controls
37 lines (24 loc) · 845 Bytes
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
CXXFLAGS = -std=c++17 -W -Wall -O3 -ffast-math -fno-exceptions -fno-rtti -I../dsp -I../code
#CXXFLAGS += -g -fsanitize=address
CXX = clang++ -stdlib=libc++ -march=native
#CXX = g++ -march=native
#CXX = armv7a-hardfloat-linux-gnueabi-g++ -static -mfpu=neon -march=armv7-a
#QEMU = qemu-arm
#CXX = aarch64-unknown-linux-gnu-g++ -static -march=armv8-a+crc+simd -mtune=cortex-a72
#QEMU = qemu-aarch64
.PHONY: all
all: encode decode
test: encode decode
$(QEMU) ./encode audio.wav 48000 16 1 1500 ANONYMOUS QAM16 1/2 short /dev/urandom
$(QEMU) ./decode audio.wav /dev/null
encode: encode.cc common.hh
$(CXX) $(CXXFLAGS) $< -o $@
decode: decode.cc common.hh schmidl_cox.hh
$(CXX) $(CXXFLAGS) $< -o $@
freezer: freezer.cc
$(CXX) $(CXXFLAGS) $< -o $@
polar_tables.hh: freezer
./$< > $@
.PHONY: clean
clean:
rm -f encode decode freezer