Makefile (86c8888f91a95a30d8a224c0c655ddac33d04eac) Makefile (212b0426bc361eede2f9ce43fb2a5b01070000a1)
1# SPDX-License-Identifier: GPL-2.0
2
3CFLAGS += -I../../../../../usr/include/
1# SPDX-License-Identifier: GPL-2.0
2
3CFLAGS += -I../../../../../usr/include/
4TEST_GEN_PROGS := sve-ptrace sve-probe-vls vec-syscfg za-ptrace
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
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
14fp-pidbench: fp-pidbench.S asm-utils.o
15 $(CC) -nostdlib $^ -o $@
16fpsimd-test: fpsimd-test.o asm-utils.o
17 $(CC) -nostdlib $^ -o $@
18rdvl-sme: rdvl-sme.o rdvl.o
19rdvl-sve: rdvl-sve.o rdvl.o
20sve-ptrace: sve-ptrace.o
21sve-probe-vls: sve-probe-vls.o rdvl.o
22sve-test: sve-test.o asm-utils.o
23 $(CC) -nostdlib $^ -o $@
24ssve-test: sve-test.S asm-utils.o
25 $(CC) -DSSVE -nostdlib $^ -o $@
26vec-syscfg: vec-syscfg.o rdvl.o
27vlset: vlset.o
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 $@
28za-test: za-test.o asm-utils.o
29 $(CC) -nostdlib $^ -o $@
30za-ptrace: za-ptrace.o
31
32include ../../lib.mk
35za-test: za-test.o asm-utils.o
36 $(CC) -nostdlib $^ -o $@
37za-ptrace: za-ptrace.o
38
39include ../../lib.mk