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
5 # Copyright (C) 1994 by Linus Torvalds
6 # Adapted for PowerPC by Gary Thomas
7 # modified by Cort (cort@cs.nmt.edu)
10 CFLAGS += -fno-builtin -D__BOOTER__ -Iarch/$(ARCH)/boot/include
11 HOSTCFLAGS += -Iarch/$(ARCH)/boot/include
13 BOOT_TARGETS = zImage zImage.initrd znetboot znetboot.initrd
16 bootdir-$(CONFIG_PPC_OF) += openfirmware
17 subdir-y := lib common images
18 subdir-$(CONFIG_PPC_MULTIPLATFORM) += of1275
21 subdir- += simple openfirmware
23 hostprogs-y := $(addprefix utils/, addnote mknote hack-coff mkprep mkbugboot mktree)
25 .PHONY: $(BOOT_TARGETS) $(bootdir-y)
27 $(BOOT_TARGETS): $(bootdir-y)
29 $(bootdir-y): $(addprefix $(obj)/,$(subdir-y)) \
30 $(addprefix $(obj)/,$(hostprogs-y))
31 $(Q)$(MAKE) $(build)=$(obj)/$@ $(MAKECMDGOALS)