1# SPDX-License-Identifier: GPL-2.0 2# Copyright (C) 2021 ARM Limited 3# Originally tools/testing/arm64/abi/Makefile 4 5TEST_GEN_PROGS := vstate_prctl v_initval_nolibc 6TEST_GEN_PROGS_EXTENDED := vstate_exec_nolibc 7 8include ../../lib.mk 9 10$(OUTPUT)/vstate_prctl: vstate_prctl.c ../hwprobe/sys_hwprobe.S 11 $(CC) -static -o$@ $(CFLAGS) $(LDFLAGS) $^ 12 13$(OUTPUT)/vstate_exec_nolibc: vstate_exec_nolibc.c 14 $(CC) -nostdlib -static -include ../../../../include/nolibc/nolibc.h \ 15 -Wall $(CFLAGS) $(LDFLAGS) $^ -o $@ -lgcc 16 17$(OUTPUT)/v_initval_nolibc: v_initval_nolibc.c 18 $(CC) -nostdlib -static -include ../../../../include/nolibc/nolibc.h \ 19 -Wall $(CFLAGS) $(LDFLAGS) $^ -o $@ -lgcc 20