Makefile 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #
  2. # alpha/Makefile
  3. #
  4. # This file is subject to the terms and conditions of the GNU General Public
  5. # License. See the file "COPYING" in the main directory of this archive
  6. # for more details.
  7. #
  8. # Copyright (C) 1994 by Linus Torvalds
  9. #
  10. NM := $(NM) -B
  11. LDFLAGS_vmlinux := -static -N #-relax
  12. CHECKFLAGS += -D__alpha__ -m64
  13. cflags-y := -pipe -mno-fp-regs -ffixed-8 -msmall-data
  14. cpuflags-$(CONFIG_ALPHA_EV4) := -mcpu=ev4
  15. cpuflags-$(CONFIG_ALPHA_EV5) := -mcpu=ev5
  16. cpuflags-$(CONFIG_ALPHA_EV56) := -mcpu=ev56
  17. cpuflags-$(CONFIG_ALPHA_POLARIS) := -mcpu=pca56
  18. cpuflags-$(CONFIG_ALPHA_SX164) := -mcpu=pca56
  19. cpuflags-$(CONFIG_ALPHA_EV6) := -mcpu=ev6
  20. cpuflags-$(CONFIG_ALPHA_EV67) := -mcpu=ev67
  21. # If GENERIC, make sure to turn off any instruction set extensions that
  22. # the host compiler might have on by default. Given that EV4 and EV5
  23. # have the same instruction set, prefer EV5 because an EV5 schedule is
  24. # more likely to keep an EV4 processor busy than vice-versa.
  25. cpuflags-$(CONFIG_ALPHA_GENERIC) := -mcpu=ev5
  26. cflags-y += $(cpuflags-y)
  27. # For TSUNAMI, we must have the assembler not emulate our instructions.
  28. # The same is true for IRONGATE, POLARIS, PYXIS.
  29. # BWX is most important, but we don't really want any emulation ever.
  30. KBUILD_CFLAGS += $(cflags-y) -Wa,-mev6
  31. head-y := arch/alpha/kernel/head.o
  32. core-y += arch/alpha/kernel/ arch/alpha/mm/
  33. core-$(CONFIG_MATHEMU) += arch/alpha/math-emu/
  34. drivers-$(CONFIG_OPROFILE) += arch/alpha/oprofile/
  35. libs-y += arch/alpha/lib/
  36. # export what is needed by arch/alpha/boot/Makefile
  37. LIBS_Y := $(patsubst %/, %/lib.a, $(libs-y))
  38. export LIBS_Y
  39. boot := arch/alpha/boot
  40. #Default target when executing make with no arguments
  41. all boot: $(boot)/vmlinux.gz
  42. $(boot)/vmlinux.gz: vmlinux
  43. $(Q)$(MAKE) $(build)=$(boot) $@
  44. bootimage bootpfile bootpzfile: vmlinux
  45. $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
  46. archclean:
  47. $(Q)$(MAKE) $(clean)=$(boot)
  48. define archhelp
  49. echo '* boot - Compressed kernel image (arch/alpha/boot/vmlinux.gz)'
  50. echo ' bootimage - SRM bootable image (arch/alpha/boot/bootimage)'
  51. echo ' bootpfile - BOOTP bootable image (arch/alpha/boot/bootpfile)'
  52. echo ' bootpzfile - compressed kernel BOOTP image (arch/alpha/boot/bootpzfile)'
  53. endef