blob: 3d5a62ff7d31ed437fc5457a501ec9b606839f92 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Shuah Khanf9b6b0e2016-09-13 12:06:20 -06002ifndef 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