xref: /illumos-gate/usr/src/cmd/hotplug/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# cmd/hotplug/Makefile
26*26947304SEvan Yan#
27*26947304SEvan Yan
28*26947304SEvan YanPROG=	hotplug
29*26947304SEvan Yan
30*26947304SEvan Yaninclude	../Makefile.cmd
31*26947304SEvan Yan
32*26947304SEvan YanOBJS=	hotplug.o
33*26947304SEvan YanSRCS=	$(OBJS:.o=.c)
34*26947304SEvan Yan
35*26947304SEvan YanCPPFLAGS +=	-I$(SRC)/lib/libhotplug/common
36*26947304SEvan YanLDLIBS +=	-lhotplug
37*26947304SEvan Yan
38*26947304SEvan YanXGETFLAGS += -s
39*26947304SEvan Yan
40*26947304SEvan Yan.KEEP_STATE:
41*26947304SEvan Yan
42*26947304SEvan Yanall: $(PROG)
43*26947304SEvan Yan
44*26947304SEvan Yan$(PROG): $(OBJS)
45*26947304SEvan Yan	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
46*26947304SEvan Yan	$(POST_PROCESS)
47*26947304SEvan Yan
48*26947304SEvan Yaninstall: all $(ROOTUSRSBINPROG)
49*26947304SEvan Yan
50*26947304SEvan Yancheck:	$(PROG).c
51*26947304SEvan Yan	$(CSTYLE) -pP $(SRCS:%=%)
52*26947304SEvan Yan
53*26947304SEvan Yanclean:
54*26947304SEvan Yan
55*26947304SEvan Yanlint: lint_SRCS
56*26947304SEvan Yan
57*26947304SEvan Yaninclude	../Makefile.targ
58