xref: /illumos-gate/usr/src/cmd/hotplugd/Makefile (revision d3b5f56344d8bfcdd6cfb82446af0e5e55ad9ebe)
126947304SEvan Yan#
226947304SEvan Yan# CDDL HEADER START
326947304SEvan Yan#
426947304SEvan Yan# The contents of this file are subject to the terms of the
526947304SEvan Yan# Common Development and Distribution License (the "License").
626947304SEvan Yan# You may not use this file except in compliance with the License.
726947304SEvan Yan#
826947304SEvan Yan# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
926947304SEvan Yan# or http://www.opensolaris.org/os/licensing.
1026947304SEvan Yan# See the License for the specific language governing permissions
1126947304SEvan Yan# and limitations under the License.
1226947304SEvan Yan#
1326947304SEvan Yan# When distributing Covered Code, include this CDDL HEADER in each
1426947304SEvan Yan# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1526947304SEvan Yan# If applicable, add the following below this CDDL HEADER, with the
1626947304SEvan Yan# fields enclosed by brackets "[]" replaced with your own identifying
1726947304SEvan Yan# information: Portions Copyright [yyyy] [name of copyright owner]
1826947304SEvan Yan#
1926947304SEvan Yan# CDDL HEADER END
2026947304SEvan Yan#
2126947304SEvan Yan#
2226947304SEvan Yan# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
2326947304SEvan Yan# Use is subject to license terms.
2426947304SEvan Yan#
2526947304SEvan Yan#
2626947304SEvan Yan# cmd/hotplugd/Makefile
2726947304SEvan Yan#
2826947304SEvan Yan
2926947304SEvan YanPROG= 		hotplugd
3026947304SEvan YanOBJS=		hotplugd.o \
3126947304SEvan Yan		hotplugd_impl.o \
3226947304SEvan Yan		hotplugd_door.o \
3326947304SEvan Yan		hotplugd_info.o \
3426947304SEvan Yan		hotplugd_rcm.o
3526947304SEvan YanSRCS=		$(OBJS:.o=.c)
3626947304SEvan YanSVCMETHOD=	svc-hotplug
3726947304SEvan YanMANIFEST=	hotplug.xml
3826947304SEvan Yan
3926947304SEvan Yaninclude ../Makefile.cmd
4026947304SEvan Yan
4126947304SEvan YanROOTCMDDIR=		$(ROOTLIB)
4226947304SEvan YanROOTMANIFESTDIR=	$(ROOTSVCSYSTEM)
4326947304SEvan Yan$(ROOTMANIFEST)		:= FILEMODE= 444
4426947304SEvan Yan
4526947304SEvan YanCPPFLAGS += -I$(SRC)/lib/libhotplug/common
467014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses
47*d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT)
4826947304SEvan YanLDLIBS += -ldevinfo -lhotplug -lnvpair -lsecdb -lrcm -lbsm
4926947304SEvan Yan
5026947304SEvan Yan.KEEP_STATE:
5126947304SEvan Yan
5226947304SEvan Yanall:	$(PROG)
5326947304SEvan Yan
5426947304SEvan Yan$(PROG): $(OBJS)
5526947304SEvan Yan	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
5626947304SEvan Yan	$(POST_PROCESS)
5726947304SEvan Yan
5826947304SEvan Yan.PARALLEL: $(OBJS)
5926947304SEvan Yan
6026947304SEvan Yaninstall: all $(ROOTCMD) $(ROOTMANIFEST) $(ROOTSVCMETHOD)
6126947304SEvan Yan
6226947304SEvan Yanclean:
6326947304SEvan Yan	$(RM) $(PROG) $(OBJS) $(LLOBJS)
6426947304SEvan Yan
6526947304SEvan Yancheck: $(CHKMANIFEST)
6626947304SEvan Yan	$(CSTYLE) -pP $(SRCS:%=%)
6726947304SEvan Yan
6826947304SEvan Yanlint:	lint_SRCS
6926947304SEvan Yan
7026947304SEvan Yaninclude ../Makefile.targ
71