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/lib/nwamd/Makefile
+++ new/usr/src/cmd/cmd-inet/lib/nwamd/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) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
23 23 #
24 24 # Copyright (c) 2018, Joyent, Inc.
25 25
26 26 # Needed for ROOTFS_LIBDIR definition
27 27 include ../../../../lib/Makefile.lib
28 28
29 29 PROG= nwamd
30 30 OBJS= conditions.o dlpi_events.o door_if.o enm.o\
31 31 events.o known_wlans.o llp.o loc.o logging.o\
32 32 main.o ncp.o ncu.o ncu_phys.o ncu_ip.o objects.o\
33 33 routing_events.o sysevent_events.o util.o
34 34 SRCS= $(OBJS:%.o=%.c)
35 35 HEADERS= conditions.h events.h known_wlans.h llp.h ncp.h ncu.h\
36 36 objects.h
37 37 LOCFILES= create_loc_auto create_loc_nonet
38 38 NONETLOCFILES= ipf.conf.dfl ipf6.conf.dfl
39 39
40 40 ROOTCFGDIR= $(ROOTETC)/nwam
41 41 ROOTLOCDIR= $(ROOTCFGDIR)/loc
42 42 NONETLOCDIR= $(ROOTLOCDIR)/NoNet
43 43 LOCDIRS= $(NONETLOCDIR)
44 44 ROOTCFGFILES= $(LOCFILES:%=$(ROOTLOCDIR)/%) \
45 45 $(NONETLOCFILES:%=$(NONETLOCDIR)/%)
46 46
↓ open down ↓ |
46 lines elided |
↑ open up ↑ |
47 47 include ../../../Makefile.cmd
48 48
49 49 $(ROOTCFGFILES) := FILEMODE= 644
50 50
51 51 ROOTCMDDIR= $(ROOTFS_LIBDIR)/inet
52 52
53 53 LDLIBS += -ldhcpagent -ldhcputil -ldladm -ldlpi -lgen \
54 54 -linetutil -lipadm -lkstat -lnsl -lnvpair -lnwam \
55 55 -lsecdb -lscf -lsocket -lsysevent -lumem -luutil
56 56
57 -CERRWARN += -_gcc=-Wno-uninitialized
57 +CERRWARN += $(CNOWARN_UNINIT)
58 58 CERRWARN += -_gcc=-Wno-parentheses
59 59 CERRWARN += -_gcc=-Wno-switch
60 60 CERRWARN += -_gcc=-Wno-unused-label
61 61
62 62 # not linted
63 63 SMATCH=off
64 64
65 65 #
66 66 # Instrument with CTF data to ease debugging.
67 67 #
68 68 CTFCONVERT_HOOK = && $(CTFCONVERT_O)
69 69 CTFMERGE_HOOK = && $(CTFMERGE) -L VERSION -o $@ $(OBJS)
70 70 $(OBJS) := CFLAGS += $(CTF_FLAGS)
71 71
72 72 .KEEP_STATE:
73 73
74 74 .PARALLEL:
75 75
76 76 all: $(PROG)
77 77
78 78 $(PROG): $(OBJS)
79 79 $(LINK.c) $(OBJS) -o $@ $(LDLIBS) $(CTFMERGE_HOOK)
80 80 $(POST_PROCESS)
81 81
82 82 install: $(ROOTCMD) $(ROOTLOCDIR) $(ROOTCFGFILES)
83 83
84 84 check: $(SRCS) $(HEADERS)
85 85 $(CSTYLE) -cpP $(SRCS) $(HEADERS)
86 86
87 87 $(ROOTCMD): all
88 88
89 89 clean:
90 90 $(RM) $(OBJS)
91 91
92 92 lint: lint_SRCS
93 93
94 94 $(ROOTCFGDIR):
95 95 $(INS.dir)
96 96
97 97 $(ROOTLOCDIR): $(ROOTCFGDIR)
98 98 $(INS.dir)
99 99
100 100 $(LOCDIRS): $(ROOTLOCDIR)
101 101 $(INS.dir)
102 102
103 103 $(ROOTLOCDIR)/%: $(ROOTLOCDIR) %
104 104 $(INS.file)
105 105
106 106 $(NONETLOCDIR)/%: $(NONETLOCDIR) %
107 107 $(INS.file)
108 108
109 109 include ../../../Makefile.targ
↓ open down ↓ |
42 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX