blob: 487dc66dcc7414d9f1ca67508b06c5dbb1f82852 [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
Linus Torvalds1da177e2005-04-16 15:20:36 -070016HOSTCFLAGS += -Iarch/$(ARCH)/boot/include
17
18BOOT_TARGETS = zImage zImage.initrd znetboot znetboot.initrd
19
20bootdir-y := simple
Linus Torvalds1da177e2005-04-16 15:20:36 -070021subdir-y := lib common images
Paul Mackerras0a26b132006-03-28 10:22:10 +110022subdir-$(CONFIG_PPC_PREP) += of1275
Linus Torvalds1da177e2005-04-16 15:20:36 -070023
24# for cleaning
Paul Mackerras0a26b132006-03-28 10:22:10 +110025subdir- += simple
Linus Torvalds1da177e2005-04-16 15:20:36 -070026
Paul Mackerras0a26b132006-03-28 10:22:10 +110027hostprogs-y := $(addprefix utils/, mkprep mkbugboot mktree)
Linus Torvalds1da177e2005-04-16 15:20:36 -070028
Paul Smith4f193362006-03-05 17:14:10 -050029PHONY += $(BOOT_TARGETS) $(bootdir-y)
Linus Torvalds1da177e2005-04-16 15:20:36 -070030
31$(BOOT_TARGETS): $(bootdir-y)
32
33$(bootdir-y): $(addprefix $(obj)/,$(subdir-y)) \
34 $(addprefix $(obj)/,$(hostprogs-y))
35 $(Q)$(MAKE) $(build)=$(obj)/$@ $(MAKECMDGOALS)