mirror of
https://github.com/aicodix/code.git
synced 2026-04-27 14:30:36 +00:00
23 lines
477 B
Makefile
23 lines
477 B
Makefile
|
|
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
|
|
#QEMU = qemu-aarch64
|
|
|
|
.PHONY: clean test
|
|
|
|
tests := $(basename $(wildcard *_test.*))
|
|
|
|
test: $(tests)
|
|
$(patsubst %,$(QEMU) ./% >/dev/null;,$(tests))
|
|
|
|
clean:
|
|
rm -f *_test
|
|
|