xref: /illumos-gate/usr/src/grub/Makefile (revision 1b8adde7)
17c478bd9Sstevel@tonic-gate#
2eb2bd662Svikram# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
37c478bd9Sstevel@tonic-gate# Use is subject to license terms.
47c478bd9Sstevel@tonic-gate#
57c478bd9Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
67c478bd9Sstevel@tonic-gate#
77c478bd9Sstevel@tonic-gate.KEEP_STATE:
87c478bd9Sstevel@tonic-gate
97c478bd9Sstevel@tonic-gateinclude ../Makefile.master
107c478bd9Sstevel@tonic-gateinclude Makefile.grub
117c478bd9Sstevel@tonic-gate
127c478bd9Sstevel@tonic-gateall	:= TARGET = all
137c478bd9Sstevel@tonic-gateinstall	:= TARGET = install
147c478bd9Sstevel@tonic-gateclean	:= TARGET = clean
157c478bd9Sstevel@tonic-gateclobber	:= TARGET = clobber
167c478bd9Sstevel@tonic-gate
17*1b8adde7SWilliam KucharskiGRUB	= grub-0.97
187c478bd9Sstevel@tonic-gate
197c478bd9Sstevel@tonic-gateSUBDIRS	= $(GRUB)
207c478bd9Sstevel@tonic-gate
217c478bd9Sstevel@tonic-gateSPLASH_IMAGE = splash.xpm.gz
227c478bd9Sstevel@tonic-gateGRUB_MENU = menu.lst
2363f82aa9SszhouGRUB_DEFAULT = default
247c478bd9Sstevel@tonic-gateINSTALL_MENU = install_menu
25eb2bd662SvikramCAPABILITY = capability
267c478bd9Sstevel@tonic-gate
277c478bd9Sstevel@tonic-gateINST_TARGETS = $(ROOT_BOOT_GRUB)/$(SPLASH_IMAGE)
287c478bd9Sstevel@tonic-gateINST_TARGETS += $(ROOT_BOOT_GRUB)/$(GRUB_MENU)
297c478bd9Sstevel@tonic-gateINST_TARGETS += $(ROOT_BOOT_GRUB)/$(INSTALL_MENU)
3063f82aa9SszhouINST_TARGETS += $(ROOT_BOOT_GRUB)/$(GRUB_DEFAULT)
31eb2bd662SvikramINST_TARGETS += $(ROOT_BOOT_GRUB)/$(CAPABILITY)
3263f82aa9Sszhou
3363f82aa9Sszhou$(ROOT_BOOT_GRUB)/$(GRUB_DEFAULT)   := FILEMODE = 444
34eb2bd662Svikram$(ROOT_BOOT_GRUB)/$(CAPABILITY)   := FILEMODE = 444
357c478bd9Sstevel@tonic-gate
367c478bd9Sstevel@tonic-gateall: $(SUBDIRS)
377c478bd9Sstevel@tonic-gate
387c478bd9Sstevel@tonic-gateinstall: $(SUBDIRS) $(INST_TARGETS)
397c478bd9Sstevel@tonic-gate
407c478bd9Sstevel@tonic-gate
417c478bd9Sstevel@tonic-gate# Makefiles in the GRUB source tree are named "Makefile.solaris".
427c478bd9Sstevel@tonic-gate$(GRUB): FRC
437c478bd9Sstevel@tonic-gate	cd $@; pwd; $(MAKE) -f Makefile.solaris $(TARGET)
447c478bd9Sstevel@tonic-gate
457c478bd9Sstevel@tonic-gate$(ROOT_BOOT_GRUB)/%: $(ROOT_BOOT_GRUB) %
467c478bd9Sstevel@tonic-gate	$(INS.file)
477c478bd9Sstevel@tonic-gate
487c478bd9Sstevel@tonic-gate$(ROOT_BOOT_GRUB):
497c478bd9Sstevel@tonic-gate	$(INS.dir)
507c478bd9Sstevel@tonic-gate
517c478bd9Sstevel@tonic-gate
52c6fe1048Sjongkisclean clobber: $(SUBDIRS)
537c478bd9Sstevel@tonic-gate
547c478bd9Sstevel@tonic-gateFRC:
55