Print this page
10080 smatch Makefile changes for usr/src/cmd


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

  26 
  27 LIBRARY =       liblpflt.a
  28 
  29 OBJECTS =       conv.o          \
  30                 delfilter.o     \
  31                 dumpfilters.o   \
  32                 freefilter.o    \
  33                 getfilter.o     \
  34                 filtertable.o   \
  35                 insfilter.o     \
  36                 loadfilters.o   \
  37                 putfilter.o     \
  38                 regex.o         \
  39                 search.o        \
  40                 trash.o
  41 
  42 include         ../../Makefile.lp
  43 
  44 include         ../../../../lib/Makefile.lib
  45 
  46 # Specifically request the construction of a static library.
  47 # This library is not installed in the proto area.
  48 LIBS = $(LIBRARY)
  49 
  50 CPPFLAGS =      -I../../include $(CPPFLAGS.master)
  51 
  52 CERRWARN +=     -_gcc=-Wno-uninitialized
  53 CERRWARN +=     -_gcc=-Wno-parentheses
  54 



  55 POFILE =        lp_lib_filters.po
  56 
  57 .KEEP_STATE:
  58 
  59 all install :   $(LIBS)
  60 
  61 include         ../../../../lib/Makefile.targ
  62 
  63 CLEANFILES      += llib-llpflt.ln
  64 LINTFLAGS = -nvx
  65 SRCS= $(OBJECTS:%.o=%.c)
  66 
  67 lint:   lintlib
  68         $(LINT.c) $(LINTFLAGS) $(SRCS)
  69 
  70 lintlib:
  71         $(LINT.c) $(LINTFLAGS) -o lpflt llib-llpflt
  72 
  73 include         ../Makefile.msg


   6 # (the "License").  You may not use this file except in compliance
   7 # with the License.
   8 #
   9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10 # or http://www.opensolaris.org/os/licensing.
  11 # See the License for the specific language governing permissions
  12 # and limitations under the License.
  13 #
  14 # When distributing Covered Code, include this CDDL HEADER in each
  15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16 # If applicable, add the following below this CDDL HEADER, with the
  17 # fields enclosed by brackets "[]" replaced with your own identifying
  18 # information: Portions Copyright [yyyy] [name of copyright owner]
  19 #
  20 # CDDL HEADER END
  21 #
  22 #
  23 # Copyright 1990-2003 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 #
  26 # Copyright (c) 2018, Joyent, Inc.
  27 
  28 LIBRARY =       liblpflt.a
  29 
  30 OBJECTS =       conv.o          \
  31                 delfilter.o     \
  32                 dumpfilters.o   \
  33                 freefilter.o    \
  34                 getfilter.o     \
  35                 filtertable.o   \
  36                 insfilter.o     \
  37                 loadfilters.o   \
  38                 putfilter.o     \
  39                 regex.o         \
  40                 search.o        \
  41                 trash.o
  42 
  43 include         ../../Makefile.lp
  44 
  45 include         ../../../../lib/Makefile.lib
  46 
  47 # Specifically request the construction of a static library.
  48 # This library is not installed in the proto area.
  49 LIBS = $(LIBRARY)
  50 
  51 CPPFLAGS =      -I../../include $(CPPFLAGS.master)
  52 
  53 CERRWARN +=     -_gcc=-Wno-uninitialized
  54 CERRWARN +=     -_gcc=-Wno-parentheses
  55 
  56 # not linted
  57 SMATCH=off
  58 
  59 POFILE =        lp_lib_filters.po
  60 
  61 .KEEP_STATE:
  62 
  63 all install :   $(LIBS)
  64 
  65 include         ../../../../lib/Makefile.targ
  66 
  67 CLEANFILES      += llib-llpflt.ln
  68 LINTFLAGS = -nvx
  69 SRCS= $(OBJECTS:%.o=%.c)
  70 
  71 lint:   lintlib
  72         $(LINT.c) $(LINTFLAGS) $(SRCS)
  73 
  74 lintlib:
  75         $(LINT.c) $(LINTFLAGS) -o lpflt llib-llpflt
  76 
  77 include         ../Makefile.msg