Makefile 544 B

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