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