Makefile 871 B

1234567891011121314151617181920212223242526272829
  1. #
  2. # Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
  3. #
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License version 2 as
  6. # published by the Free Software Foundation.
  7. # Pass UTS_MACHINE for user_regset definition
  8. CFLAGS_ptrace.o += -DUTS_MACHINE='"$(UTS_MACHINE)"'
  9. obj-y := arcksyms.o setup.o irq.o time.o reset.o ptrace.o entry.o process.o
  10. obj-y += signal.o traps.o sys.o troubleshoot.o stacktrace.o clk.o
  11. obj-y += devtree.o
  12. obj-$(CONFIG_MODULES) += arcksyms.o module.o
  13. obj-$(CONFIG_SMP) += smp.o
  14. obj-$(CONFIG_ARC_DW2_UNWIND) += unwind.o
  15. obj-$(CONFIG_ARC_FPU_SAVE_RESTORE) += fpu.o
  16. CFLAGS_fpu.o += -mdpfp
  17. ifdef CONFIG_ARC_DW2_UNWIND
  18. CFLAGS_ctx_sw.o += -fno-omit-frame-pointer
  19. obj-y += ctx_sw.o
  20. else
  21. obj-y += ctx_sw_asm.o
  22. endif
  23. extra-y := vmlinux.lds head.o