Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
3500N/A#
3500N/A# CDDL HEADER START
3500N/A#
3500N/A# The contents of this file are subject to the terms of the
3500N/A# Common Development and Distribution License (the "License").
3500N/A# You may not use this file except in compliance with the License.
3500N/A#
3500N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
3500N/A# or http://www.opensolaris.org/os/licensing.
3500N/A# See the License for the specific language governing permissions
3500N/A# and limitations under the License.
3500N/A#
3500N/A# When distributing Covered Code, include this CDDL HEADER in each
3500N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3500N/A# If applicable, add the following below this CDDL HEADER, with the
3500N/A# fields enclosed by brackets "[]" replaced with your own identifying
3500N/A# information: Portions Copyright [yyyy] [name of copyright owner]
3500N/A#
3500N/A# CDDL HEADER END
3500N/A#
3500N/A#
3500N/A# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
6191N/A# Use is subject to license terms.
3500N/A#
3500N/A
3500N/APROG = halt
3500N/A
6191N/Ainclude ../Makefile.cmd
3500N/A
3500N/A#
3500N/A# Currently Fast Reboot is only supported on x86.
6191N/A# A new propery config/uadmin_boot_archive_sync is added to
3500N/A# boot-config service. Which needs a support on sparc also.
3500N/A#
3500N/Asparc_SUBDIRS = smf.sparc
3500N/Ai386_SUBDIRS = smf.i386
6191N/ASUBDIRS = $($(MACH)_SUBDIRS)
3500N/A
3817N/AROOTLINKS = $(ROOTUSRSBIN)/poweroff $(ROOTUSRSBIN)/reboot
3817N/AROOTSYMLINKS= $(ROOTETC)/halt $(ROOTETC)/reboot
3817N/A
3500N/AFILEMODE = 0755
3500N/A
3500N/A.KEEP_STATE:
3500N/A
3500N/ACPPFLAGS += -I../../lib/libzpool/common
3500N/ACPPFLAGS += -I../../lib/libscf/inc
5026N/ACPPFLAGS += -I../../uts/common/fs/zfs
3500N/A
3500N/ACERRWARN += -_gcc=-Wno-unused-label
3500N/A
3500N/ALDLIBS += -lbsm -lscf -lzfs -lgen
3500N/ALDLIBS_i386 += -lgrubmgmt
3500N/ALDLIBS += $(LDLIBS_$(MACH))
3500N/A
3500N/ACLOBBERFILES += $(ROOTLINKS) $(ROOTSYMLINKS)
3500N/A
4337N/Aall := TARGET = all
4337N/Ainstall := TARGET = install
clean := TARGET = clean
clobber := TARGET = clobber
lint := TARGET = lint
lint := LINTFLAGS = -u
all: $(PROG)
install: all $(ROOTUSRSBINPROG) $(ROOTLINKS) $(ROOTSYMLINKS) $(SUBDIRS)
$(ROOTLINKS): $(ROOTUSRSBINPROG)
$(RM) $@
$(LN) $(ROOTUSRSBINPROG) $@
$(ROOTSYMLINKS):
$(RM) $@
$(SYMLINK) ../usr/sbin/$(PROG) $@
$(SUBDIRS): FRC
@cd $@; pwd; $(MAKE) $(TARGET)
clean:
clobber: $(SUBDIRS)
lint: lint_PROG
check: $(CHKMANIFEST)
FRC:
include ../Makefile.targ