added cross-compilation and testing for ARMv7 with NEON

This commit is contained in:
Ahmet Inan 2021-06-15 07:55:08 +02:00
commit 07682ac19f

View file

@ -1,12 +1,19 @@
CXXFLAGS = -std=c++17 -W -Wall -Ofast -fno-exceptions -fno-rtti -march=native -I../dsp -I../code
CXX = clang++ -stdlib=libc++
#CXX = g++
CXXFLAGS = -std=c++17 -W -Wall -Ofast -fno-exceptions -fno-rtti -I../dsp -I../code
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
.PHONY: all
all: encode decode
test: encode decode
$(QEMU) ./encode encoded.wav 8000 8 1 /dev/urandom
$(QEMU) ./decode /dev/null encoded.wav
encode: encode.cc
$(CXX) $(CXXFLAGS) $< -o $@