xref: /titanic_44/usr/src/cmd/cmd-inet/lib/ipmgmtd/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
16e91bba0SGirish Moodalbail#
26e91bba0SGirish Moodalbail# CDDL HEADER START
36e91bba0SGirish Moodalbail#
46e91bba0SGirish Moodalbail# The contents of this file are subject to the terms of the
56e91bba0SGirish Moodalbail# Common Development and Distribution License (the "License").
66e91bba0SGirish Moodalbail# You may not use this file except in compliance with the License.
76e91bba0SGirish Moodalbail#
86e91bba0SGirish Moodalbail# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
96e91bba0SGirish Moodalbail# or http://www.opensolaris.org/os/licensing.
106e91bba0SGirish Moodalbail# See the License for the specific language governing permissions
116e91bba0SGirish Moodalbail# and limitations under the License.
126e91bba0SGirish Moodalbail#
136e91bba0SGirish Moodalbail# When distributing Covered Code, include this CDDL HEADER in each
146e91bba0SGirish Moodalbail# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
156e91bba0SGirish Moodalbail# If applicable, add the following below this CDDL HEADER, with the
166e91bba0SGirish Moodalbail# fields enclosed by brackets "[]" replaced with your own identifying
176e91bba0SGirish Moodalbail# information: Portions Copyright [yyyy] [name of copyright owner]
186e91bba0SGirish Moodalbail#
196e91bba0SGirish Moodalbail# CDDL HEADER END
206e91bba0SGirish Moodalbail#
21ef810481SRenee Danson Sommerfeld# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
226e91bba0SGirish Moodalbail#
236e91bba0SGirish Moodalbail
246e91bba0SGirish Moodalbail# Needed for ROOTFS_LIBDIR definition
256e91bba0SGirish Moodalbailinclude		../../../../lib/Makefile.lib
266e91bba0SGirish Moodalbail
276e91bba0SGirish MoodalbailPROG=		ipmgmtd
286e91bba0SGirish MoodalbailOBJS=		ipmgmt_main.o ipmgmt_door.o ipmgmt_persist.o ipmgmt_util.o
296e91bba0SGirish MoodalbailSRCS=		$(OBJS:.o=.c)
306e91bba0SGirish MoodalbailSVCMETHOD=	net-ipmgmt
316e91bba0SGirish MoodalbailMANIFEST=	network-ipmgmt.xml
326e91bba0SGirish MoodalbailCFGFILES=	ipadm.conf
336e91bba0SGirish Moodalbail
346e91bba0SGirish Moodalbail# Needed for ROOTETC definition
356e91bba0SGirish Moodalbailinclude		../../../Makefile.cmd
366e91bba0SGirish Moodalbail
376e91bba0SGirish MoodalbailROOTCFGDIR=		$(ROOTETC)/ipadm
386e91bba0SGirish MoodalbailROOTCFGFILES=		$(CFGFILES:%=$(ROOTCFGDIR)/%)
396e91bba0SGirish MoodalbailROOTMANIFESTDIR=	$(ROOTSVCNETWORK)
406e91bba0SGirish Moodalbail
41*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch
42*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized
43*7014882cSRichard Lowe
446e91bba0SGirish Moodalbail$(ROOTCFGFILES)	:= OWNER= ipadm
456e91bba0SGirish Moodalbail$(ROOTCFGFILES)	:= GROUP= sys
466e91bba0SGirish Moodalbail$(ROOTCFGFILES)	:= FILEMODE= 644
476e91bba0SGirish Moodalbail
486e91bba0SGirish MoodalbailROOTCMDDIR=	$(ROOTFS_LIBDIR)/inet
496e91bba0SGirish Moodalbail
50550b6e40SSowmini VaradhanLDLIBS += -lipadm -lnvpair -lsecdb -lnsl -lumem -lscf
516e91bba0SGirish Moodalbail
526e91bba0SGirish Moodalbail#
536e91bba0SGirish Moodalbail# Instrument ipmgmtd with CTF data to ease debugging.
546e91bba0SGirish Moodalbail#
556e91bba0SGirish MoodalbailCTFCONVERT_HOOK = && $(CTFCONVERT_O)
566e91bba0SGirish MoodalbailCTFMERGE_HOOK = && $(CTFMERGE) -L VERSION -o $@ $(OBJS)
576e91bba0SGirish Moodalbail$(OBJS) := CFLAGS += $(CTF_FLAGS)
586e91bba0SGirish Moodalbail
596e91bba0SGirish Moodalbail.KEEP_STATE:
606e91bba0SGirish Moodalbail
616e91bba0SGirish Moodalbail.PARALLEL:
626e91bba0SGirish Moodalbail
636e91bba0SGirish Moodalbailall: $(PROG)
646e91bba0SGirish Moodalbail
656e91bba0SGirish Moodalbail$(PROG): $(OBJS)
666e91bba0SGirish Moodalbail	$(LINK.c) -o $@ $(OBJS) $(LDLIBS) $(CTFMERGE_HOOK)
676e91bba0SGirish Moodalbail	$(POST_PROCESS)
686e91bba0SGirish Moodalbail
696e91bba0SGirish Moodalbailinstall: $(ROOTCMD) $(ROOTMANIFEST) $(ROOTSVCMETHOD) $(ROOTCFGDIR) \
706e91bba0SGirish Moodalbail	$(ROOTCFGFILES)
716e91bba0SGirish Moodalbail
726e91bba0SGirish Moodalbailcheck:  $(SRCS) $(HEADERS) $(CHKMANIFEST)
736e91bba0SGirish Moodalbail	$(CSTYLE) -cpP $(SRCS) $(HEADERS)
746e91bba0SGirish Moodalbail
756e91bba0SGirish Moodalbail$(ROOTCMD): $(PROG)
766e91bba0SGirish Moodalbail
776e91bba0SGirish Moodalbailclean:
786e91bba0SGirish Moodalbail	$(RM) $(OBJS)
796e91bba0SGirish Moodalbail
806e91bba0SGirish Moodalbaillint:	lint_SRCS
816e91bba0SGirish Moodalbail
826e91bba0SGirish Moodalbail$(ROOTCFGDIR):
836e91bba0SGirish Moodalbail	$(INS.dir)
846e91bba0SGirish Moodalbail
856e91bba0SGirish Moodalbail$(ROOTCFGDIR)/%: $(ROOTCFGDIR) %
866e91bba0SGirish Moodalbail	$(INS.file)
876e91bba0SGirish Moodalbail
886e91bba0SGirish Moodalbailinclude 	../../../Makefile.targ
89