mirror of
https://github.com/aicodix/modem.git
synced 2026-04-27 14:30:34 +00:00
added cross-compilation and testing for ARMv7 with NEON
This commit is contained in:
parent
62b07d2d4c
commit
07682ac19f
1 changed files with 10 additions and 3 deletions
13
Makefile
13
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 $@
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue