1# SPDX-License-Identifier: GPL-2.0 2 3CFLAGS += -I../../../../../usr/include/ 4TEST_GEN_PROGS := sve-ptrace sve-probe-vls vec-syscfg za-fork za-ptrace 5TEST_PROGS_EXTENDED := fp-pidbench fpsimd-test fpsimd-stress \ 6 rdvl-sme rdvl-sve \ 7 sve-test sve-stress \ 8 ssve-test ssve-stress \ 9 za-test za-stress \ 10 vlset 11 12all: $(TEST_GEN_PROGS) $(TEST_PROGS_EXTENDED) 13 14# Build with nolibc to avoid effects due to libc's clone() support 15fp-pidbench: fp-pidbench.S asm-utils.o 16 $(CC) -nostdlib $^ -o $@ 17fpsimd-test: fpsimd-test.o asm-utils.o 18 $(CC) -nostdlib $^ -o $@ 19rdvl-sme: rdvl-sme.o rdvl.o 20rdvl-sve: rdvl-sve.o rdvl.o 21sve-ptrace: sve-ptrace.o 22sve-probe-vls: sve-probe-vls.o rdvl.o 23sve-test: sve-test.o asm-utils.o 24 $(CC) -nostdlib $^ -o $@ 25ssve-test: sve-test.S asm-utils.o 26 $(CC) -DSSVE -nostdlib $^ -o $@ 27vec-syscfg: vec-syscfg.o rdvl.o 28vlset: vlset.o 29za-fork: za-fork.o za-fork-asm.o 30 $(CC) -nostdlib -static $^ -o $@ -lgcc 31za-fork.o: za-fork.c 32 $(CC) -c -fno-asynchronous-unwind-tables -fno-ident -s -Os -nostdlib \ 33 -include ../../../../include/nolibc/nolibc.h \ 34 -ffreestanding -Wall $^ -o $@ 35za-test: za-test.o asm-utils.o 36 $(CC) -nostdlib $^ -o $@ 37za-ptrace: za-ptrace.o 38 39include ../../lib.mk 40