Makefile 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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__
  13. cflags-y := -pipe -mno-fp-regs -ffixed-8
  14. cflags-y += $(call cc-option, -fno-jump-tables)
  15. cpuflags-$(CONFIG_ALPHA_EV56) := -mcpu=ev56
  16. cpuflags-$(CONFIG_ALPHA_POLARIS) := -mcpu=pca56
  17. cpuflags-$(CONFIG_ALPHA_SX164) := -mcpu=pca56
  18. cpuflags-$(CONFIG_ALPHA_EV6) := -mcpu=ev6
  19. cpuflags-$(CONFIG_ALPHA_EV67) := -mcpu=ev67
  20. # If GENERIC, make sure to turn off any instruction set extensions that
  21. # the host compiler might have on by default.
  22. cpuflags-$(CONFIG_ALPHA_GENERIC) := -mcpu=ev56 -mtune=ev6
  23. cflags-y += $(cpuflags-y)
  24. # For TSUNAMI, we must have the assembler not emulate our instructions.
  25. # The same is true for IRONGATE, POLARIS, PYXIS.
  26. # BWX is most important, but we don't really want any emulation ever.
  27. KBUILD_CFLAGS += $(cflags-y) -Wa,-mev6
  28. libs-y += arch/alpha/lib/
  29. # export what is needed by arch/alpha/boot/Makefile
  30. LIBS_Y := $(patsubst %/, %/lib.a, $(libs-y))
  31. export LIBS_Y
  32. boot := arch/alpha/boot
  33. #Default target when executing make with no arguments
  34. all boot: $(boot)/vmlinux.gz
  35. $(boot)/vmlinux.gz: vmlinux
  36. $(Q)$(MAKE) $(build)=$(boot) $@
  37. bootimage bootpfile bootpzfile: vmlinux
  38. $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
  39. archheaders:
  40. $(Q)$(MAKE) $(build)=arch/alpha/kernel/syscalls all
  41. define archhelp
  42. echo '* boot - Compressed kernel image (arch/alpha/boot/vmlinux.gz)'
  43. echo ' bootimage - SRM bootable image (arch/alpha/boot/bootimage)'
  44. echo ' bootpfile - BOOTP bootable image (arch/alpha/boot/bootpfile)'
  45. echo ' bootpzfile - compressed kernel BOOTP image (arch/alpha/boot/bootpzfile)'
  46. endef