Makefile revision 24fe0b3bf671e123467ce1df0b67cadd3614c8e4
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# CDDL HEADER START
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# The contents of this file are subject to the terms of the
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# Common Development and Distribution License (the "License").
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# You may not use this file except in compliance with the License.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# See the License for the specific language governing permissions
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# and limitations under the License.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# When distributing Covered Code, include this CDDL HEADER in each
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# If applicable, add the following below this CDDL HEADER, with the
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# CDDL HEADER END
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# Use is subject to license terms.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncPOFILES= $(PMCFG_SRCS:%.c=%.po) $(SUSPEND_SRCS:%.c=%.po)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# needed because POFILES is deleted by clobber, but it's under
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# SCCS control here.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# pmconfig only needs libdevinfo on sparc
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncsparc_LDEVINFO= -ldevinfo -lefi -ladm -lzfs -lnvpair
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncPMCFG_LDLIBS = $(LDLIBS.cmd) -lcmd -lsmbios -lkstat $($(MACH)_LDEVINFO)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync# lint pass one enforcement
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncall: $(PROG) $(POWERPERM).dfl $(ETCFILES) $(SCRIPTS)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync $(CC) $(CFLAGS) -D_REENTRANT $(CPPFLAGS) -o $@ -c $<
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync $(CC) -o $@ $(DAEMON_OBJS) $(LDFLAGS) $(DAEMON_LDLIBS)
$(POST_PROCESS)
$(POST_PROCESS)
$(ROOTLIBPOWER):
$(INS.dir)
$(ROOTLIBPOWER)/%: %
$(INS.file)
$(OPOFILES):
$(RM) $@
lint:
%: %.$(MACH)
$(RM) $@
cat $< > $@