xref: /illumos-gate/usr/src/cmd/oplhpd/Makefile (revision 24fe0b3bf671e123467ce1df0b67cadd3614c8e4)
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#
22*24fe0b3bSjmcp# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23a4ac8bb3Sdnielsen# Use is subject to license terms.
24a4ac8bb3Sdnielsen#
25a4ac8bb3Sdnielsen
26a4ac8bb3Sdnielsen#
27a4ac8bb3Sdnielsen# cmd/oplhpd/Makefile
28a4ac8bb3Sdnielsen#
29a4ac8bb3Sdnielsen
30a4ac8bb3SdnielsenPROG =          oplhpd
31a4ac8bb3SdnielsenPLATFORM =      SUNW,SPARC-Enterprise
32a4ac8bb3SdnielsenMANIFEST =      oplhpd.xml
33a4ac8bb3SdnielsenSVCMETHOD =     svc-oplhpd
34a4ac8bb3Sdnielsen
35a4ac8bb3Sdnielseninclude ../Makefile.cmd
36a4ac8bb3Sdnielseninclude ../Makefile.cmd.64
37a4ac8bb3Sdnielseninclude ../../Makefile.psm
38a4ac8bb3Sdnielsen
39a4ac8bb3SdnielsenSRCS = oplhpd.c scf_notify.c
40a4ac8bb3SdnielsenOBJS = $(SRCS:%.c=%.o)
41a4ac8bb3SdnielsenLINTFILES = $(SRCS:%.c=%.ln)
42a4ac8bb3Sdnielsen
43a4ac8bb3SdnielsenROOTMANIFESTDIR = $(ROOTSVCPLATFORMSUN4U)
44a4ac8bb3Sdnielsen
45a4ac8bb3SdnielsenCPPFLAGS += -I$(SRC)/uts/sun4u/opl
46a4ac8bb3SdnielsenLDLIBS64 += -lsysevent -lnvpair -lcfgadm -ldevinfo
47a4ac8bb3Sdnielsen
48a4ac8bb3SdnielsenPSMPROG = $(USR_PSM_LIB64_DIR)/$(PROG)
49a4ac8bb3Sdnielsen
50a192e900Samaguire$(PSMPROG) :=	FILEMODE = 0755
51a4ac8bb3Sdnielsen
52a4ac8bb3Sdnielsen.KEEP_STATE:
53a4ac8bb3Sdnielsen
54a4ac8bb3Sdnielsenall: $(PROG)
55a4ac8bb3Sdnielsen
56a4ac8bb3Sdnielsen$(PROG):	$(OBJS)
57a4ac8bb3Sdnielsen	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
58a4ac8bb3Sdnielsen	$(POST_PROCESS)
59a4ac8bb3Sdnielsen
60a4ac8bb3Sdnielseninstall: all $(PSMPROG) $(ROOTMANIFEST) $(ROOTSVCMETHOD)
61a4ac8bb3Sdnielsen
62a4ac8bb3Sdnielsencheck:	$(CHKMANIFEST)
63a4ac8bb3Sdnielsen
64a4ac8bb3Sdnielsenclean:
65a192e900Samaguire	$(RM) $(OBJS)
66a4ac8bb3Sdnielsen
67a4ac8bb3Sdnielsenlint:	lint_SRCS
68a4ac8bb3Sdnielsen
69a4ac8bb3Sdnielsen$(USR_PLAT_DIR):
70a4ac8bb3Sdnielsen	-$(INS.dir.root.sys)
71a4ac8bb3Sdnielsen
72a4ac8bb3Sdnielsen$(USR_PSM_DIR):	$(USR_PLAT_DIR)
73a4ac8bb3Sdnielsen	-$(INS.dir.root.sys)
74a4ac8bb3Sdnielsen
75a4ac8bb3Sdnielsen$(USR_PSM_LIB_DIR):	$(USR_PSM_DIR)
76a4ac8bb3Sdnielsen	-$(INS.dir.root.sys)
77a4ac8bb3Sdnielsen
78a4ac8bb3Sdnielsen$(USR_PSM_LIB64_DIR):	$(USR_PSM_LIB_DIR)
79a4ac8bb3Sdnielsen	-$(INS.dir.root.sys)
80a4ac8bb3Sdnielsen
81a4ac8bb3Sdnielsen$(USR_PSM_LIB64_DIR)/%: % $(USR_PSM_LIB64_DIR)
82a4ac8bb3Sdnielsen	$(INS.file)
83a4ac8bb3Sdnielsen
84a4ac8bb3Sdnielseninclude ../Makefile.targ
85