xref: /illumos-gate/usr/src/cmd/oplhpd/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
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#
2224fe0b3bSjmcp# 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
48*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable
49*7014882cSRichard Lowe
50a4ac8bb3SdnielsenPSMPROG = $(USR_PSM_LIB64_DIR)/$(PROG)
51a4ac8bb3Sdnielsen
52a192e900Samaguire$(PSMPROG) :=	FILEMODE = 0755
53a4ac8bb3Sdnielsen
54a4ac8bb3Sdnielsen.KEEP_STATE:
55a4ac8bb3Sdnielsen
56a4ac8bb3Sdnielsenall: $(PROG)
57a4ac8bb3Sdnielsen
58a4ac8bb3Sdnielsen$(PROG):	$(OBJS)
59a4ac8bb3Sdnielsen	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
60a4ac8bb3Sdnielsen	$(POST_PROCESS)
61a4ac8bb3Sdnielsen
62a4ac8bb3Sdnielseninstall: all $(PSMPROG) $(ROOTMANIFEST) $(ROOTSVCMETHOD)
63a4ac8bb3Sdnielsen
64a4ac8bb3Sdnielsencheck:	$(CHKMANIFEST)
65a4ac8bb3Sdnielsen
66a4ac8bb3Sdnielsenclean:
67a192e900Samaguire	$(RM) $(OBJS)
68a4ac8bb3Sdnielsen
69a4ac8bb3Sdnielsenlint:	lint_SRCS
70a4ac8bb3Sdnielsen
71a4ac8bb3Sdnielsen$(USR_PLAT_DIR):
7248bc00d6Sjmcp	-$(INS.dir)
73a4ac8bb3Sdnielsen
74a4ac8bb3Sdnielsen$(USR_PSM_DIR):	$(USR_PLAT_DIR)
7548bc00d6Sjmcp	-$(INS.dir)
76a4ac8bb3Sdnielsen
77a4ac8bb3Sdnielsen$(USR_PSM_LIB_DIR):	$(USR_PSM_DIR)
7848bc00d6Sjmcp	-$(INS.dir)
79a4ac8bb3Sdnielsen
80a4ac8bb3Sdnielsen$(USR_PSM_LIB64_DIR):	$(USR_PSM_LIB_DIR)
8148bc00d6Sjmcp	-$(INS.dir)
82a4ac8bb3Sdnielsen
83a4ac8bb3Sdnielsen$(USR_PSM_LIB64_DIR)/%: % $(USR_PSM_LIB64_DIR)
84a4ac8bb3Sdnielsen	$(INS.file)
85a4ac8bb3Sdnielsen
86a4ac8bb3Sdnielseninclude ../Makefile.targ
87