xref: /titanic_41/usr/src/grub/Makefile (revision 1b8adde7ba7d5e04395c141c5400dc2cffd7d809)
1#
2# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
3# Use is subject to license terms.
4#
5# ident	"%Z%%M%	%I%	%E% SMI"
6#
7.KEEP_STATE:
8
9include ../Makefile.master
10include Makefile.grub
11
12all	:= TARGET = all
13install	:= TARGET = install
14clean	:= TARGET = clean
15clobber	:= TARGET = clobber
16
17GRUB	= grub-0.97
18
19SUBDIRS	= $(GRUB)
20
21SPLASH_IMAGE = splash.xpm.gz
22GRUB_MENU = menu.lst
23GRUB_DEFAULT = default
24INSTALL_MENU = install_menu
25CAPABILITY = capability
26
27INST_TARGETS = $(ROOT_BOOT_GRUB)/$(SPLASH_IMAGE)
28INST_TARGETS += $(ROOT_BOOT_GRUB)/$(GRUB_MENU)
29INST_TARGETS += $(ROOT_BOOT_GRUB)/$(INSTALL_MENU)
30INST_TARGETS += $(ROOT_BOOT_GRUB)/$(GRUB_DEFAULT)
31INST_TARGETS += $(ROOT_BOOT_GRUB)/$(CAPABILITY)
32
33$(ROOT_BOOT_GRUB)/$(GRUB_DEFAULT)   := FILEMODE = 444
34$(ROOT_BOOT_GRUB)/$(CAPABILITY)   := FILEMODE = 444
35
36all: $(SUBDIRS)
37
38install: $(SUBDIRS) $(INST_TARGETS)
39
40
41# Makefiles in the GRUB source tree are named "Makefile.solaris".
42$(GRUB): FRC
43	cd $@; pwd; $(MAKE) -f Makefile.solaris $(TARGET)
44
45$(ROOT_BOOT_GRUB)/%: $(ROOT_BOOT_GRUB) %
46	$(INS.file)
47
48$(ROOT_BOOT_GRUB):
49	$(INS.dir)
50
51
52clean clobber: $(SUBDIRS)
53
54FRC:
55