Makefile 940 B

12345678910111213141516171819202122232425262728293031
  1. # This file is subject to the terms and conditions of the GNU General Public
  2. # License. See the file "COPYING" in the main directory of this archive
  3. # for more details.
  4. #
  5. # Copyright (C) 1994 by Linus Torvalds
  6. # Adapted for PowerPC by Gary Thomas
  7. # modified by Cort (cort@cs.nmt.edu)
  8. #
  9. CFLAGS += -fno-builtin -D__BOOTER__ -Iarch/$(ARCH)/boot/include
  10. HOSTCFLAGS += -Iarch/$(ARCH)/boot/include
  11. BOOT_TARGETS = zImage zImage.initrd znetboot znetboot.initrd
  12. bootdir-y := simple
  13. bootdir-$(CONFIG_PPC_OF) += openfirmware
  14. subdir-y := lib common images
  15. subdir-$(CONFIG_PPC_MULTIPLATFORM) += of1275
  16. # for cleaning
  17. subdir- += simple openfirmware
  18. hostprogs-y := $(addprefix utils/, addnote mknote hack-coff mkprep mkbugboot mktree)
  19. .PHONY: $(BOOT_TARGETS) $(bootdir-y)
  20. $(BOOT_TARGETS): $(bootdir-y)
  21. $(bootdir-y): $(addprefix $(obj)/,$(subdir-y)) \
  22. $(addprefix $(obj)/,$(hostprogs-y))
  23. $(Q)$(MAKE) $(build)=$(obj)/$@ $(MAKECMDGOALS)