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