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 libc-gcs gcs-locking 10 11LDLIBS+=-lpthread 12 13include ../../lib.mk 14 15$(OUTPUT)/basic-gcs: basic-gcs.c 16 $(CC) -g -fno-asynchronous-unwind-tables -fno-ident -s -Os -nostdlib \ 17 -static -include ../../../../include/nolibc/nolibc.h \ 18 -I../../../../../usr/include \ 19 -std=gnu99 -I../.. -g \ 20 -ffreestanding -Wall $^ -o $@ -lgcc 21