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 9 include ../Makefile.master 10 include Makefile.grub 11 12 all := TARGET = all 13 install := TARGET = install 14 clean := TARGET = clean 15 clobber := TARGET = clobber 16 17 GRUB = grub-0.95 18 19 SUBDIRS = $(GRUB) 20 21 SPLASH_IMAGE = splash.xpm.gz 22 GRUB_MENU = menu.lst 23 GRUB_DEFAULT = default 24 INSTALL_MENU = install_menu 25 CAPABILITY = capability 26 27 INST_TARGETS = $(ROOT_BOOT_GRUB)/$(SPLASH_IMAGE) 28 INST_TARGETS += $(ROOT_BOOT_GRUB)/$(GRUB_MENU) 29 INST_TARGETS += $(ROOT_BOOT_GRUB)/$(INSTALL_MENU) 30 INST_TARGETS += $(ROOT_BOOT_GRUB)/$(GRUB_DEFAULT) 31 INST_TARGETS += $(ROOT_BOOT_GRUB)/$(CAPABILITY) 32 33 $(ROOT_BOOT_GRUB)/$(GRUB_DEFAULT) := FILEMODE = 444 34 $(ROOT_BOOT_GRUB)/$(CAPABILITY) := FILEMODE = 444 35 36 all: $(SUBDIRS) 37 38 install: $(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 52 clean clobber: $(SUBDIRS) 53 54 FRC: 55