Print this page
10080 smatch Makefile changes for usr/src/cmd
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/listen/Makefile
+++ new/usr/src/cmd/listen/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
↓ open down ↓ |
15 lines elided |
↑ open up ↑ |
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 #
26 +# Copyright (c) 2018, Joyent, Inc.
27 +
26 28 PROG= listen nlps_server
27 29
28 30 DBGOBJ = doprnt.o
29 31 DBGSRC = doprnt.c
30 32
31 33 LSOBJS = listen.o lslog.o lsdbf.o lsdata.o nstoa.o nlsaddr.o
32 34
33 35 NLPSOBJS = nlps_serv.o lsdbf.o lssmb.o nstoa.o lslog.o lsdata.o
34 36
35 37 OBJS= $(LSOBJS) $(NLPSOBJS)
36 38 LSSRC= $(LSOBJS:%.o=%.c)
37 39 NLPSSRC= $(NLPSOBJS:%.o=%.c)
38 40 SRCS= $(LSSRC) $(NLPSSRC)
39 41
40 42 include ../Makefile.cmd
41 43
42 44 LIBSAFD = $(ROOTLIB)/saf
43 45 NETD = $(ROOT)/usr/net
44 46 NETNLSD = $(NETD)/nls
45 47
46 48 # Don"t re-install /usr/lib/saf/ and /usr/net, Targetdirs installs them
47 49 #DIRS= $(LIBSAFD) $(NETD) $(NETNLSD)
48 50 DIRS= $(NETNLSD)
49 51 ROOTSAFPROG= $(PROG:%=$(LIBSAFD)/%)
50 52
51 53 # If machine name and /etc/issue file need to be printed
52 54 # before the service prompt is printed, then: CPPFLAGS += -DSYS_NAME
53 55 # If debug is needed, then: CPPFLAGS += -DDEBUG
54 56
55 57 LDLIBS += -lnsl
↓ open down ↓ |
20 lines elided |
↑ open up ↑ |
56 58 LDFLAGS += $(MAPFILE.NGB:%=-M%)
57 59 LINTFLAGS = -b -x
58 60 FILEMODE= 0755
59 61
60 62 CERRWARN += -_gcc=-Wno-implicit-function-declaration
61 63 CERRWARN += -_gcc=-Wno-unused-variable
62 64 CERRWARN += -_gcc=-Wno-empty-body
63 65 CERRWARN += -_gcc=-Wno-parentheses
64 66 CERRWARN += -_gcc=-Wno-uninitialized
65 67
68 +# not linted
69 +SMATCH=off
70 +
66 71 $(LIBSAFD)/% : %
67 72 $(INS.file)
68 73
69 74 .KEEP_STATE:
70 75
71 76 all: $(PROG)
72 77
73 78 listen: $(LSOBJS) $(MAPFILE.NGB)
74 79 $(LINK.c) $(LSOBJS) -o $@ $(LDLIBS)
75 80 $(POST_PROCESS)
76 81
77 82 nlps_server: $(NLPSOBJS) $(MAPFILE.NGB)
78 83 $(LINK.c) $(NLPSOBJS) -o $@ $(LDLIBS)
79 84 $(POST_PROCESS)
80 85
81 86 install: all $(DIRS) $(ROOTSAFPROG)
82 87 $(RM) $(ROOT)/usr/net/nls/listen
83 88 -$(SYMLINK) ../../lib/saf/listen $(ROOT)/usr/net/nls/listen
84 89 $(RM) $(ROOT)/usr/net/nls/nlps_server
85 90 -$(SYMLINK) ../../lib/saf/nlps_server $(ROOT)/usr/net/nls/nlps_server
86 91
87 92 $(DIRS):
88 93 $(INS.dir)
89 94
90 95 clean:
91 96 $(RM) $(OBJS)
92 97
93 98 lint:
94 99 $(LINT.c) $(LSSRC)
95 100 $(LINT.c) $(NLPSSRC)
96 101
97 102 include ../Makefile.targ
↓ open down ↓ |
22 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX