added example how to test with a cross-compiler

This commit is contained in:
Ahmet Inan 2018-12-12 11:39:19 +01:00
commit 09945a18b5

View file

@ -1,14 +1,19 @@
CXXFLAGS = -I.. -std=c++11 -W -Wall -Ofast -fno-exceptions -fno-rtti -march=native
CXX = clang++ -stdlib=libc++
#CXX = g++
CXXFLAGS = -I.. -std=c++11 -W -Wall -Ofast -fno-exceptions -fno-rtti
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: clean test
tests := $(basename $(wildcard *_test.*))
test: $(tests)
$(patsubst %,./%>/dev/null;,$(tests))
$(patsubst %,$(QEMU) ./% >/dev/null;,$(tests))
clean:
rm -f *_test