From 07682ac19f56b7e835f67c6985afa59b59309a13 Mon Sep 17 00:00:00 2001 From: Ahmet Inan Date: Tue, 15 Jun 2021 07:55:08 +0200 Subject: [PATCH] added cross-compilation and testing for ARMv7 with NEON --- Makefile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 5da88f1..f8c5555 100644 --- a/Makefile +++ b/Makefile @@ -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 $@