Makefile 1017 B

12345678910111213141516171819202122232425262728293031323334
  1. # $Id: Makefile,v 1.4 1997/12/15 20:08:56 ecd Exp $
  2. # Makefile for the Sparc64 boot stuff.
  3. #
  4. # Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
  5. # Copyright (C) 1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
  6. ROOT_IMG := /usr/src/root.img
  7. ELFTOAOUT := elftoaout
  8. hostprogs-y := piggyback
  9. targets := image tftpboot.img vmlinux.aout
  10. quiet_cmd_elftoaout = ELF2AOUT $@
  11. cmd_elftoaout = $(ELFTOAOUT) vmlinux -o $@
  12. quiet_cmd_piggy = PIGGY $@
  13. cmd_piggy = $(obj)/piggyback $@ System.map $(ROOT_IMG)
  14. quiet_cmd_strip = STRIP $@
  15. cmd_strip = $(STRIP) -R .comment -R .note -K sun4u_init -K _end -K _start vmlinux -o $@
  16. # Actual linking
  17. $(obj)/image: vmlinux FORCE
  18. $(call if_changed,strip)
  19. @echo ' kernel: $@ is ready'
  20. $(obj)/tftpboot.img: vmlinux $(obj)/piggyback System.map $(ROOT_IMG) FORCE
  21. $(call if_changed,elftoaout)
  22. $(call if_changed,piggy)
  23. @echo ' kernel: $@ is ready'
  24. $(obj)/vmlinux.aout: vmlinux FORCE
  25. $(call if_changed,elftoaout)
  26. @echo ' kernel: $@ is ready'