blob: b739e25d4728bca49f984c7603fd358d903c2964 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
2# arch/ppc/boot/Makefile
3#
Paul Smith4f193362006-03-05 17:14:10 -05004# This file is included by the global makefile so that you can add your own
5# architecture-specific flags and dependencies.
6#
Linus Torvalds1da177e2005-04-16 15:20:36 -07007# 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
16CFLAGS += -fno-builtin -D__BOOTER__ -Iarch/$(ARCH)/boot/include
17HOSTCFLAGS += -Iarch/$(ARCH)/boot/include
18
19BOOT_TARGETS = zImage zImage.initrd znetboot znetboot.initrd
20
21bootdir-y := simple
Linus Torvalds1da177e2005-04-16 15:20:36 -070022subdir-y := lib common images
Paul Mackerras0a26b132006-03-28 10:22:10 +110023subdir-$(CONFIG_PPC_PREP) += of1275
Linus Torvalds1da177e2005-04-16 15:20:36 -070024
25# for cleaning
Paul Mackerras0a26b132006-03-28 10:22:10 +110026subdir- += simple
Linus Torvalds1da177e2005-04-16 15:20:36 -070027
Paul Mackerras0a26b132006-03-28 10:22:10 +110028hostprogs-y := $(addprefix utils/, mkprep mkbugboot mktree)
Linus Torvalds1da177e2005-04-16 15:20:36 -070029
Paul Smith4f193362006-03-05 17:14:10 -050030PHONY += $(BOOT_TARGETS) $(bootdir-y)
Linus Torvalds1da177e2005-04-16 15:20:36 -070031
32$(BOOT_TARGETS): $(bootdir-y)
33
34$(bootdir-y): $(addprefix $(obj)/,$(subdir-y)) \
35 $(addprefix $(obj)/,$(hostprogs-y))
36 $(Q)$(MAKE) $(build)=$(obj)/$@ $(MAKECMDGOALS)