1# SPDX-License-Identifier: GPL-2.0 2 3CFLAGS += -O3 -Wl,-no-as-needed -Wall -I $(top_srcdir)/usr/include 4ifneq ($(WERROR),0) 5 CFLAGS += -Werror 6endif 7 8LDLIBS += -lpthread -lm -luring 9 10TEST_PROGS := test_generic_01.sh 11TEST_PROGS += test_generic_02.sh 12TEST_PROGS += test_generic_03.sh 13TEST_PROGS += test_generic_04.sh 14TEST_PROGS += test_generic_05.sh 15TEST_PROGS += test_generic_06.sh 16TEST_PROGS += test_generic_07.sh 17 18TEST_PROGS += test_generic_08.sh 19TEST_PROGS += test_generic_09.sh 20TEST_PROGS += test_generic_10.sh 21TEST_PROGS += test_generic_11.sh 22TEST_PROGS += test_generic_12.sh 23TEST_PROGS += test_generic_13.sh 24TEST_PROGS += test_generic_14.sh 25 26TEST_PROGS += test_null_01.sh 27TEST_PROGS += test_null_02.sh 28TEST_PROGS += test_null_03.sh 29TEST_PROGS += test_loop_01.sh 30TEST_PROGS += test_loop_02.sh 31TEST_PROGS += test_loop_03.sh 32TEST_PROGS += test_loop_04.sh 33TEST_PROGS += test_loop_05.sh 34TEST_PROGS += test_loop_06.sh 35TEST_PROGS += test_loop_07.sh 36TEST_PROGS += test_stripe_01.sh 37TEST_PROGS += test_stripe_02.sh 38TEST_PROGS += test_stripe_03.sh 39TEST_PROGS += test_stripe_04.sh 40TEST_PROGS += test_stripe_05.sh 41TEST_PROGS += test_stripe_06.sh 42 43TEST_PROGS += test_stress_01.sh 44TEST_PROGS += test_stress_02.sh 45TEST_PROGS += test_stress_03.sh 46TEST_PROGS += test_stress_04.sh 47TEST_PROGS += test_stress_05.sh 48TEST_PROGS += test_stress_06.sh 49TEST_PROGS += test_stress_07.sh 50 51TEST_GEN_PROGS_EXTENDED = kublk 52 53include ../lib.mk 54 55$(TEST_GEN_PROGS_EXTENDED): kublk.c null.c file_backed.c common.c stripe.c \ 56 fault_inject.c 57 58check: 59 shellcheck -x -f gcc *.sh 60