xref: /onnv-gate/usr/src/cmd/hotplug/Makefile (revision 10923:df470fd79c3c)
1*10923SEvan.Yan@Sun.COM#
2*10923SEvan.Yan@Sun.COM# CDDL HEADER START
3*10923SEvan.Yan@Sun.COM#
4*10923SEvan.Yan@Sun.COM# The contents of this file are subject to the terms of the
5*10923SEvan.Yan@Sun.COM# Common Development and Distribution License (the "License").
6*10923SEvan.Yan@Sun.COM# You may not use this file except in compliance with the License.
7*10923SEvan.Yan@Sun.COM#
8*10923SEvan.Yan@Sun.COM# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*10923SEvan.Yan@Sun.COM# or http://www.opensolaris.org/os/licensing.
10*10923SEvan.Yan@Sun.COM# See the License for the specific language governing permissions
11*10923SEvan.Yan@Sun.COM# and limitations under the License.
12*10923SEvan.Yan@Sun.COM#
13*10923SEvan.Yan@Sun.COM# When distributing Covered Code, include this CDDL HEADER in each
14*10923SEvan.Yan@Sun.COM# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*10923SEvan.Yan@Sun.COM# If applicable, add the following below this CDDL HEADER, with the
16*10923SEvan.Yan@Sun.COM# fields enclosed by brackets "[]" replaced with your own identifying
17*10923SEvan.Yan@Sun.COM# information: Portions Copyright [yyyy] [name of copyright owner]
18*10923SEvan.Yan@Sun.COM#
19*10923SEvan.Yan@Sun.COM# CDDL HEADER END
20*10923SEvan.Yan@Sun.COM#
21*10923SEvan.Yan@Sun.COM#
22*10923SEvan.Yan@Sun.COM# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23*10923SEvan.Yan@Sun.COM# Use is subject to license terms.
24*10923SEvan.Yan@Sun.COM#
25*10923SEvan.Yan@Sun.COM# cmd/hotplug/Makefile
26*10923SEvan.Yan@Sun.COM#
27*10923SEvan.Yan@Sun.COM
28*10923SEvan.Yan@Sun.COMPROG=	hotplug
29*10923SEvan.Yan@Sun.COM
30*10923SEvan.Yan@Sun.COMinclude	../Makefile.cmd
31*10923SEvan.Yan@Sun.COM
32*10923SEvan.Yan@Sun.COMOBJS=	hotplug.o
33*10923SEvan.Yan@Sun.COMSRCS=	$(OBJS:.o=.c)
34*10923SEvan.Yan@Sun.COM
35*10923SEvan.Yan@Sun.COMCPPFLAGS +=	-I$(SRC)/lib/libhotplug/common
36*10923SEvan.Yan@Sun.COMLDLIBS +=	-lhotplug
37*10923SEvan.Yan@Sun.COM
38*10923SEvan.Yan@Sun.COMXGETFLAGS += -s
39*10923SEvan.Yan@Sun.COM
40*10923SEvan.Yan@Sun.COM.KEEP_STATE:
41*10923SEvan.Yan@Sun.COM
42*10923SEvan.Yan@Sun.COMall: $(PROG)
43*10923SEvan.Yan@Sun.COM
44*10923SEvan.Yan@Sun.COM$(PROG): $(OBJS)
45*10923SEvan.Yan@Sun.COM	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
46*10923SEvan.Yan@Sun.COM	$(POST_PROCESS)
47*10923SEvan.Yan@Sun.COM
48*10923SEvan.Yan@Sun.COMinstall: all $(ROOTUSRSBINPROG)
49*10923SEvan.Yan@Sun.COM
50*10923SEvan.Yan@Sun.COMcheck:	$(PROG).c
51*10923SEvan.Yan@Sun.COM	$(CSTYLE) -pP $(SRCS:%=%)
52*10923SEvan.Yan@Sun.COM
53*10923SEvan.Yan@Sun.COMclean:
54*10923SEvan.Yan@Sun.COM
55*10923SEvan.Yan@Sun.COMlint: lint_SRCS
56*10923SEvan.Yan@Sun.COM
57*10923SEvan.Yan@Sun.COMinclude	../Makefile.targ
58