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.sbin/snoop/Makefile
+++ new/usr/src/cmd/cmd-inet/usr.sbin/snoop/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 #
23 23 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 # Copyright (c) 2018, Joyent, Inc.
26 26 #
27 27
28 28 PROG= snoop
29 29 OBJS= nfs4_xdr.o snoop.o snoop_aarp.o snoop_adsp.o snoop_aecho.o \
30 30 snoop_apple.o snoop_arp.o snoop_atp.o snoop_bparam.o \
31 31 snoop_bpdu.o \
32 32 snoop_capture.o snoop_dhcp.o snoop_dhcpv6.o snoop_display.o \
33 33 snoop_dns.o snoop_ether.o \
34 34 snoop_filter.o snoop_http.o snoop_icmp.o snoop_igmp.o snoop_ip.o \
35 35 snoop_ipaddr.o snoop_ipsec.o snoop_isis.o \
36 36 snoop_ldap.o snoop_mip.o snoop_mount.o \
37 37 snoop_nbp.o snoop_netbios.o snoop_nfs.o snoop_nfs3.o snoop_nfs4.o \
38 38 snoop_nfs_acl.o snoop_nis.o snoop_nlm.o snoop_ntp.o \
39 39 snoop_pf.o snoop_ospf.o snoop_ospf6.o snoop_pmap.o snoop_ppp.o \
40 40 snoop_pppoe.o snoop_rip.o snoop_rip6.o snoop_rpc.o snoop_rpcprint.o \
41 41 snoop_rpcsec.o snoop_rport.o snoop_rquota.o snoop_rstat.o snoop_rtmp.o \
42 42 snoop_sctp.o snoop_slp.o snoop_smb.o snoop_socks.o snoop_solarnet.o \
43 43 snoop_tcp.o snoop_tftp.o snoop_trill.o snoop_udp.o snoop_zip.o
44 44
45 45 SRCS= $(OBJS:.o=.c)
↓ open down ↓ |
45 lines elided |
↑ open up ↑ |
46 46 HDRS= snoop.h snoop_mip.h at.h snoop_ospf.h snoop_ospf6.h
47 47
48 48 include ../../../Makefile.cmd
49 49
50 50 CPPFLAGS += -I. -I$(SRC)/common/net/dhcp \
51 51 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
52 52 LDLIBS += -ldhcputil -ldlpi -lsocket -lnsl -ltsol
53 53 LDFLAGS += $(MAPFILE.NGB:%=-M%)
54 54 CERRWARN += -_gcc=-Wno-switch
55 55 CERRWARN += -_gcc=-Wno-implicit-function-declaration
56 -CERRWARN += -_gcc=-Wno-uninitialized
56 +CERRWARN += $(CNOWARN_UNINIT)
57 57 CERRWARN += -_gcc=-Wno-clobbered
58 58 CERRWARN += -_gcc=-Wno-unused-value
59 59 CERRWARN += -_gcc=-Wno-parentheses
60 60 CERRWARN += -_gcc=-Wno-unused-variable
61 61 CERRWARN += -_gcc=-Wno-unused-label
62 62 CERRWARN += -_gcc=-Wno-unused-function
63 63
64 64 # we really should have smatch running on this code but...
65 65 SMATCH=off
66 66
67 67 .KEEP_STATE:
68 68
69 69 .PARALLEL: $(OBJS)
70 70
71 71 all: $(PROG)
72 72
73 73 $(PROG): $(OBJS) $(MAPFILE.NGB)
74 74 $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
75 75 $(POST_PROCESS)
76 76
77 77 install: all $(ROOTUSRSBINPROG)
78 78
79 79 clean:
80 80 $(RM) $(OBJS)
81 81
82 82 lint: lint_SRCS
83 83
84 84 include ../../../Makefile.targ
↓ open down ↓ |
18 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX