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