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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/print/bsd-sysv-commands/Makefile
          +++ new/usr/src/cmd/print/bsd-sysv-commands/Makefile
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15  # If applicable, add the following below this CDDL HEADER, with the
  16   16  # fields enclosed by brackets "[]" replaced with your own identifying
  17   17  # information: Portions Copyright [yyyy] [name of copyright owner]
  18   18  #
  19   19  # CDDL HEADER END
  20   20  #
  21   21  #
  22   22  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  #
  25      -#
       25 +# Copyright (c) 2018, Joyent, Inc.
  26   26  
  27   27  include         ../Makefile.sp
  28   28  
  29   29  UCBPROGS =      lpr lpq lprm lpc
  30   30  BINPROGS =      lp lpstat cancel enable disable $(UCBPROGS)
  31   31  SBINPROGS =     accept reject lpmove
  32   32  
  33   33  LIBPRINTPROGS = in.lpd
  34   34  
  35   35  LIBLPPROGS = $(BINPROGS) $(SBINPROGS)
↓ open down ↓ 24 lines elided ↑ open up ↑
  60   60  CPPFLAGS +=     -I../../../lib/print/libpapi-common/common
  61   61  CPPFLAGS +=     -I$(ROOT)/usr/include
  62   62  CPPFLAGS +=     -I../../lp/include
  63   63  LDLIBS +=       $(LIBLP) -lpapi -lc
  64   64  in.lpd:=        CFLAGS +=       -DSOLARIS_PRIVATE_POST_0_9
  65   65  in.lpd:=        LDLIBS +=       -lnsl -lsocket
  66   66  
  67   67  CERRWARN +=     -_gcc=-Wno-unused-variable
  68   68  CERRWARN +=     -_gcc=-Wno-uninitialized
  69   69  
       70 +# not linted
       71 +SMATCH=off
       72 +
  70   73  all:    $(BINPROGS) $(SBINPROGS)
  71   74  
  72   75  #       each program needs common.o as well
  73   76  $(BINPROGS) $(SBINPROGS) $(LIBPRINTPROGS):      $(BINPROGS:%=%.c) $(SBINPROGS:%=%.c)  $(LIBPRINTPROGS:%=%.c) common.o
  74   77          $(LINK.c) -o $@ $@.c common.o $(LDLIBS)
  75   78          $(POST_PROCESS)
  76   79  
  77   80  #       ucb links (lptest is handled in usr/src/cmd/lp/cmd/Makefile)
  78   81  ROOTUSRUCB =            $(ROOT)/usr/ucb
  79   82  ROOTUCBSYMLINKS =       $(UCBPROGS:%=$(ROOTUSRUCB)/%)
↓ open down ↓ 31 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX