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