1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 2f9b6b0efSShuah Khanifndef CROSS_COMPILE 3f9b6b0efSShuah KhanCFLAGS := -std=gnu99 4f9b6b0efSShuah KhanCFLAGS_vdso_standalone_test_x86 := -nostdlib -fno-asynchronous-unwind-tables -fno-stack-protector 5f9b6b0efSShuah Khanifeq ($(CONFIG_X86_32),y) 6f9b6b0efSShuah KhanLDLIBS += -lgcc_s 7f9b6b0efSShuah Khanendif 8f9b6b0efSShuah Khan 9f9b6b0efSShuah KhanTEST_PROGS := vdso_test vdso_standalone_test_x86 10f9b6b0efSShuah Khan 11f9b6b0efSShuah Khanall: $(TEST_PROGS) 12f9b6b0efSShuah Khanvdso_test: parse_vdso.c vdso_test.c 13f9b6b0efSShuah Khanvdso_standalone_test_x86: vdso_standalone_test_x86.c parse_vdso.c 14f9b6b0efSShuah Khan $(CC) $(CFLAGS) $(CFLAGS_vdso_standalone_test_x86) \ 15f9b6b0efSShuah Khan vdso_standalone_test_x86.c parse_vdso.c \ 16f9b6b0efSShuah Khan -o vdso_standalone_test_x86 17f9b6b0efSShuah Khan 18f9b6b0efSShuah Khaninclude ../lib.mk 19f9b6b0efSShuah Khanclean: 20f9b6b0efSShuah Khan rm -fr $(TEST_PROGS) 21f9b6b0efSShuah Khanendif 22