Home | History | Annotate | Download | only in vDSO
      1 # SPDX-License-Identifier: GPL-2.0
      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
     22