Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Shuah Khan | f9b6b0e | 2016-09-13 12:06:20 -0600 | [diff] [blame] | 2 | ifndef CROSS_COMPILE |
| 3 | CFLAGS := -std=gnu99 |
| 4 | CFLAGS_vdso_standalone_test_x86 := -nostdlib -fno-asynchronous-unwind-tables -fno-stack-protector |
| 5 | ifeq ($(CONFIG_X86_32),y) |
| 6 | LDLIBS += -lgcc_s |
| 7 | endif |
| 8 | |
| 9 | TEST_PROGS := vdso_test vdso_standalone_test_x86 |
| 10 | |
| 11 | all: $(TEST_PROGS) |
| 12 | vdso_test: parse_vdso.c vdso_test.c |
| 13 | vdso_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 | |
| 18 | include ../lib.mk |
| 19 | clean: |
| 20 | rm -fr $(TEST_PROGS) |
| 21 | endif |