xref: /titanic_51/usr/src/grub/Makefile (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1*7c478bd9Sstevel@tonic-gate#
2*7c478bd9Sstevel@tonic-gate# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
3*7c478bd9Sstevel@tonic-gate# Use is subject to license terms.
4*7c478bd9Sstevel@tonic-gate#
5*7c478bd9Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
6*7c478bd9Sstevel@tonic-gate#
7*7c478bd9Sstevel@tonic-gate.KEEP_STATE:
8*7c478bd9Sstevel@tonic-gate
9*7c478bd9Sstevel@tonic-gateinclude ../Makefile.master
10*7c478bd9Sstevel@tonic-gateinclude Makefile.grub
11*7c478bd9Sstevel@tonic-gate
12*7c478bd9Sstevel@tonic-gateall	:= TARGET = all
13*7c478bd9Sstevel@tonic-gateinstall	:= TARGET = install
14*7c478bd9Sstevel@tonic-gateclean	:= TARGET = clean
15*7c478bd9Sstevel@tonic-gateclobber	:= TARGET = clobber
16*7c478bd9Sstevel@tonic-gate
17*7c478bd9Sstevel@tonic-gateGRUB	= grub-0.95
18*7c478bd9Sstevel@tonic-gate
19*7c478bd9Sstevel@tonic-gateSUBDIRS	= $(GRUB)
20*7c478bd9Sstevel@tonic-gate
21*7c478bd9Sstevel@tonic-gateSPLASH_IMAGE = splash.xpm.gz
22*7c478bd9Sstevel@tonic-gateGRUB_MENU = menu.lst
23*7c478bd9Sstevel@tonic-gateINSTALL_MENU = install_menu
24*7c478bd9Sstevel@tonic-gate
25*7c478bd9Sstevel@tonic-gateINST_TARGETS = $(ROOT_BOOT_GRUB)/$(SPLASH_IMAGE)
26*7c478bd9Sstevel@tonic-gateINST_TARGETS += $(ROOT_BOOT_GRUB)/$(GRUB_MENU)
27*7c478bd9Sstevel@tonic-gateINST_TARGETS += $(ROOT_BOOT_GRUB)/$(INSTALL_MENU)
28*7c478bd9Sstevel@tonic-gate
29*7c478bd9Sstevel@tonic-gateall: $(SUBDIRS)
30*7c478bd9Sstevel@tonic-gate
31*7c478bd9Sstevel@tonic-gateinstall: $(SUBDIRS) $(INST_TARGETS)
32*7c478bd9Sstevel@tonic-gate
33*7c478bd9Sstevel@tonic-gate
34*7c478bd9Sstevel@tonic-gate# Makefiles in the GRUB source tree are named "Makefile.solaris".
35*7c478bd9Sstevel@tonic-gate$(GRUB): FRC
36*7c478bd9Sstevel@tonic-gate	cd $@; pwd; $(MAKE) -f Makefile.solaris $(TARGET)
37*7c478bd9Sstevel@tonic-gate
38*7c478bd9Sstevel@tonic-gate$(ROOT_BOOT_GRUB)/%: $(ROOT_BOOT_GRUB) %
39*7c478bd9Sstevel@tonic-gate	$(INS.file)
40*7c478bd9Sstevel@tonic-gate
41*7c478bd9Sstevel@tonic-gate$(ROOT_BOOT_GRUB):
42*7c478bd9Sstevel@tonic-gate	$(INS.dir)
43*7c478bd9Sstevel@tonic-gate
44*7c478bd9Sstevel@tonic-gate
45*7c478bd9Sstevel@tonic-gateclean: $(SUBDIRS)
46*7c478bd9Sstevel@tonic-gate
47*7c478bd9Sstevel@tonic-gateclobber: $(SUBDIRS)
48*7c478bd9Sstevel@tonic-gate	$(RM) $(INST_TARGETS)
49*7c478bd9Sstevel@tonic-gate
50*7c478bd9Sstevel@tonic-gateFRC:
51