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