1 # SPDX-License-Identifier: GPL-2.0
3 TEST_GEN_PROGS := nolibc-test
6 include $(top_srcdir)/scripts/Makefile.compiler
8 cc-option = $(call __cc-option, $(CC),,$(1),$(2))
10 include Makefile.include
12 CFLAGS = -nostdlib -nostdinc -static \
13 -isystem $(top_srcdir)/tools/include/nolibc -isystem $(top_srcdir)/usr/include \
20 $(OUTPUT)/nolibc-test: nolibc-test.c nolibc-test-linkage.c | headers
23 @echo "For the custom nolibc testsuite use '$(MAKE) -f Makefile.nolibc'; available targets:"
24 @$(MAKE) -f Makefile.nolibc help