Merge git://oss.sgi.com:8090/oss/git/xfs-2.6
[sfrench/cifs-2.6.git] / arch / ppc / boot / Makefile
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
10 CFLAGS          += -fno-builtin -D__BOOTER__ -Iarch/$(ARCH)/boot/include
11 HOSTCFLAGS      += -Iarch/$(ARCH)/boot/include
12
13 BOOT_TARGETS    = zImage zImage.initrd znetboot znetboot.initrd
14
15 bootdir-y                       := simple
16 bootdir-$(CONFIG_PPC_OF)        += openfirmware
17 subdir-y                        := lib common images
18 subdir-$(CONFIG_PPC_MULTIPLATFORM)      += of1275
19
20 # for cleaning
21 subdir-                         += simple openfirmware
22
23 hostprogs-y := $(addprefix utils/, addnote mknote hack-coff mkprep mkbugboot mktree)
24
25 .PHONY: $(BOOT_TARGETS) $(bootdir-y)
26
27 $(BOOT_TARGETS): $(bootdir-y)
28
29 $(bootdir-y): $(addprefix $(obj)/,$(subdir-y)) \
30                 $(addprefix $(obj)/,$(hostprogs-y))
31         $(Q)$(MAKE) $(build)=$(obj)/$@ $(MAKECMDGOALS)