Print this page
10079 smatch Makefile changes for usr/src/lib


   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 
  27 SHELL=/usr/bin/ksh93
  28 
  29 LIBRARY =       libcmd.a
  30 VERS =          .1
  31 OBJECTS =       \
  32         basename.o \
  33         cat.o \
  34         chgrp.o \
  35         cksum.o \
  36         chmod.o \
  37         chown.o \
  38         cmdinit.o \
  39         cmp.o \
  40         comm.o \
  41         cp.o \
  42         cut.o \
  43         date.o \
  44         dirname.o \


 121         -D_BLD_DLL \
 122         '-DERROR_CATALOG="libcmd"' \
 123         '-DUSAGE_LICENSE=\
 124                 "[-author?Glenn Fowler <gsf@research.att.com>]"\
 125                 "[-author?David Korn <dgk@research.att.com>]"\
 126                 "[-copyright?Copyright (c) 1992-2010 AT&T Intellectual Property]"\
 127                 "[-license?http://www.opensource.org/licenses/cpl1.0.txt]"\
 128                 "[--catalog?libcmd]"'
 129 
 130 CFLAGS += \
 131         $(ASTCFLAGS)
 132 CFLAGS64 += \
 133         $(ASTCFLAGS64)
 134 
 135 CERRWARN        += -_gcc=-Wno-unused-value
 136 CERRWARN        += -_gcc=-Wno-parentheses
 137 CERRWARN        += -_gcc=-Wno-uninitialized
 138 CERRWARN        += -_gcc=-Wno-unused-variable
 139 CERRWARN        += -_gcc=-Wno-implicit-function-declaration
 140 



 141 pics/cut.o      := CERRWARN += -erroff=E_END_OF_LOOP_CODE_NOT_REACHED
 142 pics/sync.o     := CERRWARN += -erroff=E_END_OF_LOOP_CODE_NOT_REACHED
 143 pics/vmstate.o  := CERRWARN += -erroff=E_NO_IMPLICIT_DECL_ALLOWED
 144 
 145 .KEEP_STATE:
 146 
 147 all: $(LIBS) 
 148 
 149 #
 150 # libcmd is not lint-clean yet; fake up a target.  (You can use
 151 # "make lintcheck" to actually run lint; please send all lint fixes
 152 # upstream (to AT&T) so the next update will pull them into ON.)
 153 #
 154 lint:
 155         @ print "usr/src/lib/libcmd is not lint-clean: skipping"
 156 
 157 include ../../Makefile.targ


   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 # Copyright (c) 2018, Joyent, Inc.
  26 
  27 
  28 SHELL=/usr/bin/ksh93
  29 
  30 LIBRARY =       libcmd.a
  31 VERS =          .1
  32 OBJECTS =       \
  33         basename.o \
  34         cat.o \
  35         chgrp.o \
  36         cksum.o \
  37         chmod.o \
  38         chown.o \
  39         cmdinit.o \
  40         cmp.o \
  41         comm.o \
  42         cp.o \
  43         cut.o \
  44         date.o \
  45         dirname.o \


 122         -D_BLD_DLL \
 123         '-DERROR_CATALOG="libcmd"' \
 124         '-DUSAGE_LICENSE=\
 125                 "[-author?Glenn Fowler <gsf@research.att.com>]"\
 126                 "[-author?David Korn <dgk@research.att.com>]"\
 127                 "[-copyright?Copyright (c) 1992-2010 AT&T Intellectual Property]"\
 128                 "[-license?http://www.opensource.org/licenses/cpl1.0.txt]"\
 129                 "[--catalog?libcmd]"'
 130 
 131 CFLAGS += \
 132         $(ASTCFLAGS)
 133 CFLAGS64 += \
 134         $(ASTCFLAGS64)
 135 
 136 CERRWARN        += -_gcc=-Wno-unused-value
 137 CERRWARN        += -_gcc=-Wno-parentheses
 138 CERRWARN        += -_gcc=-Wno-uninitialized
 139 CERRWARN        += -_gcc=-Wno-unused-variable
 140 CERRWARN        += -_gcc=-Wno-implicit-function-declaration
 141 
 142 # not linted
 143 SMATCH=off
 144 
 145 pics/cut.o      := CERRWARN += -erroff=E_END_OF_LOOP_CODE_NOT_REACHED
 146 pics/sync.o     := CERRWARN += -erroff=E_END_OF_LOOP_CODE_NOT_REACHED
 147 pics/vmstate.o  := CERRWARN += -erroff=E_NO_IMPLICIT_DECL_ALLOWED
 148 
 149 .KEEP_STATE:
 150 
 151 all: $(LIBS) 
 152 
 153 #
 154 # libcmd is not lint-clean yet; fake up a target.  (You can use
 155 # "make lintcheck" to actually run lint; please send all lint fixes
 156 # upstream (to AT&T) so the next update will pull them into ON.)
 157 #
 158 lint:
 159         @ print "usr/src/lib/libcmd is not lint-clean: skipping"
 160 
 161 include ../../Makefile.targ