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


   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 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #

  25 
  26 SHELL=/usr/bin/ksh93
  27 
  28 LIBRARY=        libpp.a
  29 VERS=           .1
  30 
  31 OBJECTS= \
  32         ppargs.o \
  33         ppbuiltin.o \
  34         ppcall.o \
  35         ppcomment.o \
  36         ppcontext.o \
  37         ppcontrol.o \
  38         ppcpp.o \
  39         ppdata.o \
  40         pperror.o \
  41         ppexpr.o \
  42         ppfsm.o \
  43         ppincref.o \
  44         ppinput.o \


  87         -I$(ROOT)/usr/include \
  88         -D_PACKAGE_ast \
  89         '-DUSAGE_LICENSE=\
  90                 "[-author?Glenn Fowler <gsf@research.att.com>]"\
  91                 "[-copyright?Copyright (c) 1986-2009 AT&T Intellectual Property]"\
  92                 "[-license?http://www.opensource.org/licenses/cpl1.0.txt]"\
  93                 "[--catalog?libpp]"'
  94 
  95 
  96 CFLAGS += \
  97         $(ASTCFLAGS)
  98 CFLAGS64 += \
  99         $(ASTCFLAGS64)
 100 
 101 CERRWARN        += -_gcc=-Wno-parentheses
 102 CERRWARN        += -_gcc=-Wno-uninitialized
 103 CERRWARN        += -_gcc=-Wno-char-subscripts
 104 CERRWARN        += -_gcc=-Wno-empty-body
 105 CERRWARN        += -_gcc=-Wno-unused-value
 106 



 107 pics/ppcall.o           := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
 108 pics/ppcontrol.o        := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
 109 pics/ppcpp.o            := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
 110 pics/ppexpr.o           := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
 111 pics/pplex.o            := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
 112 pics/ppop.o             := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
 113 pics/ppsearch.o         := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
 114 pics/ppsearch.o         := CERRWARN += -_gcc=-Wno-sequence-point
 115 pics/pplex.o            := CERRWARN += -_gcc=-Wno-implicit-fallthrough
 116 pics/ppcpp.o            := CERRWARN += -_gcc=-Wno-implicit-fallthrough
 117 pics/ppproto.o          := CERRWARN += -_gcc=-Wno-implicit-fallthrough
 118 
 119 .KEEP_STATE:
 120 
 121 all: $(LIBS)
 122 
 123 #
 124 # libpp is not lint-clean yet; fake up a target.  (You can use
 125 # "make lintcheck" to actually run lint; please send all lint fixes
 126 # upstream (to AT&T) so the next update will pull them into ON.)


   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 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #
  25 # Copyright (c) 2018, Joyent, Inc.
  26 
  27 SHELL=/usr/bin/ksh93
  28 
  29 LIBRARY=        libpp.a
  30 VERS=           .1
  31 
  32 OBJECTS= \
  33         ppargs.o \
  34         ppbuiltin.o \
  35         ppcall.o \
  36         ppcomment.o \
  37         ppcontext.o \
  38         ppcontrol.o \
  39         ppcpp.o \
  40         ppdata.o \
  41         pperror.o \
  42         ppexpr.o \
  43         ppfsm.o \
  44         ppincref.o \
  45         ppinput.o \


  88         -I$(ROOT)/usr/include \
  89         -D_PACKAGE_ast \
  90         '-DUSAGE_LICENSE=\
  91                 "[-author?Glenn Fowler <gsf@research.att.com>]"\
  92                 "[-copyright?Copyright (c) 1986-2009 AT&T Intellectual Property]"\
  93                 "[-license?http://www.opensource.org/licenses/cpl1.0.txt]"\
  94                 "[--catalog?libpp]"'
  95 
  96 
  97 CFLAGS += \
  98         $(ASTCFLAGS)
  99 CFLAGS64 += \
 100         $(ASTCFLAGS64)
 101 
 102 CERRWARN        += -_gcc=-Wno-parentheses
 103 CERRWARN        += -_gcc=-Wno-uninitialized
 104 CERRWARN        += -_gcc=-Wno-char-subscripts
 105 CERRWARN        += -_gcc=-Wno-empty-body
 106 CERRWARN        += -_gcc=-Wno-unused-value
 107 
 108 # "pplex() parse error: turning off implications after 60 seconds"
 109 SMATCH          = off
 110 
 111 pics/ppcall.o           := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
 112 pics/ppcontrol.o        := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
 113 pics/ppcpp.o            := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
 114 pics/ppexpr.o           := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
 115 pics/pplex.o            := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
 116 pics/ppop.o             := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
 117 pics/ppsearch.o         := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
 118 pics/ppsearch.o         := CERRWARN += -_gcc=-Wno-sequence-point
 119 pics/pplex.o            := CERRWARN += -_gcc=-Wno-implicit-fallthrough
 120 pics/ppcpp.o            := CERRWARN += -_gcc=-Wno-implicit-fallthrough
 121 pics/ppproto.o          := CERRWARN += -_gcc=-Wno-implicit-fallthrough
 122 
 123 .KEEP_STATE:
 124 
 125 all: $(LIBS)
 126 
 127 #
 128 # libpp is not lint-clean yet; fake up a target.  (You can use
 129 # "make lintcheck" to actually run lint; please send all lint fixes
 130 # upstream (to AT&T) so the next update will pull them into ON.)