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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/smserverd/Makefile
          +++ new/usr/src/cmd/smserverd/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 2006 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  #
       25 +# Copyright (c) 2018, Joyent, Inc.
  25   26  
  26   27  PROG =  rpc.smserverd
  27   28  OBJS =  smediad.o smediad_err.o myaudit.o smed_svc.o smed_xdr.o
  28   29  SRCS =  $(OBJS:%.o=%.c)
  29   30  lint := SRCS = smediad.c smediad_err.c myaudit.c
  30   31  
  31   32  MANIFEST=       smserver.xml
  32   33  
  33   34  DERIVED_FILES = smed.h smed_xdr.c smed_svc.c
  34   35  
↓ open down ↓ 5 lines elided ↑ open up ↑
  40   41  include ../Makefile.cmd
  41   42  
  42   43  ROOTMANIFESTDIR=        $(ROOTSVCNETWORKRPC)
  43   44  
  44   45  LDLIBS +=  -lnsl -lbsm
  45   46  
  46   47  CPPFLAGS += -D_REENTRANT
  47   48  CFLAGS += $(CCVERBOSE)
  48   49  CERRWARN += -_gcc=-Wno-uninitialized
  49   50  CERRWARN += -_gcc=-Wno-unused-variable
       51 +
       52 +# not linted
       53 +SMATCH=off
       54 +
  50   55  LINTFLAGS += -u
  51   56  
  52   57  .KEEP_STATE:
  53   58  
  54   59  all: $(PROG)
  55   60  
  56   61  install: all $(ROOTLIBSMSERVERDIR) $(ROOTLIBSMSERVERD) $(ROOTMANIFEST)
  57   62  
  58   63  $(PROG):        $(DERIVED_FILES) $(OBJS)
  59   64          $(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS)
↓ open down ↓ 30 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX