1f9b6b0efSShuah Khanifndef CROSS_COMPILE 2f9b6b0efSShuah KhanCFLAGS := -std=gnu99 3f9b6b0efSShuah KhanCFLAGS_vdso_standalone_test_x86 := -nostdlib -fno-asynchronous-unwind-tables -fno-stack-protector 4f9b6b0efSShuah Khanifeq ($(CONFIG_X86_32),y) 5f9b6b0efSShuah KhanLDLIBS += -lgcc_s 6f9b6b0efSShuah Khanendif 7f9b6b0efSShuah Khan 8f9b6b0efSShuah KhanTEST_PROGS := vdso_test vdso_standalone_test_x86 9f9b6b0efSShuah Khan 10f9b6b0efSShuah Khanall: $(TEST_PROGS) 11f9b6b0efSShuah Khanvdso_test: parse_vdso.c vdso_test.c 12f9b6b0efSShuah Khanvdso_standalone_test_x86: vdso_standalone_test_x86.c parse_vdso.c 13f9b6b0efSShuah Khan $(CC) $(CFLAGS) $(CFLAGS_vdso_standalone_test_x86) \ 14f9b6b0efSShuah Khan vdso_standalone_test_x86.c parse_vdso.c \ 15f9b6b0efSShuah Khan -o vdso_standalone_test_x86 16f9b6b0efSShuah Khan 17f9b6b0efSShuah Khaninclude ../lib.mk 18f9b6b0efSShuah Khanclean: 19f9b6b0efSShuah Khan rm -fr $(TEST_PROGS) 20f9b6b0efSShuah Khanendif 21