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/ilbd/Makefile
+++ new/usr/src/cmd/cmd-inet/usr.lib/ilbd/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 # Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
22 22 #
23 23 # Copyright (c) 2018, Joyent, Inc.
24 24
25 25 ILBD= ilbd
26 26 PROG= $(ILBD)
27 27 MANIFEST= ilbd.xml
28 28
29 29 ILBD_OBJS= ilbd_main.o ilbd_support.o ilbd_sg.o ilbd_rules.o ilbd_hc.o \
30 30 ilbd_nat.o ilbd_scf.o
31 31 ILBD_SRCS= $(ILBD_OBJS:%.o=%.c)
32 32 HDRS= ilbd.h
33 33
34 34 LIB_INC= $(SRC)/lib/libilb/common
35 35
36 36 OBJS= $(ILBD_OBJS)
37 37 SRCS= $(ILBD_SRCS)
38 38
39 39 ILBSUBDIRS= ilb
40 40
41 41 include ../../../Makefile.cmd
42 42 include ../../../Makefile.ctf
43 43 include ../../Makefile.cmd-inet
↓ open down ↓ |
43 lines elided |
↑ open up ↑ |
44 44
45 45 ROOTMANIFESTDIR= $(ROOTSVCNETWORK)/loadbalancer
46 46
47 47 CHECKHDRS= $(HDRS:%.h=%.check)
48 48
49 49 CPPFLAGS += -D_FILE_OFFSET_BITS=64 -I$(CMDINETCOMMONDIR) -D_REENTRANT
50 50 CPPFLAGS += -I$(LIB_INC)
51 51 CPPFLAGS += -I$(SRC)/uts/common
52 52
53 53 CERRWARN += -_gcc=-Wno-switch
54 -CERRWARN += -_gcc=-Wno-uninitialized
54 +CERRWARN += $(CNOWARN_UNINIT)
55 55 CERRWARN += -_gcc=-Wno-unused-label
56 56
57 57 # not linted
58 58 SMATCH=off
59 59
60 60 CSTD = $(CSTD_GNU99)
61 61
62 62 # I18n
63 63 POFILE = $(ILBD).po
64 64 POFILES = $(ILBD_SRCS:%.c=%.po)
65 65
66 66 all:= TARGET= all
67 67 install:= TARGET= install
68 68 clean:= TARGET= clean
69 69 clobber:= TARGET= clobber
70 70 lint:= TARGET= lint
71 71
72 72
73 73 LDLIBS += -lcmdutils -lsocket -lsecdb -lnsl -lilb -lscf -linetutil -lbsm
74 74
75 75 .KEEP_STATE:
76 76
77 77 all: $(PROG)
78 78
79 79 $(ILBD): $(OBJS)
80 80 $(LINK.c) $(OBJS) -o $@ $(LDLIBS) $(CTFMERGE_HOOK)
81 81 $(POST_PROCESS)
82 82
83 83 include ../Makefile.lib
84 84
85 85 install: all $(ROOTLIBINETPROG) $(ETCILBDFILES) $(ROOTMANIFEST)
86 86
87 87 check: $(CHKMANIFEST) $(CHECKHDRS)
88 88
89 89 clean:
90 90 $(RM) $(OBJS)
91 91
92 92 lint:
93 93 $(LINT.c) $(ILBD_SRCS) $(LDLIBS)
94 94
95 95 $(POFILE): $(POFILES)
96 96 $(RM) $@
97 97 $(CAT) $(POFILES) > $@
98 98
99 99 all install clean clobber lint: $(ILBSUBDIRS)
100 100
101 101 include ../../../Makefile.targ
102 102
103 103 $(ILBSUBDIRS): FRC
104 104 @cd $@; pwd; $(MAKE) $(TARGET)
105 105
106 106 FRC:
↓ open down ↓ |
42 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX