Makefile revision f6da83d4178694e7113b71d1e452f15b296f73d8
0N/A#
2362N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
2362N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2362N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
0N/A#
2362N/A#
2362N/A# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
2362N/A#
0N/A
0N/APROG= vrrpd
0N/AOBJS= vrrpd.o
0N/ASRCS= $(OBJS:.o=.c)
0N/ASVCMETHOD= svc-vrrp
0N/AMANIFEST= vrrp.xml
0N/ACFGFILES= vrrp.conf
0N/A
0N/Ainclude ../../../Makefile.cmd
0N/A
0N/AROOTMANIFESTDIR= $(ROOTSVCNETWORK)
0N/A
0N/A$(ROOTETC)/inet/$(CFGFILES):= FILEMODE= 644
0N/A$(ROOTETC)/inet/$(CFGFILES):= OWNER= root
0N/A$(ROOTETC)/inet/$(CFGFILES):= GROUP= sys
0N/A
0N/AC99MODE= $(C99_ENABLE)
0N/A
0N/A#
0N/A# We need access to the ancillary data features which are only available
0N/A# via the SUS standards. Further, C99 support requires SUSv3 or higher.
0N/A#
0N/ACPPFLAGS += -D_XOPEN_SOURCE=600 -D__EXTENSIONS__
0N/ALDLIBS += -lvrrpadm -lsocket -lnsl -ldladm -linetutil -lipadm -lsysevent -lnvpair -lsecdb
0N/ALINTFLAGS += -erroff=E_INCONS_ARG_DECL2 -erroff=E_INCONS_ARG_USED2
#
# Instrument vrrpd with CTF data to ease debugging.
#
CTFCONVERT_HOOK = && $(CTFCONVERT_O)
CTFMERGE_HOOK = && $(CTFMERGE) -L VERSION -o $@ $(OBJS)
$(OBJS) := CFLAGS += $(CTF_FLAGS)
# for messaging catalog. No messages are present in CMN_DIR sources.
POFILES = $(LOCAL_OBJS:%.o=%.po)
XGETFLAGS += -a -x vrrpd.xcl
.KEEP_STATE:
all: $(PROG)
$(PROG): $(OBJS)
$(LINK.c) -o $@ $(OBJS) $(LDLIBS) $(CTFMERGE_HOOK)
$(POST_PROCESS)
include ../Makefile.lib
install: all $(ROOTLIBINETPROG) $(ROOTMANIFEST) $(ROOTSVCMETHOD) \
$(ROOTETC)/inet/$(CFGFILES)
check: $(CHKMANIFEST)
clean:
$(RM) $(OBJS)
lint: lint_SRCS
include ../../../Makefile.targ