Makefile 958 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #
  2. # ia64/boot/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) 1998, 2003 by David Mosberger-Tang <davidm@hpl.hp.com>
  9. #
  10. targets-$(CONFIG_IA64_HP_SIM) += bootloader
  11. targets := vmlinux.bin vmlinux.gz $(targets-y)
  12. quiet_cmd_cptotop = LN $@
  13. cmd_cptotop = ln -f $< $@
  14. vmlinux.gz: $(obj)/vmlinux.gz $(addprefix $(obj)/,$(targets-y))
  15. $(call cmd,cptotop)
  16. @echo ' Kernel: $@ is ready'
  17. boot: bootloader
  18. bootloader: $(obj)/bootloader
  19. $(call cmd,cptotop)
  20. $(obj)/vmlinux.gz: $(obj)/vmlinux.bin FORCE
  21. $(call if_changed,gzip)
  22. $(obj)/vmlinux.bin: vmlinux FORCE
  23. $(call if_changed,objcopy)
  24. LDFLAGS_bootloader = -static -T
  25. $(obj)/bootloader: $(src)/bootloader.lds $(obj)/bootloader.o $(obj)/boot_head.o $(obj)/fw-emu.o \
  26. lib/lib.a arch/ia64/lib/lib.a FORCE
  27. $(call if_changed,ld)