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