Makefile revision 9632cfad671ee03057c5878b18702ea3b53be47d
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater#
990d0e893f5b70e735cdf990af66e9ec6e91fa78Tinderbox User# CDDL HEADER START
3e02c9e33656dcd9c364633d42dd785d3e6fdd66Automatic Updater#
3e02c9e33656dcd9c364633d42dd785d3e6fdd66Automatic Updater# The contents of this file are subject to the terms of the
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# Common Development and Distribution License (the "License").
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# You may not use this file except in compliance with the License.
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater#
3e02c9e33656dcd9c364633d42dd785d3e6fdd66Automatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# or http://www.opensolaris.org/os/licensing.
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# See the License for the specific language governing permissions
3e02c9e33656dcd9c364633d42dd785d3e6fdd66Automatic Updater# and limitations under the License.
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater#
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# When distributing Covered Code, include this CDDL HEADER in each
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# If applicable, add the following below this CDDL HEADER, with the
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater#
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# CDDL HEADER END
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater#
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater#
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# Use is subject to license terms.
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater#
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# ident "%Z%%M% %I% %E% SMI"
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater#
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterPROG= bootadm
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updateri386_DATA= filelist.ramdisk filelist.safe
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterSBINLINKS= $(PROG)
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterOBJS = bootadm.o
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterSRCS = $(OBJS:.o=.c)
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updaterinclude ../Makefile.com
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterROOTBOOTSOLARISDATA= $($(MACH)_DATA:%=$(ROOTBOOTSOLARIS)/%)
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterROOTUSRSBINLINKS= $(SBINLINKS:%=$(ROOTUSRSBIN)/%)
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater$(ROOTBOOTSOLARISDATA) := OWNER = root
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater$(ROOTBOOTSOLARISDATA) := GROUP = sys
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater$(ROOTBOOTSOLARISDATA) := FILEMODE = 0644
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater.KEEP_STATE:
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterLDLIBS += -lnvpair
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
a3f8c8e20780e488141d200acdfea6c5f3303513Automatic Updater# Writing into string literals is incorrect. We need to match gcc's
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# behavior, which causes us to take SIGSEGV on such a write.
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterCFLAGS += $(XSTRCONST)
bbbf2e27d3a981163dab139497d6b2dc85449db0Tinderbox UserCPPFLAGS += -D_FILE_OFFSET_BITS=64
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updaterall: $(PROG)
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
f8e3e03cacd16ffb923a9603fca23a9e1a1fee07Automatic Updater$(PROG): $(OBJS)
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater $(POST_PROCESS)
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater$(ROOTUSRSBINLINKS):
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater -$(RM) $@; $(SYMLINK) ../../sbin/$(@F) $@
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updaterinstall: all $(ROOTSBINPROG) $(ROOTBOOTSOLARISDATA) .WAIT $(ROOTUSRSBINLINKS)
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updaterclean:
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater_msg:
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updaterlint: lint_PROG
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updaterinclude ../Makefile.targ
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater