Print this page
10063 basic support for smatch
10153 checkpaths shouldn't check packaging exceptions
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libshell/Makefile.com
+++ new/usr/src/lib/libshell/Makefile.com
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 #
23 23 # Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
24 +# Copyright (c) 2018, Joyent, Inc.
24 25 #
25 26
26 27 SHELL=/usr/bin/ksh93
27 28
28 29 LIBRARY= libshell.a
29 30 VERS= .1
30 31
31 32 OBJECTS= \
32 33 bltins/alarm.o \
33 34 bltins/cd_pwd.o \
34 35 bltins/cflow.o \
35 36 bltins/enum.o \
36 37 bltins/getopts.o \
37 38 bltins/hist.o \
38 39 bltins/misc.o \
39 40 bltins/poll_solaris.o \
40 41 bltins/print.o \
41 42 bltins/read.o \
42 43 bltins/regress.o \
43 44 bltins/shiocmd_solaris.o \
44 45 bltins/sleep.o \
45 46 bltins/test.o \
46 47 bltins/trap.o \
47 48 bltins/typeset.o \
48 49 bltins/ulimit.o \
49 50 bltins/umask.o \
50 51 bltins/whence.o \
51 52 data/aliases.o \
52 53 data/builtins.o \
53 54 data/keywords.o \
54 55 data/lexstates.o \
55 56 data/limits.o \
56 57 data/msg.o \
57 58 data/options.o \
58 59 data/signals.o \
59 60 data/strdata.o \
60 61 data/testops.o \
61 62 data/variables.o \
62 63 edit/completion.o \
63 64 edit/edit.o \
64 65 edit/emacs.o \
65 66 edit/hexpand.o \
66 67 edit/history.o \
67 68 edit/vi.o \
68 69 sh/args.o \
69 70 sh/arith.o \
70 71 sh/array.o \
71 72 sh/defs.o \
72 73 sh/deparse.o \
73 74 sh/expand.o \
74 75 sh/fault.o \
75 76 sh/fcin.o \
76 77 sh/init.o \
77 78 sh/io.o \
78 79 sh/jobs.o \
79 80 sh/lex.o \
80 81 sh/macro.o \
81 82 sh/main.o \
82 83 sh/name.o \
83 84 sh/nvdisc.o \
84 85 sh/nvtree.o \
85 86 sh/nvtype.o \
86 87 sh/parse.o \
87 88 sh/path.o \
88 89 sh/streval.o \
89 90 sh/string.o \
90 91 sh/subshell.o \
91 92 sh/tdump.o \
92 93 sh/timers.o \
93 94 sh/trestore.o \
94 95 sh/waitevent.o \
95 96 sh/xec.o
96 97
97 98 # We are storing the object files into subdirs avoid the
98 99 # confusion with having too many object files in the toplevel pics/
99 100 # directory (this matches the way how the original AST build system
100 101 # deals with this "logistic" issue) - the rules below ensure that
101 102 # the destination directory is available.
102 103 OBJDIRS = \
103 104 bltins \
104 105 data \
105 106 edit \
106 107 sh
107 108 PICSDIRS= $(OBJDIRS:%=pics/%)
108 109 mkpicdirs:
109 110 @mkdir -p $(PICSDIRS)
110 111
111 112 # Specify the MACH we currently use to build and test ksh
112 113 LIBSHELLMACH= $(TARGETMACH)
113 114 LIBSHELLBASE=..
114 115
115 116 include ../../Makefile.astmsg
116 117
117 118 include ../../Makefile.lib
118 119
119 120 # mapfile-vers does not live with the sources in in common/ to make
120 121 # automated code updates easier.
121 122 MAPFILES= ../mapfile-vers
122 123
123 124 # Set common AST build flags (e.g. C99/XPG6, needed to support the math stuff)
124 125 include ../../../Makefile.ast
125 126
126 127 LIBS = $(DYNLIB) $(LINTLIB)
127 128
128 129 LDLIBS += \
129 130 -lcmd \
130 131 -ldll \
131 132 -last \
132 133 -lsocket \
133 134 -lm \
134 135 -lc
135 136
136 137 $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
137 138
138 139 SRCDIR = ../common
139 140
140 141 # 1. Make sure that the -D/-U defines in CPPFLAGS below are in sync
141 142 # with usr/src/cmd/ksh/Makefile.com
142 143 # 2. We use "=" here since using $(CPPFLAGS.master) is very tricky in our
143 144 # case - it MUST come as the last element but future changes in -D options
144 145 # may then cause silent breakage in the AST sources because the last -D
145 146 # option specified overrides previous -D options so we prefer the current
146 147 # way to explicitly list each single flag.
147 148 CPPFLAGS = \
148 149 $(DTEXTDOM) $(DTS_ERRNO) \
149 150 $(LIBSHELLCPPFLAGS)
150 151
151 152 CFLAGS += \
152 153 $(ASTCFLAGS)
153 154 CFLAGS64 += \
↓ open down ↓ |
120 lines elided |
↑ open up ↑ |
154 155 $(ASTCFLAGS64)
155 156
156 157 CERRWARN += -_gcc=-Wno-parentheses
157 158 CERRWARN += -_gcc=-Wno-unused-value
158 159 CERRWARN += -_gcc=-Wno-unused-variable
159 160 CERRWARN += -_gcc=-Wno-unused-function
160 161 CERRWARN += -_gcc=-Wno-uninitialized
161 162 CERRWARN += -_gcc=-Wno-clobbered
162 163 CERRWARN += -_gcc=-Wno-char-subscripts
163 164
165 +# smatch gets out of memory on common/sh/macro.c
166 +SMATCH = off
167 +
164 168 pics/sh/macro.o := CERRWARN += -erroff=E_NO_IMPLICIT_DECL_ALLOWED
165 169 pics/sh/nvdisc.o := CERRWARN += -erroff=E_END_OF_LOOP_CODE_NOT_REACHED
166 170
167 171 .KEEP_STATE:
168 172
169 173 all: mkpicdirs .WAIT $(LIBS)
170 174
171 175 #
172 176 # libshell is not lint-clean yet; fake up a target. (You can use
173 177 # "make lintcheck" to actually run lint; please send all lint fixes
174 178 # upstream (to AT&T) so the next update will pull them into ON.)
175 179 #
176 180 lint:
177 181 @ print "usr/src/lib/libshell is not lint-clean: skipping"
178 182
179 183 include ../../Makefile.targ
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX