11cb875aeSCathy Zhou#
21cb875aeSCathy Zhou# CDDL HEADER START
31cb875aeSCathy Zhou#
41cb875aeSCathy Zhou# The contents of this file are subject to the terms of the
51cb875aeSCathy Zhou# Common Development and Distribution License (the "License").
61cb875aeSCathy Zhou# You may not use this file except in compliance with the License.
71cb875aeSCathy Zhou#
81cb875aeSCathy Zhou# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
91cb875aeSCathy Zhou# or http://www.opensolaris.org/os/licensing.
101cb875aeSCathy Zhou# See the License for the specific language governing permissions
111cb875aeSCathy Zhou# and limitations under the License.
121cb875aeSCathy Zhou#
131cb875aeSCathy Zhou# When distributing Covered Code, include this CDDL HEADER in each
141cb875aeSCathy Zhou# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
151cb875aeSCathy Zhou# If applicable, add the following below this CDDL HEADER, with the
161cb875aeSCathy Zhou# fields enclosed by brackets "[]" replaced with your own identifying
171cb875aeSCathy Zhou# information: Portions Copyright [yyyy] [name of copyright owner]
181cb875aeSCathy Zhou#
191cb875aeSCathy Zhou# CDDL HEADER END
201cb875aeSCathy Zhou#
211cb875aeSCathy Zhou#
22f6da83d4SAnurag S. Maskey# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
231cb875aeSCathy Zhou#
241cb875aeSCathy Zhou
251cb875aeSCathy ZhouPROG=		vrrpd
261cb875aeSCathy ZhouOBJS=		vrrpd.o
271cb875aeSCathy ZhouSRCS=		$(OBJS:.o=.c)
281cb875aeSCathy ZhouSVCMETHOD=	svc-vrrp
291cb875aeSCathy ZhouMANIFEST=	vrrp.xml
301cb875aeSCathy ZhouCFGFILES=	vrrp.conf
311cb875aeSCathy Zhou
321cb875aeSCathy Zhouinclude ../../../Makefile.cmd
331cb875aeSCathy Zhou
351cb875aeSCathy Zhou
361cb875aeSCathy Zhou$(ROOTETC)/inet/$(CFGFILES):= FILEMODE= 644
371cb875aeSCathy Zhou$(ROOTETC)/inet/$(CFGFILES):= OWNER= root
381cb875aeSCathy Zhou$(ROOTETC)/inet/$(CFGFILES):= GROUP= sys
391cb875aeSCathy Zhou
40bd0ce624SYuri PankovCSTD=		$(CSTD_GNU99)
411cb875aeSCathy Zhou
421cb875aeSCathy Zhou#
431cb875aeSCathy Zhou# We need access to the ancillary data features which are only available
441cb875aeSCathy Zhou# via the SUS standards.  Further, C99 support requires SUSv3 or higher.
451cb875aeSCathy Zhou#
461cb875aeSCathy ZhouCPPFLAGS += -D_XOPEN_SOURCE=600 -D__EXTENSIONS__
47f6da83d4SAnurag S. MaskeyLDLIBS += -lvrrpadm -lsocket -lnsl -ldladm -linetutil -lipadm -lsysevent -lnvpair -lsecdb
481cb875aeSCathy ZhouLINTFLAGS += -erroff=E_INCONS_ARG_DECL2  -erroff=E_INCONS_ARG_USED2
491cb875aeSCathy Zhou
50*d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT)
517014882cSRichard Lowe
521cb875aeSCathy Zhou#
531cb875aeSCathy Zhou# Instrument vrrpd with CTF data to ease debugging.
541cb875aeSCathy Zhou#
551cb875aeSCathy ZhouCTFCONVERT_HOOK = && $(CTFCONVERT_O)
561cb875aeSCathy ZhouCTFMERGE_HOOK = && $(CTFMERGE) -L VERSION -o $@ $(OBJS)
571cb875aeSCathy Zhou$(OBJS) := CFLAGS += $(CTF_FLAGS)
581cb875aeSCathy Zhou
591cb875aeSCathy Zhou# for messaging catalog. No messages are present in CMN_DIR sources.
601cb875aeSCathy ZhouPOFILES = $(LOCAL_OBJS:%.o=%.po)
611cb875aeSCathy ZhouXGETFLAGS += -a -x vrrpd.xcl
621cb875aeSCathy Zhou
631cb875aeSCathy Zhou.KEEP_STATE:
641cb875aeSCathy Zhou
651cb875aeSCathy Zhouall: $(PROG)
661cb875aeSCathy Zhou
671cb875aeSCathy Zhou$(PROG): $(OBJS)
681cb875aeSCathy Zhou	$(LINK.c) -o $@ $(OBJS) $(LDLIBS) $(CTFMERGE_HOOK)
691cb875aeSCathy Zhou	$(POST_PROCESS)
701cb875aeSCathy Zhou
711cb875aeSCathy Zhouinclude ../Makefile.lib
721cb875aeSCathy Zhou
731cb875aeSCathy Zhouinstall: all $(ROOTLIBINETPROG) $(ROOTMANIFEST) $(ROOTSVCMETHOD) \
741cb875aeSCathy Zhou	$(ROOTETC)/inet/$(CFGFILES)
751cb875aeSCathy Zhou
761cb875aeSCathy Zhoucheck:	$(CHKMANIFEST)
771cb875aeSCathy Zhou
781cb875aeSCathy Zhouclean:
791cb875aeSCathy Zhou	$(RM) $(OBJS)
801cb875aeSCathy Zhou
811cb875aeSCathy Zhoulint:	lint_SRCS
821cb875aeSCathy Zhou
831cb875aeSCathy Zhouinclude ../../../Makefile.targ