]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - tools/testing/selftests/vDSO/Makefile
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-bionic-kernel.git] / tools / testing / selftests / vDSO / Makefile
CommitLineData
b2441318 1# SPDX-License-Identifier: GPL-2.0
f9b6b0ef
SK
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