1a4ac8bb3Sdnielsen# 2a4ac8bb3Sdnielsen# CDDL HEADER START 3a4ac8bb3Sdnielsen# 4a4ac8bb3Sdnielsen# The contents of this file are subject to the terms of the 5a4ac8bb3Sdnielsen# Common Development and Distribution License (the "License"). 6a4ac8bb3Sdnielsen# You may not use this file except in compliance with the License. 7a4ac8bb3Sdnielsen# 8a4ac8bb3Sdnielsen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9a4ac8bb3Sdnielsen# or http://www.opensolaris.org/os/licensing. 10a4ac8bb3Sdnielsen# See the License for the specific language governing permissions 11a4ac8bb3Sdnielsen# and limitations under the License. 12a4ac8bb3Sdnielsen# 13a4ac8bb3Sdnielsen# When distributing Covered Code, include this CDDL HEADER in each 14a4ac8bb3Sdnielsen# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15a4ac8bb3Sdnielsen# If applicable, add the following below this CDDL HEADER, with the 16a4ac8bb3Sdnielsen# fields enclosed by brackets "[]" replaced with your own identifying 17a4ac8bb3Sdnielsen# information: Portions Copyright [yyyy] [name of copyright owner] 18a4ac8bb3Sdnielsen# 19a4ac8bb3Sdnielsen# CDDL HEADER END 20a4ac8bb3Sdnielsen# 21a4ac8bb3Sdnielsen# 22a4ac8bb3Sdnielsen# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 23a4ac8bb3Sdnielsen# Use is subject to license terms. 24a4ac8bb3Sdnielsen# 25a4ac8bb3Sdnielsen 26a4ac8bb3Sdnielsen# ident "%Z%%M% %I% %E% SMI" 27a4ac8bb3Sdnielsen# 28a4ac8bb3Sdnielsen# cmd/oplhpd/Makefile 29a4ac8bb3Sdnielsen# 30a4ac8bb3Sdnielsen 31a4ac8bb3SdnielsenPROG = oplhpd 32a4ac8bb3SdnielsenPLATFORM = SUNW,SPARC-Enterprise 33a4ac8bb3SdnielsenMANIFEST = oplhpd.xml 34a4ac8bb3SdnielsenSVCMETHOD = svc-oplhpd 35a4ac8bb3Sdnielsen 36a4ac8bb3Sdnielseninclude ../Makefile.cmd 37a4ac8bb3Sdnielseninclude ../Makefile.cmd.64 38a4ac8bb3Sdnielseninclude ../../Makefile.psm 39a4ac8bb3Sdnielsen 40a4ac8bb3SdnielsenSRCS = oplhpd.c scf_notify.c 41a4ac8bb3SdnielsenOBJS = $(SRCS:%.c=%.o) 42a4ac8bb3SdnielsenLINTFILES = $(SRCS:%.c=%.ln) 43a4ac8bb3Sdnielsen 44a4ac8bb3SdnielsenROOTMANIFESTDIR = $(ROOTSVCPLATFORMSUN4U) 45a4ac8bb3Sdnielsen 46a4ac8bb3SdnielsenCPPFLAGS += -I$(SRC)/uts/sun4u/opl 47a4ac8bb3SdnielsenLDLIBS64 += -lsysevent -lnvpair -lcfgadm -ldevinfo 48a4ac8bb3Sdnielsen 49a4ac8bb3SdnielsenPSMPROG = $(USR_PSM_LIB64_DIR)/$(PROG) 50a4ac8bb3Sdnielsen 51*a192e900Samaguire$(PSMPROG) := FILEMODE = 0755 52*a192e900Samaguire$(PSMPROG) := OWNER = root 53*a192e900Samaguire$(PSMPROG) := GROUP = sys 54a4ac8bb3Sdnielsen 55a4ac8bb3Sdnielsen.KEEP_STATE: 56a4ac8bb3Sdnielsen 57a4ac8bb3Sdnielsenall: $(PROG) 58a4ac8bb3Sdnielsen 59a4ac8bb3Sdnielsen$(PROG): $(OBJS) 60a4ac8bb3Sdnielsen $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 61a4ac8bb3Sdnielsen $(POST_PROCESS) 62a4ac8bb3Sdnielsen 63a4ac8bb3Sdnielseninstall: all $(PSMPROG) $(ROOTMANIFEST) $(ROOTSVCMETHOD) 64a4ac8bb3Sdnielsen 65a4ac8bb3Sdnielsencheck: $(CHKMANIFEST) 66a4ac8bb3Sdnielsen 67a4ac8bb3Sdnielsenclean: 68*a192e900Samaguire $(RM) $(OBJS) 69a4ac8bb3Sdnielsen 70a4ac8bb3Sdnielsenlint: lint_SRCS 71a4ac8bb3Sdnielsen 72a4ac8bb3Sdnielsen$(USR_PLAT_DIR): 73a4ac8bb3Sdnielsen -$(INS.dir.root.sys) 74a4ac8bb3Sdnielsen 75a4ac8bb3Sdnielsen$(USR_PSM_DIR): $(USR_PLAT_DIR) 76a4ac8bb3Sdnielsen -$(INS.dir.root.sys) 77a4ac8bb3Sdnielsen 78a4ac8bb3Sdnielsen$(USR_PSM_LIB_DIR): $(USR_PSM_DIR) 79a4ac8bb3Sdnielsen -$(INS.dir.root.sys) 80a4ac8bb3Sdnielsen 81a4ac8bb3Sdnielsen$(USR_PSM_LIB64_DIR): $(USR_PSM_LIB_DIR) 82a4ac8bb3Sdnielsen -$(INS.dir.root.sys) 83a4ac8bb3Sdnielsen 84a4ac8bb3Sdnielsen$(USR_PSM_LIB64_DIR)/%: % $(USR_PSM_LIB64_DIR) 85a4ac8bb3Sdnielsen $(INS.file) 86a4ac8bb3Sdnielsen 87a4ac8bb3Sdnielseninclude ../Makefile.targ 88