kbuild: fix up CFLAGS usage
[linux-2.6/verdex.git] / arch / ppc / boot / Makefile
blob487dc66dcc7414d9f1ca67508b06c5dbb1f82852
2 # arch/ppc/boot/Makefile
4 # This file is included by the global makefile so that you can add your own
5 # architecture-specific flags and dependencies.
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.
11 # Copyright (C) 1994 by Linus Torvalds
12 # Adapted for PowerPC by Gary Thomas
13 # modified by Cort (cort@cs.nmt.edu)
16 HOSTCFLAGS += -Iarch/$(ARCH)/boot/include
18 BOOT_TARGETS = zImage zImage.initrd znetboot znetboot.initrd
20 bootdir-y := simple
21 subdir-y := lib common images
22 subdir-$(CONFIG_PPC_PREP) += of1275
24 # for cleaning
25 subdir- += simple
27 hostprogs-y := $(addprefix utils/, mkprep mkbugboot mktree)
29 PHONY += $(BOOT_TARGETS) $(bootdir-y)
31 $(BOOT_TARGETS): $(bootdir-y)
33 $(bootdir-y): $(addprefix $(obj)/,$(subdir-y)) \
34 $(addprefix $(obj)/,$(hostprogs-y))
35 $(Q)$(MAKE) $(build)=$(obj)/$@ $(MAKECMDGOALS)