1# SPDX-License-Identifier: GPL-2.0 2ifndef CROSS_COMPILE 3CFLAGS := -std=gnu99 4CFLAGS_vdso_standalone_test_x86 := -nostdlib -fno-asynchronous-unwind-tables -fno-stack-protector 5ifeq ($(CONFIG_X86_32),y) 6LDLIBS += -lgcc_s 7endif 8 9TEST_PROGS := vdso_test vdso_standalone_test_x86 10 11all: $(TEST_PROGS) 12vdso_test: parse_vdso.c vdso_test.c 13vdso_standalone_test_x86: vdso_standalone_test_x86.c parse_vdso.c 14 $(CC) $(CFLAGS) $(CFLAGS_vdso_standalone_test_x86) \ 15 vdso_standalone_test_x86.c parse_vdso.c \ 16 -o vdso_standalone_test_x86 17 18include ../lib.mk 19clean: 20 rm -fr $(TEST_PROGS) 21endif 22