Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
1037N/A#
1037N/A# CDDL HEADER START
1037N/A#
1471N/A# The contents of this file are subject to the terms of the
1037N/A# Common Development and Distribution License, Version 1.0 only
1037N/A# (the "License"). You may not use this file except in compliance
1037N/A# with the License.
1037N/A#
1037N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1037N/A# or http://www.opensolaris.org/os/licensing.
1037N/A# See the License for the specific language governing permissions
1037N/A# and limitations under the License.
1037N/A#
1037N/A# When distributing Covered Code, include this CDDL HEADER in each
1037N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1037N/A# If applicable, add the following below this CDDL HEADER, with the
1037N/A# fields enclosed by brackets "[]" replaced with your own identifying
1037N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1037N/A#
1037N/A# CDDL HEADER END
1037N/A#
1037N/A#
1037N/A# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
1037N/A# Use is subject to license terms.
1037N/A#
1037N/A# ident "%Z%%M% %I% %E% SMI"
1037N/A#
1037N/A
1037N/APROG= installgrub
1037N/A
1037N/APCFS_SRC= $(SRC)/common/fs/pcfs.c
1037N/A
1037N/AOBJS= installgrub.o floppy.o pcfs.o
1037N/ASRCS= installgrub.c floppy.c $(PCFS_SRC)
1037N/ASBINLINKS= $(PROG)
1037N/A
1037N/Ainclude ../Makefile.com
1037N/A
1037N/AROOTUSRSBINLINKS= $(SBINLINKS:%=$(ROOTUSRSBIN)/%)
1037N/A
1037N/ACPPFLAGS += -I$(SRC)/uts/i86pc -I$(SRC)/uts/intel -I$(SRC)/uts/common
1037N/A
1037N/ALINTFLAGS += \
1037N/A -erroff=E_BAD_PTR_CAST_ALIGN \
1037N/A -erroff=E_STATIC_UNUSED \
1037N/A -erroff=E_FUNC_RET_MAYBE_IGNORED \
1037N/A -erroff=E_FUNC_RET_MAYBE_IGNORED2
1037N/A
1037N/A.KEEP_STATE:
1037N/A
1037N/Aall: $(PROG)
1037N/A
1037N/A$(PROG): $(OBJS)
1037N/A $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
1037N/A $(POST_PROCESS)
1037N/A
1037N/A
1037N/A# pick pcfs from usr/src/common/fs
1037N/Apcfs.o: $(PCFS_SRC)
1037N/A $(COMPILE.c) -o $@ $(PCFS_SRC)
1037N/A
1037N/A$(ROOTUSRSBINLINKS):
1037N/A -$(RM) $@; $(SYMLINK) ../../sbin/$(@F) $@
1037N/A
1037N/Ainstall: all $(ROOTSBINPROG) .WAIT $(ROOTUSRSBINLINKS)
1037N/A
1037N/Aclean:
1037N/A $(RM) $(OBJS)
1037N/A
1037N/Alint: lint_SRCS
1037N/A
1037N/Ainclude ../Makefile.targ
1037N/A