Makefile revision 48bc00d6814e04ff3edb32cafe7d1bc580baff68
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen#
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen# CDDL HEADER START
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen#
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen# The contents of this file are subject to the terms of the
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen# Common Development and Distribution License (the "License").
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen# You may not use this file except in compliance with the License.
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen#
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen# or http://www.opensolaris.org/os/licensing.
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen# See the License for the specific language governing permissions
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen# and limitations under the License.
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen#
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen# When distributing Covered Code, include this CDDL HEADER in each
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen# If applicable, add the following below this CDDL HEADER, with the
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen# fields enclosed by brackets "[]" replaced with your own identifying
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen# information: Portions Copyright [yyyy] [name of copyright owner]
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen#
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen# CDDL HEADER END
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen#
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen#
24fe0b3bf671e123467ce1df0b67cadd3614c8e4jmcp# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen# Use is subject to license terms.
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen#
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen#
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen# cmd/oplhpd/Makefile
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen#
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsenPROG = oplhpd
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsenPLATFORM = SUNW,SPARC-Enterprise
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsenMANIFEST = oplhpd.xml
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsenSVCMETHOD = svc-oplhpd
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielseninclude ../Makefile.cmd
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielseninclude ../Makefile.cmd.64
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielseninclude ../../Makefile.psm
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsenSRCS = oplhpd.c scf_notify.c
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsenOBJS = $(SRCS:%.c=%.o)
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsenLINTFILES = $(SRCS:%.c=%.ln)
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsenROOTMANIFESTDIR = $(ROOTSVCPLATFORMSUN4U)
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsenCPPFLAGS += -I$(SRC)/uts/sun4u/opl
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsenLDLIBS64 += -lsysevent -lnvpair -lcfgadm -ldevinfo
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsenPSMPROG = $(USR_PSM_LIB64_DIR)/$(PROG)
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire$(PSMPROG) := FILEMODE = 0755
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen.KEEP_STATE:
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsenall: $(PROG)
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen$(PROG): $(OBJS)
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen $(POST_PROCESS)
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielseninstall: all $(PSMPROG) $(ROOTMANIFEST) $(ROOTSVCMETHOD)
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsencheck: $(CHKMANIFEST)
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsenclean:
a192e900f6d2b0e1a822e3252c0dfd795ed49d76amaguire $(RM) $(OBJS)
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsenlint: lint_SRCS
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen$(USR_PLAT_DIR):
48bc00d6814e04ff3edb32cafe7d1bc580baff68jmcp -$(INS.dir)
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen$(USR_PSM_DIR): $(USR_PLAT_DIR)
48bc00d6814e04ff3edb32cafe7d1bc580baff68jmcp -$(INS.dir)
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen$(USR_PSM_LIB_DIR): $(USR_PSM_DIR)
48bc00d6814e04ff3edb32cafe7d1bc580baff68jmcp -$(INS.dir)
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen$(USR_PSM_LIB64_DIR): $(USR_PSM_LIB_DIR)
48bc00d6814e04ff3edb32cafe7d1bc580baff68jmcp -$(INS.dir)
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen$(USR_PSM_LIB64_DIR)/%: % $(USR_PSM_LIB64_DIR)
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen $(INS.file)
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielsen
a4ac8bb3f5b2fff60581bee101792ac7a34bad8cdnielseninclude ../Makefile.targ