xref: /linux/tools/testing/selftests/sched/Makefile (revision 9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e)
1# SPDX-License-Identifier: GPL-2.0+
2
3ifneq ($(shell $(CC) --version 2>&1 | head -n 1 | grep clang),)
4CLANG_FLAGS += -no-integrated-as
5endif
6
7CFLAGS += -O2 -Wall -g -I./ $(KHDR_INCLUDES) -Wl,-rpath=./ \
8	  $(CLANG_FLAGS)
9LDLIBS += -lpthread
10
11TEST_GEN_FILES := cs_prctl_test
12TEST_PROGS := cs_prctl_test
13
14include ../lib.mk
15