Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #
  2. # arch/ppc/boot/Makefile
  3. #
  4. # This file is included by the global makefile so that you can add your own
  5. # architecture-specific flags and dependencies.
  6. #
  7. # This file is subject to the terms and conditions of the GNU General Public
  8. # License. See the file "COPYING" in the main directory of this archive
  9. # for more details.
  10. #
  11. # Copyright (C) 1994 by Linus Torvalds
  12. # Adapted for PowerPC by Gary Thomas
  13. # modified by Cort (cort@cs.nmt.edu)
  14. #
  15. # KBUILD_CFLAGS used when building rest of boot (takes effect recursively)
  16. KBUILD_CFLAGS += -fno-builtin -D__BOOTER__ -Iarch/$(ARCH)/boot/include
  17. HOSTCFLAGS += -Iarch/$(ARCH)/boot/include
  18. BOOT_TARGETS = zImage zImage.initrd znetboot znetboot.initrd
  19. bootdir-y := simple
  20. subdir-y := lib common images
  21. subdir-$(CONFIG_PPC_PREP) += of1275
  22. # for cleaning
  23. subdir- += simple
  24. hostprogs-y := $(addprefix utils/, mkprep mkbugboot mktree)
  25. PHONY += $(BOOT_TARGETS) $(bootdir-y)
  26. $(BOOT_TARGETS): $(bootdir-y)
  27. $(bootdir-y): $(addprefix $(obj)/,$(subdir-y)) \
  28. $(addprefix $(obj)/,$(hostprogs-y))
  29. $(Q)$(MAKE) $(build)=$(obj)/$@ $(MAKECMDGOALS)