Print this page
10063 basic support for smatch
10153 checkpaths shouldn't check packaging exceptions


   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 
  22 #
  23 # Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.

  24 #
  25 
  26 SHELL=/usr/bin/ksh93
  27 
  28 LIBRARY=        libshell.a
  29 VERS=           .1
  30 
  31 OBJECTS= \
  32         bltins/alarm.o \
  33         bltins/cd_pwd.o \
  34         bltins/cflow.o \
  35         bltins/enum.o \
  36         bltins/getopts.o \
  37         bltins/hist.o \
  38         bltins/misc.o \
  39         bltins/poll_solaris.o \
  40         bltins/print.o \
  41         bltins/read.o \
  42         bltins/regress.o \
  43         bltins/shiocmd_solaris.o \


 144 # may then cause silent breakage in the AST sources because the last -D
 145 # option specified overrides previous -D options so we prefer the current
 146 # way to explicitly list each single flag.
 147 CPPFLAGS = \
 148         $(DTEXTDOM) $(DTS_ERRNO) \
 149         $(LIBSHELLCPPFLAGS)
 150 
 151 CFLAGS += \
 152         $(ASTCFLAGS)
 153 CFLAGS64 += \
 154         $(ASTCFLAGS64)
 155 
 156 CERRWARN        += -_gcc=-Wno-parentheses
 157 CERRWARN        += -_gcc=-Wno-unused-value
 158 CERRWARN        += -_gcc=-Wno-unused-variable
 159 CERRWARN        += -_gcc=-Wno-unused-function
 160 CERRWARN        += -_gcc=-Wno-uninitialized
 161 CERRWARN        += -_gcc=-Wno-clobbered
 162 CERRWARN        += -_gcc=-Wno-char-subscripts
 163 



 164 pics/sh/macro.o         := CERRWARN += -erroff=E_NO_IMPLICIT_DECL_ALLOWED
 165 pics/sh/nvdisc.o        := CERRWARN += -erroff=E_END_OF_LOOP_CODE_NOT_REACHED
 166 
 167 .KEEP_STATE:
 168 
 169 all: mkpicdirs .WAIT $(LIBS)
 170 
 171 #
 172 # libshell is not lint-clean yet; fake up a target.  (You can use
 173 # "make lintcheck" to actually run lint; please send all lint fixes
 174 # upstream (to AT&T) so the next update will pull them into ON.)
 175 #
 176 lint:
 177         @ print "usr/src/lib/libshell is not lint-clean: skipping"
 178 
 179 include ../../Makefile.targ


   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 
  22 #
  23 # Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
  24 # Copyright (c) 2018, Joyent, Inc.
  25 #
  26 
  27 SHELL=/usr/bin/ksh93
  28 
  29 LIBRARY=        libshell.a
  30 VERS=           .1
  31 
  32 OBJECTS= \
  33         bltins/alarm.o \
  34         bltins/cd_pwd.o \
  35         bltins/cflow.o \
  36         bltins/enum.o \
  37         bltins/getopts.o \
  38         bltins/hist.o \
  39         bltins/misc.o \
  40         bltins/poll_solaris.o \
  41         bltins/print.o \
  42         bltins/read.o \
  43         bltins/regress.o \
  44         bltins/shiocmd_solaris.o \


 145 # may then cause silent breakage in the AST sources because the last -D
 146 # option specified overrides previous -D options so we prefer the current
 147 # way to explicitly list each single flag.
 148 CPPFLAGS = \
 149         $(DTEXTDOM) $(DTS_ERRNO) \
 150         $(LIBSHELLCPPFLAGS)
 151 
 152 CFLAGS += \
 153         $(ASTCFLAGS)
 154 CFLAGS64 += \
 155         $(ASTCFLAGS64)
 156 
 157 CERRWARN        += -_gcc=-Wno-parentheses
 158 CERRWARN        += -_gcc=-Wno-unused-value
 159 CERRWARN        += -_gcc=-Wno-unused-variable
 160 CERRWARN        += -_gcc=-Wno-unused-function
 161 CERRWARN        += -_gcc=-Wno-uninitialized
 162 CERRWARN        += -_gcc=-Wno-clobbered
 163 CERRWARN        += -_gcc=-Wno-char-subscripts
 164 
 165 # smatch gets out of memory on common/sh/macro.c
 166 SMATCH          = off
 167 
 168 pics/sh/macro.o         := CERRWARN += -erroff=E_NO_IMPLICIT_DECL_ALLOWED
 169 pics/sh/nvdisc.o        := CERRWARN += -erroff=E_END_OF_LOOP_CODE_NOT_REACHED
 170 
 171 .KEEP_STATE:
 172 
 173 all: mkpicdirs .WAIT $(LIBS)
 174 
 175 #
 176 # libshell is not lint-clean yet; fake up a target.  (You can use
 177 # "make lintcheck" to actually run lint; please send all lint fixes
 178 # upstream (to AT&T) so the next update will pull them into ON.)
 179 #
 180 lint:
 181         @ print "usr/src/lib/libshell is not lint-clean: skipping"
 182 
 183 include ../../Makefile.targ