1# SPDX-License-Identifier: GPL-2.0 2# Copyright (C) 2023 ARM Limited 3# 4# In order to avoid interaction with the toolchain and dynamic linker the 5# portions of these tests that interact with the GCS are implemented using 6# nolibc. 7# 8 9TEST_GEN_PROGS := basic-gcs 10 11include ../../lib.mk 12 13$(OUTPUT)/basic-gcs: basic-gcs.c 14 $(CC) -g -fno-asynchronous-unwind-tables -fno-ident -s -Os -nostdlib \ 15 -static -include ../../../../include/nolibc/nolibc.h \ 16 -I../../../../../usr/include \ 17 -std=gnu99 -I../.. -g \ 18 -ffreestanding -Wall $^ -o $@ -lgcc 19