dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / cmd-inet / usr.lib / vrrpd / Makefile
blob340b3d0506e8ffb4ebb2bd5d1755907a7402eb9f
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
22 # Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
25 PROG= vrrpd
26 OBJS= vrrpd.o
27 SRCS= $(OBJS:.o=.c)
28 SVCMETHOD= svc-vrrp
29 MANIFEST= vrrp.xml
30 CFGFILES= vrrp.conf
32 include ../../../Makefile.cmd
34 ROOTMANIFESTDIR= $(ROOTSVCNETWORK)
36 $(ROOTETC)/inet/$(CFGFILES):= FILEMODE= 644
37 $(ROOTETC)/inet/$(CFGFILES):= OWNER= root
38 $(ROOTETC)/inet/$(CFGFILES):= GROUP= sys
40 C99MODE= $(C99_ENABLE)
43 # We need access to the ancillary data features which are only available
44 # via the SUS standards. Further, C99 support requires SUSv3 or higher.
46 CPPFLAGS += -D_XOPEN_SOURCE=600 -D__EXTENSIONS__
47 LDLIBS += -lvrrpadm -ldladm -linetutil -lipadm -lsysevent -lnvpair -lsecdb
49 CERRWARN += -Wno-uninitialized
52 # Instrument vrrpd with CTF data to ease debugging.
54 CTFCONVERT_HOOK = && $(CTFCONVERT_O)
55 CTFMERGE_HOOK = && $(CTFMERGE) -L VERSION -o $@ $(OBJS)
56 $(OBJS) := CFLAGS += $(CTF_FLAGS)
58 # for messaging catalog. No messages are present in CMN_DIR sources.
59 POFILES = $(LOCAL_OBJS:%.o=%.po)
60 XGETFLAGS += -a -x vrrpd.xcl
62 .KEEP_STATE:
64 all: $(PROG)
66 $(PROG): $(OBJS)
67 $(LINK.c) -o $@ $(OBJS) $(LDLIBS) $(CTFMERGE_HOOK)
68 $(POST_PROCESS)
70 include ../Makefile.lib
72 install: all $(ROOTLIBINETPROG) $(ROOTMANIFEST) $(ROOTSVCMETHOD) \
73 $(ROOTETC)/inet/$(CFGFILES)
75 check: $(CHKMANIFEST)
77 clean:
78 $(RM) $(OBJS)
81 include ../../../Makefile.targ