Print this page
10080 smatch Makefile changes for usr/src/cmd
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/dladm/Makefile
+++ new/usr/src/cmd/dladm/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
↓ open down ↓ |
10 lines elided |
↑ open up ↑ |
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 -
22 -#
23 21 # Copyright 2010 Sun Microsystems, Inc. All rights reserved.
24 22 # Use is subject to license terms.
25 23 #
24 +# Copyright (c) 2018, Joyent, Inc.
26 25
27 26 PROG= dladm
28 27 ROOTFS_PROG= $(PROG)
29 28 OBJS= dladm.o
30 29
31 30 CFGFILES= secobj.conf
32 31 ROOTCFGDIR= $(ROOTETC)/dladm
33 32 ROOTCFGFILES= $(CFGFILES:%=$(ROOTCFGDIR)/%)
34 33
35 34 include $(SRC)/cmd/Makefile.cmd
36 35 include $(SRC)/cmd/Makefile.ctf
37 36
↓ open down ↓ |
2 lines elided |
↑ open up ↑ |
38 37 XGETFLAGS += -a -x $(PROG).xcl
39 38
40 39 LDLIBS += -L$(ROOT)/lib -lsocket
41 40 LDLIBS += -ldladm -ldlpi -lkstat -lsecdb -lbsm -lofmt -linetutil -ldevinfo
42 41 LDLIBS += $(ZLAZYLOAD) -lrstp $(ZNOLAZYLOAD)
43 42
44 43 CERRWARN += -_gcc=-Wno-switch
45 44 CERRWARN += -_gcc=-Wno-unused-label
46 45 CERRWARN += -_gcc=-Wno-uninitialized
47 46
47 +SMOFF += snprintf_overflow
48 +
48 49 # For headers from librstp.
49 50 LINTFLAGS += -erroff=E_TRAILING_COMMA_IN_ENUM
50 51 lint := ZLAZYLOAD=
51 52 lint := ZNOLAZYLOAD=
52 53
53 54 $(ROOTCFGDIR)/secobj.conf := FILEMODE= 660
54 55
55 56 .KEEP_STATE:
56 57
57 58 all: $(PROG)
58 59
59 60 $(PROG): $(OBJS)
60 61 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
61 62 $(POST_PROCESS)
62 63
63 64 clean:
64 65 $(RM) $(OBJS)
65 66
66 67 install: all $(ROOTSBINPROG) $(ROOTCFGDIR) $(ROOTCFGFILES)
67 68 $(RM) $(ROOTUSRSBINPROG)
68 69 -$(SYMLINK) ../../sbin/$(PROG) $(ROOTUSRSBINPROG)
69 70
70 71 lint: lint_PROG
71 72
72 73 $(ROOTCFGDIR):
73 74 $(INS.dir)
74 75
75 76 $(ROOTCFGDIR)/%: $(ROOTCFGDIR) %
76 77 $(INS.file)
77 78
78 79 include $(SRC)/cmd/Makefile.targ
↓ open down ↓ |
21 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX