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


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

  26 
  27 SHELL=/usr/bin/ksh93
  28 
  29 LIBRARY=        libdll.a
  30 VERS=           .1
  31 
  32 OBJECTS= \
  33         dlfcn.o \
  34         dllfind.o \
  35         dlllook.o \
  36         dllnext.o \
  37         dllopen.o \
  38         dllplug.o \
  39         dllscan.o
  40 
  41 include ../../Makefile.astmsg
  42 
  43 include ../../Makefile.lib
  44 
  45 # mapfile-vers does not live with the sources in in common/ to make


  69 CPPFLAGS = \
  70         $(DTEXTDOM) $(DTS_ERRNO) \
  71         $(DLLPLATFORMCPPFLAGS) \
  72         -I. \
  73         -I$(ROOT)/usr/include/ast \
  74         -I$(ROOT)/usr/include \
  75         '-DCONF_LIBSUFFIX=".so"' \
  76         '-DCONF_LIBPREFIX="lib"' \
  77         -D_BLD_dll \
  78         -D_PACKAGE_ast \
  79         -D_BLD_DLL
  80 
  81 CFLAGS += \
  82         $(ASTCFLAGS)
  83 CFLAGS64 += \
  84         $(ASTCFLAGS64)
  85 
  86 CERRWARN        += -_gcc=-Wno-parentheses
  87 CERRWARN        += -_gcc=-Wno-uninitialized
  88 



  89 .KEEP_STATE:
  90 
  91 all: $(LIBS)
  92 
  93 #
  94 # libdll is not lint-clean yet; fake up a target.  (You can use
  95 # "make lintcheck" to actually run lint; please send all lint fixes
  96 # upstream (to AT&T) so the next update will pull them into ON.)
  97 #
  98 lint:
  99         @ print "usr/src/lib/libdll is not lint-clean: skipping"
 100 
 101 include ../../Makefile.targ


   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 2009 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 #
  26 # Copyright (c) 2018, Joyent, Inc.
  27 
  28 SHELL=/usr/bin/ksh93
  29 
  30 LIBRARY=        libdll.a
  31 VERS=           .1
  32 
  33 OBJECTS= \
  34         dlfcn.o \
  35         dllfind.o \
  36         dlllook.o \
  37         dllnext.o \
  38         dllopen.o \
  39         dllplug.o \
  40         dllscan.o
  41 
  42 include ../../Makefile.astmsg
  43 
  44 include ../../Makefile.lib
  45 
  46 # mapfile-vers does not live with the sources in in common/ to make


  70 CPPFLAGS = \
  71         $(DTEXTDOM) $(DTS_ERRNO) \
  72         $(DLLPLATFORMCPPFLAGS) \
  73         -I. \
  74         -I$(ROOT)/usr/include/ast \
  75         -I$(ROOT)/usr/include \
  76         '-DCONF_LIBSUFFIX=".so"' \
  77         '-DCONF_LIBPREFIX="lib"' \
  78         -D_BLD_dll \
  79         -D_PACKAGE_ast \
  80         -D_BLD_DLL
  81 
  82 CFLAGS += \
  83         $(ASTCFLAGS)
  84 CFLAGS64 += \
  85         $(ASTCFLAGS64)
  86 
  87 CERRWARN        += -_gcc=-Wno-parentheses
  88 CERRWARN        += -_gcc=-Wno-uninitialized
  89 
  90 # needs work
  91 SMOFF += all_func_returns,strcpy_overflow
  92 
  93 .KEEP_STATE:
  94 
  95 all: $(LIBS)
  96 
  97 #
  98 # libdll is not lint-clean yet; fake up a target.  (You can use
  99 # "make lintcheck" to actually run lint; please send all lint fixes
 100 # upstream (to AT&T) so the next update will pull them into ON.)
 101 #
 102 lint:
 103         @ print "usr/src/lib/libdll is not lint-clean: skipping"
 104 
 105 include ../../Makefile.targ