xref: /titanic_51/usr/src/cmd/hotplugd/Makefile (revision 269473047d747f7815af570197e4ef7322d3632c)
1*26947304SEvan Yan#
2*26947304SEvan Yan# CDDL HEADER START
3*26947304SEvan Yan#
4*26947304SEvan Yan# The contents of this file are subject to the terms of the
5*26947304SEvan Yan# Common Development and Distribution License (the "License").
6*26947304SEvan Yan# You may not use this file except in compliance with the License.
7*26947304SEvan Yan#
8*26947304SEvan Yan# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*26947304SEvan Yan# or http://www.opensolaris.org/os/licensing.
10*26947304SEvan Yan# See the License for the specific language governing permissions
11*26947304SEvan Yan# and limitations under the License.
12*26947304SEvan Yan#
13*26947304SEvan Yan# When distributing Covered Code, include this CDDL HEADER in each
14*26947304SEvan Yan# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*26947304SEvan Yan# If applicable, add the following below this CDDL HEADER, with the
16*26947304SEvan Yan# fields enclosed by brackets "[]" replaced with your own identifying
17*26947304SEvan Yan# information: Portions Copyright [yyyy] [name of copyright owner]
18*26947304SEvan Yan#
19*26947304SEvan Yan# CDDL HEADER END
20*26947304SEvan Yan#
21*26947304SEvan Yan#
22*26947304SEvan Yan# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23*26947304SEvan Yan# Use is subject to license terms.
24*26947304SEvan Yan#
25*26947304SEvan Yan#
26*26947304SEvan Yan# cmd/hotplugd/Makefile
27*26947304SEvan Yan#
28*26947304SEvan Yan
29*26947304SEvan YanPROG= 		hotplugd
30*26947304SEvan YanOBJS=		hotplugd.o \
31*26947304SEvan Yan		hotplugd_impl.o \
32*26947304SEvan Yan		hotplugd_door.o \
33*26947304SEvan Yan		hotplugd_info.o \
34*26947304SEvan Yan		hotplugd_rcm.o
35*26947304SEvan YanSRCS=		$(OBJS:.o=.c)
36*26947304SEvan YanSVCMETHOD=	svc-hotplug
37*26947304SEvan YanMANIFEST=	hotplug.xml
38*26947304SEvan Yan
39*26947304SEvan Yaninclude ../Makefile.cmd
40*26947304SEvan Yan
41*26947304SEvan YanROOTCMDDIR=		$(ROOTLIB)
42*26947304SEvan YanROOTMANIFESTDIR=	$(ROOTSVCSYSTEM)
43*26947304SEvan Yan$(ROOTMANIFEST)		:= FILEMODE= 444
44*26947304SEvan Yan
45*26947304SEvan YanCPPFLAGS += -I$(SRC)/lib/libhotplug/common
46*26947304SEvan YanLDLIBS += -ldevinfo -lhotplug -lnvpair -lsecdb -lrcm -lbsm
47*26947304SEvan Yan
48*26947304SEvan Yan.KEEP_STATE:
49*26947304SEvan Yan
50*26947304SEvan Yanall:	$(PROG)
51*26947304SEvan Yan
52*26947304SEvan Yan$(PROG): $(OBJS)
53*26947304SEvan Yan	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
54*26947304SEvan Yan	$(POST_PROCESS)
55*26947304SEvan Yan
56*26947304SEvan Yan.PARALLEL: $(OBJS)
57*26947304SEvan Yan
58*26947304SEvan Yaninstall: all $(ROOTCMD) $(ROOTMANIFEST) $(ROOTSVCMETHOD)
59*26947304SEvan Yan
60*26947304SEvan Yanclean:
61*26947304SEvan Yan	$(RM) $(PROG) $(OBJS) $(LLOBJS)
62*26947304SEvan Yan
63*26947304SEvan Yancheck: $(CHKMANIFEST)
64*26947304SEvan Yan	$(CSTYLE) -pP $(SRCS:%=%)
65*26947304SEvan Yan
66*26947304SEvan Yanlint:	lint_SRCS
67*26947304SEvan Yan
68*26947304SEvan Yaninclude ../Makefile.targ
69