1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License (the "License"). 6# You may not use this file except in compliance with the License. 7# 8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9# or http://www.opensolaris.org/os/licensing. 10# See the License for the specific language governing permissions 11# and limitations under the License. 12# 13# When distributing Covered Code, include this CDDL HEADER in each 14# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15# If applicable, add the following below this CDDL HEADER, with the 16# fields enclosed by brackets "[]" replaced with your own identifying 17# information: Portions Copyright [yyyy] [name of copyright owner] 18# 19# CDDL HEADER END 20# 21# 22# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23# Use is subject to license terms. 24# 25 26PROG= vrrpd 27OBJS= vrrpd.o 28SRCS= $(OBJS:.o=.c) 29SVCMETHOD= svc-vrrp 30MANIFEST= vrrp.xml 31CFGFILES= vrrp.conf 32 33include ../../../Makefile.cmd 34 35ROOTMANIFESTDIR= $(ROOTSVCNETWORK) 36 37$(ROOTETC)/inet/$(CFGFILES):= FILEMODE= 644 38$(ROOTETC)/inet/$(CFGFILES):= OWNER= root 39$(ROOTETC)/inet/$(CFGFILES):= GROUP= sys 40 41C99MODE= $(C99_ENABLE) 42 43# 44# We need access to the ancillary data features which are only available 45# via the SUS standards. Further, C99 support requires SUSv3 or higher. 46# 47CPPFLAGS += -D_XOPEN_SOURCE=600 -D__EXTENSIONS__ 48LDLIBS += -lvrrpadm -lsocket -lnsl -ldladm -linetutil -lsysevent -lnvpair -lsecdb -linetcfg 49LINTFLAGS += -erroff=E_INCONS_ARG_DECL2 -erroff=E_INCONS_ARG_USED2 50 51# 52# Instrument vrrpd with CTF data to ease debugging. 53# 54CTFCONVERT_HOOK = && $(CTFCONVERT_O) 55CTFMERGE_HOOK = && $(CTFMERGE) -L VERSION -o $@ $(OBJS) 56$(OBJS) := CFLAGS += $(CTF_FLAGS) 57 58# for messaging catalog. No messages are present in CMN_DIR sources. 59POFILES = $(LOCAL_OBJS:%.o=%.po) 60XGETFLAGS += -a -x vrrpd.xcl 61 62.KEEP_STATE: 63 64all: $(PROG) 65 66$(PROG): $(OBJS) 67 $(LINK.c) -o $@ $(OBJS) $(LDLIBS) $(CTFMERGE_HOOK) 68 $(POST_PROCESS) 69 70include ../Makefile.lib 71 72install: all $(ROOTLIBINETPROG) $(ROOTMANIFEST) $(ROOTSVCMETHOD) \ 73 $(ROOTETC)/inet/$(CFGFILES) 74 75check: $(CHKMANIFEST) 76 77clean: 78 $(RM) $(OBJS) 79 80lint: lint_SRCS 81 82include ../../../Makefile.targ 83