Makefile revision 2449e17f82f6097fd2c665b64723e31ceecbeca6
906N/A#
906N/A# CDDL HEADER START
906N/A#
906N/A# The contents of this file are subject to the terms of the
906N/A# Common Development and Distribution License (the "License").
906N/A# You may not use this file except in compliance with the License.
906N/A#
906N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
906N/A# or http://www.opensolaris.org/os/licensing.
906N/A# See the License for the specific language governing permissions
906N/A# and limitations under the License.
906N/A#
906N/A# When distributing Covered Code, include this CDDL HEADER in each
906N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
906N/A# If applicable, add the following below this CDDL HEADER, with the
906N/A# fields enclosed by brackets "[]" replaced with your own identifying
906N/A# information: Portions Copyright [yyyy] [name of copyright owner]
906N/A#
906N/A# CDDL HEADER END
906N/A#
906N/A#
1389N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
906N/A# Use is subject to license terms.
906N/A#
906N/A# ident "%Z%%M% %I% %E% SMI"
906N/A#
906N/A
1799N/APROG= bootadm
1799N/A
1799N/Ai386_DATA= filelist.ramdisk filelist.safe
906N/A
906N/ASBINLINKS= $(PROG)
1799N/A
1799N/AOBJS= bootadm.o bootadm_upgrade.o
1799N/ASRCS = $(OBJS:.o=.c)
906N/A
2051N/Ainclude ../Makefile.com
1389N/A
1389N/AROOTBOOTSOLARISDATA= $($(MACH)_DATA:%=$(ROOTBOOTSOLARIS)/%)
906N/AROOTUSRSBINLINKS= $(SBINLINKS:%=$(ROOTUSRSBIN)/%)
906N/A
906N/A$(ROOTBOOTSOLARISDATA) := OWNER = root
906N/A$(ROOTBOOTSOLARISDATA) := GROUP = sys
906N/A$(ROOTBOOTSOLARISDATA) := FILEMODE = 0644
1389N/A
906N/A.KEEP_STATE:
1799N/A
1799N/ALDLIBS += -lnvpair
1799N/A
1799N/A# Writing into string literals is incorrect. We need to match gcc's
1799N/A# behavior, which causes us to take SIGSEGV on such a write.
906N/ACFLAGS += $(XSTRCONST)
906N/ACPPFLAGS += -D_FILE_OFFSET_BITS=64
906N/ACPPFLAGS += -I../../../uts/common -I../../../common
906N/A
1389N/Aall: $(PROG)
1389N/A
1389N/A$(PROG): $(OBJS) bootadm.h
906N/A $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
1389N/A $(POST_PROCESS)
906N/A
906N/A$(ROOTUSRSBINLINKS):
1389N/A -$(RM) $@; $(SYMLINK) ../../sbin/$(@F) $@
1799N/A
906N/Ainstall: all $(ROOTSBINPROG) $(ROOTBOOTSOLARISDATA) .WAIT $(ROOTUSRSBINLINKS)
906N/A
906N/Aclean:
2061N/A -$(RM) $(OBJS)
906N/A
906N/A_msg:
906N/A
906N/Alint: lint_SRCS
906N/A
906N/Ainclude ../Makefile.targ
906N/A