1N/A#
1N/A# Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved.
1N/A#
1N/Ainclude $(SRC)/Makefile.master
1N/A
1N/A.KEEP_STATE:
1N/A
1N/AVERSION = 0.95
1N/A
1N/A# $(POUND_SIGN) is just a #. Used to turn a feature off.
1N/A# The $(POUND_SIGN)POUND_SIGN:sh construct is just so make doesn't have to
1N/A# spawn a shell and redefine POUND_SIGN if it is already defined (e.g.
1N/A# $(SRC)/Makefile.master was already included).
1N/A#$(POUND_SIGN)POUND_SIGN:sh = echo '\043'
1N/A
1N/A
1N/A#
1N/A# Optional features (set to $(POUND_SIGN) to turn off):
1N/A#
1N/A# OPTION_UTILS:
1N/A# Build the userland utilities.
1N/A# NOTE: these utilities will be installed in
1N/A# /platform/$(PLATFORM)/boot/grub, not /boot/grub.
1N/A#
1N/A# OPTION_DOCS:
1N/A# Build and install some GRUB documentations, e.g. man and info files.
1N/A# NOTE: these docs will be installed in
1N/A# /platform/$(PLATFORM)/boot/grub, not /boot/grub.
1N/A#
1N/A# OPTION_FS:
1N/A# Build additional filesystem support into GRUB. This will increase
1N/A# the sizes of stage2 and pxegrub and may cause malfunction.
1N/A#
1N/A# STAGE2_NETBOOT:
1N/A# Include netboot support in stage2 (on by default).
1N/A# This only affects stage2, not pxegrub (diskless support).
1N/A#
1N/A# STAGE2_NETBOOT = $(POUND_SIGN)
1N/AOPTION_UTILS = $(POUND_SIGN)
1N/AOPTION_DOCS = $(POUND_SIGN)
1N/AOPTION_FS = $(POUND_SIGN)
1N/A
1N/A
1N/ABASE_CFLAGS = -B$(GNU_ROOT)/bin/ -g $(CPPFLAGS) $(OPTFLAGS)
1N/ABASE_CCASFLAGS = -B$(GNU_ROOT)/bin/ -g $(CPPFLAGS) $(OPTFLAGS)
1N/ABASE_LDFLAGS =
1N/A
1N/A$(NOTPARFAIT_BUILD)CC = $(GNU_ROOT)/bin/gcc
1N/A$(PARFAIT_BUILD)CC = $(PARFAIT_HOME)/bin/parfait-gcc
1N/ACFLAGS = $(BASE_CFLAGS)
1N/ACCDEPMODE = depmode=none
1N/A
1N/ACCAS = $(CC)
1N/ACCASFLAGS = $(BASE_CCASFLAGS)
1N/A
1N/ACPP = $(CC) -E
1N/A
1N/A# $(ENVCPPFLAGS4), if defined, should be something like "-Y I,somepath".
1N/A# We want to get rid of the "-Y I," part but make's pattern replacement
1N/A# macro reference doesn't allow spaces in it, e.g. $(ENVCPPFLAGS4:-Y I,%=%).
1N/A# So we'll get rid of the "-Y" now and then the "I," later. By the way, this
1N/A# should also work in case $(ENVCPPFLAGS4) is "-YI,somepath" (no space).
1N/At.ENVCPPFLAGS4 = $(ENVCPPFLAGS4:-Y%=%)
1N/A
1N/ACPPFLAGS = $(DEFS) $(INCLUDES) $(WARNFLAGS) \
1N/A $(ENVCPPFLAGS1:-I%=-isystem %) \
1N/A $(ENVCPPFLAGS2:-I%=-isystem %) \
1N/A $(ENVCPPFLAGS3:-I%=-isystem %) \
1N/A $(t.ENVCPPFLAGS4:I,%=-nostdinc -isystem %)
1N/A
1N/A$(NOTPARFAIT_BUILD)CCLD = $(GNU_ROOT)/bin/gld
1N/A$(PARFAIT_BUILD)CCLD = $(PARFAIT_HOME)/bin/parfait-gld
1N/A
1N/ALDFLAGS = $(BASE_LDFLAGS)
1N/ALINKFLAGS = -g
1N/ALINK = $(CCLD) $(LINKFLAGS) $(LDFLAGS)
1N/A
1N/ADEFS = -DHAVE_CONFIG_H -DSOLARIS_NETBOOT
1N/AOPTFLAGS = -falign-jumps=1 -falign-loops=1 -falign-functions=1
1N/A#WARNFLAGS = -Wall -Wmissing-prototypes -Wunused -Wshadow \
1N/A# -Wpointer-arith -Wundef
1N/A
1N/AOBJCOPY = $(GNU_ROOT)/bin/gobjcopy
1N/A
1N/AAR = /usr/bin/ar
1N/ARANLIB = :
1N/A
1N/AMKDIR = mkdir -p