Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
10139N/A#
10139N/A# CDDL HEADER START
10139N/A#
18175N/A# The contents of this file are subject to the terms of the
10139N/A# Common Development and Distribution License (the "License").
10139N/A# You may not use this file except in compliance with the License.
10139N/A#
17185N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10139N/A# or http://www.opensolaris.org/os/licensing.
17180N/A# See the License for the specific language governing permissions
17180N/A# and limitations under the License.
17180N/A#
12285N/A# When distributing Covered Code, include this CDDL HEADER in each
10139N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
10139N/A# If applicable, add the following below this CDDL HEADER, with the
10139N/A# fields enclosed by brackets "[]" replaced with your own identifying
18399N/A# information: Portions Copyright [yyyy] [name of copyright owner]
13494N/A#
10139N/A# CDDL HEADER END
10139N/A#
10139N/A# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
18325N/A#
10139N/A
12285N/APROG= installgrub
12773N/A
12773N/APCFS_SRC= $(SRC)/common/fs/pcfs.c
12773N/AEINFO_SRC= ./../common/bblk_einfo.c
13368N/AUTILS_SRC =./../common/boot_utils.c
18266N/AEXTRA_SRC =./../common/mboot_extra.c
10139N/A
10737N/AOBJS= installgrub.o pcfs_glue.o pcfs.o bblk_einfo.o boot_utils.o mboot_extra.o
11419N/ASRCS= installgrub.c pcfs_glue.c $(PCFS_SRC) $(UTILS_SRC) $(EINFO_SRC) \
17733N/A $(EXTRA_SRC)
10139N/ASBINLINKS= $(PROG)
13494N/A
11419N/Ainclude ../Makefile.com
11895N/A
13494N/ACPPFLAGS += -I$(SRC)/uts/i86pc -I$(SRC)/uts/intel -I$(SRC)/uts/common
10737N/ACERRWARN += -_gcc=-Wno-unused-label
13494N/ACERRWARN += -_gcc=-Wno-unused-function
11420N/ACERRWARN += -_gcc=-Wno-uninitialized
11044N/A
13494N/ALDLIBS += -lmd5
11420N/A
13368N/Ai386_CFLAGS += -D_LARGEFILE64_SOURCE
16081N/Ai386_CFLAGS += -D_FILE_OFFSET_BITS=64
15306N/A
16081N/ALDLIBS += -lfdisk
13494N/A
16081N/ALINTFLAGS += \
16445N/A -erroff=E_BAD_PTR_CAST_ALIGN \
16081N/A -erroff=E_STATIC_UNUSED \
14281N/A -erroff=E_FUNC_RET_MAYBE_IGNORED \
14127N/A -erroff=E_FUNC_RET_MAYBE_IGNORED2 \
16081N/A -xerroff=E_NAME_DEF_NOT_USED2
14281N/A
16445N/AC99MODE= -xc99=%all
16081N/AC99LMODE= -Xc99=%all
15756N/A
16139N/A.KEEP_STATE:
16139N/A
16139N/Aall: $(PROG)
16445N/A
16139N/A$(PROG): $(OBJS)
16339N/A $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
16339N/A $(POST_PROCESS)
16448N/A
16448N/A
16622N/A# pick pcfs from usr/src/common/fs
16620N/Apcfs.o: $(PCFS_SRC)
16959N/A $(COMPILE.c) -o $@ $(PCFS_SRC)
16966N/A
17275N/Aboot_utils.o: $(UTILS_SRC)
17275N/A $(COMPILE.c) -o $@ $(UTILS_SRC)
17345N/A
17345N/Amboot_extra.o: $(EXTRA_SRC)
18486N/A $(COMPILE.c) -o $@ $(EXTRA_SRC)
18486N/A
10737N/Abblk_einfo.o: $(EINFO_SRC)
10139N/A $(COMPILE.c) -o $@ $(EINFO_SRC)
10139N/A
10139N/Ainstall: all $(ROOTSBINPROG) .WAIT $(ROOTUSRSBINLINKS)
10139N/A
10139N/Aclean:
10139N/A $(RM) $(OBJS)
10139N/A
10139N/Alint: lint_SRCS
10139N/A
10139N/Ainclude ../Makefile.targ
10139N/A