copied Makefile over from code repository

This commit is contained in:
Ahmet Inan 2024-02-21 08:20:08 +01:00
commit fc39f9ef5f

View file

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