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

  25 #
  26 
  27 LIBRARY =       libwrap.a
  28 MAJOR =         .1
  29 MINOR =         .0
  30 VERS =          $(MAJOR)$(MINOR)
  31 OBJECTS =       hosts_access.o options.o shell_cmd.o rfc931.o eval.o \
  32                 hosts_ctl.o refuse.o percent_x.o clean_exit.o \
  33                 fromhost.o fix_options.o socket.o tli.o workarounds.o \
  34                 update.o misc.o diag.o percent_m.o libvars.o
  35 
  36 include ../../Makefile.lib
  37 
  38 LIBS =          $(DYNLIB) $(LINTLIB)
  39 SONAME =        $(LIBRARY:.a=.so)$(MAJOR)
  40 ROOTLINKS +=    $(ROOTLIBDIR)/$(LIBLINKS)$(MAJOR)
  41 ROOTLINKS64 +=  $(ROOTLIBDIR64)/$(LIBLINKS)$(MAJOR)
  42 $(LINTLIB) :=   SRCS = $(SRCDIR)/$(LINTSRC)
  43 
  44 MAPFILES =      ../mapfile-vers
  45 
  46 LDLIBS +=       -lsocket -lnsl -lc
  47 
  48 CPPFLAGS +=     $(NETGROUP) $(TLI) $(ALWAYS_HOSTNAME) $(AUTH) \
  49                 $(STYLE) $(TABLES) $(DOT) $(BUGS) \
  50                 -DRFC931_TIMEOUT=$(RFC931_TIMEOUT) \
  51                 -I$(SRCDIR) 
  52 CFLAGS +=       $(CCVERBOSE)
  53 
  54 CERRWARN +=     -erroff=E_FUNC_EXPECTS_TO_RETURN_VALUE
  55 CERRWARN +=     -erroff=E_IMPLICIT_DECL_FUNC_RETURN_INT
  56 CERRWARN +=     -erroff=E_OLD_STYLE_DECL_HIDES_PROTO
  57 
  58 CERRWARN +=     -_gcc=-Wno-return-type
  59 CERRWARN +=     -_gcc=-Wno-parentheses
  60 CERRWARN +=     -_gcc=-Wno-unused-variable
  61 CERRWARN +=     -_gcc=-Wno-uninitialized
  62 



  63 .KEEP_STATE:
  64 
  65 all: $(LIBS)
  66 
  67 lint: lintcheck
  68 
  69 $(ROOTLIBDIR)/$(LIBLINKS)$(MAJOR): $(ROOTLIBDIR)/$(LIBLINKS)$(VERS)
  70         $(INS.liblink)
  71 
  72 $(ROOTLIBDIR64)/$(LIBLINKS)$(MAJOR): $(ROOTLIBDIR64)/$(LIBLINKS)$(VERS)
  73         $(INS.liblink64)
  74 
  75 include ../../Makefile.targ
  76 
  77 
  78 # The rest of this file contains definitions more-or-less directly from the
  79 # original Makefile of the tcp_wrappers distribution.
  80 
  81 ##############################
  82 # System parameters appropriate for Solaris 9 and later




   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 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  22 # Use is subject to license terms.
  23 #
  24 # Copyright 2011 Nexenta Systems, Inc. All rights reserved.
  25 # Copyright (c) 2018, Joyent, Inc.
  26 #
  27 
  28 LIBRARY =       libwrap.a
  29 MAJOR =         .1
  30 MINOR =         .0
  31 VERS =          $(MAJOR)$(MINOR)
  32 OBJECTS =       hosts_access.o options.o shell_cmd.o rfc931.o eval.o \
  33                 hosts_ctl.o refuse.o percent_x.o clean_exit.o \
  34                 fromhost.o fix_options.o socket.o tli.o workarounds.o \
  35                 update.o misc.o diag.o percent_m.o libvars.o
  36 
  37 include ../../Makefile.lib
  38 
  39 LIBS =          $(DYNLIB) $(LINTLIB)
  40 SONAME =        $(LIBRARY:.a=.so)$(MAJOR)
  41 ROOTLINKS +=    $(ROOTLIBDIR)/$(LIBLINKS)$(MAJOR)
  42 ROOTLINKS64 +=  $(ROOTLIBDIR64)/$(LIBLINKS)$(MAJOR)
  43 $(LINTLIB) :=   SRCS = $(SRCDIR)/$(LINTSRC)
  44 
  45 MAPFILES =      ../mapfile-vers
  46 
  47 LDLIBS +=       -lsocket -lnsl -lc
  48 
  49 CPPFLAGS +=     $(NETGROUP) $(TLI) $(ALWAYS_HOSTNAME) $(AUTH) \
  50                 $(STYLE) $(TABLES) $(DOT) $(BUGS) \
  51                 -DRFC931_TIMEOUT=$(RFC931_TIMEOUT) \
  52                 -I$(SRCDIR)
  53 CFLAGS +=       $(CCVERBOSE)
  54 
  55 CERRWARN +=     -erroff=E_FUNC_EXPECTS_TO_RETURN_VALUE
  56 CERRWARN +=     -erroff=E_IMPLICIT_DECL_FUNC_RETURN_INT
  57 CERRWARN +=     -erroff=E_OLD_STYLE_DECL_HIDES_PROTO
  58 
  59 CERRWARN +=     -_gcc=-Wno-return-type
  60 CERRWARN +=     -_gcc=-Wno-parentheses
  61 CERRWARN +=     -_gcc=-Wno-unused-variable
  62 CERRWARN +=     -_gcc=-Wno-uninitialized
  63 
  64 # not linted
  65 SMATCH=off
  66 
  67 .KEEP_STATE:
  68 
  69 all: $(LIBS)
  70 
  71 lint: lintcheck
  72 
  73 $(ROOTLIBDIR)/$(LIBLINKS)$(MAJOR): $(ROOTLIBDIR)/$(LIBLINKS)$(VERS)
  74         $(INS.liblink)
  75 
  76 $(ROOTLIBDIR64)/$(LIBLINKS)$(MAJOR): $(ROOTLIBDIR64)/$(LIBLINKS)$(VERS)
  77         $(INS.liblink64)
  78 
  79 include ../../Makefile.targ
  80 
  81 
  82 # The rest of this file contains definitions more-or-less directly from the
  83 # original Makefile of the tcp_wrappers distribution.
  84 
  85 ##############################
  86 # System parameters appropriate for Solaris 9 and later