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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/gss/gssd/Makefile
          +++ new/usr/src/cmd/gss/gssd/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 +# Copyright (c) 2018, Joyent, Inc.
  25   26  
  26   27  TESTPROG = gssdtest
  27   28  
  28   29  OUTPUT_OPTION = -I.
  29   30  
  30   31  PROG= gssd
  31   32  
  32   33  MANIFEST=       gss.xml
  33   34  
  34   35  GSSD_BASEOBJS = gssd.o gssd_proc.o gssd_generic.o gssd_getuid.o
  35   36  GSSC_BASEOBJS = gssdtest.o gssd_release_name_and_type.o gssd_clnt_stubs.o \
  36   37                  gssd_handle.o
  37   38  
  38   39  GD_OBJS = gssd_svc.o
  39   40  GC_OBJS = gssd_clnt.o
  40      -G_OBJS  = gssd_xdr.o 
       41 +G_OBJS  = gssd_xdr.o
  41   42  GSSDOBJS = $(GSSD_BASEOBJS) $(GD_OBJS) $(G_OBJS)
  42   43  GSSCOBJS = $(GSSC_BASEOBJS) $(GC_OBJS) $(G_OBJS)
  43   44  
  44   45  GSSD_LINTS = $(GSSD_BASEOBJS:.o=.c)
  45   46  GSSC_LINTS = $(GSSC_BASEOBJS:.o=.c)
  46   47  
  47   48  ROBJS   = $(GD_OBJS) $(GC_OBJS) $(G_OBJS)
  48   49  OBJS    = $(GSSD_BASEOBJS) $(GD_OBJS) $(GSSC_BASEOBJS) $(GC_OBJS) $(G_OBJS)
  49   50  SRCS    = $(OBJS:.o=.c)
  50   51  RSRC    = $(ROBJS:.o=.c)
↓ open down ↓ 10 lines elided ↑ open up ↑
  61   62  POFILES = generic.po
  62   63  
  63   64  #
  64   65  # Override $ROOTLIB
  65   66  #
  66   67  ROOTLIB=        $(ROOT)/usr/lib/gss
  67   68  
  68   69  DIRS=   $(ROOTLIB)
  69   70  
  70   71  CPPFLAGS += -I$(SRC)/uts/common/gssapi/include
  71      -COPTFLAG += $(XESS) #-I$(KINCDIR) 
       72 +COPTFLAG += $(XESS) #-I$(KINCDIR)
  72   73  
  73   74  CERRWARN += -_gcc=-Wno-unused-variable
  74   75  CERRWARN += -_gcc=-Wno-implicit-function-declaration
  75   76  CERRWARN += -_gcc=-Wno-parentheses
  76   77  CERRWARN += -_gcc=-Wno-uninitialized
  77   78  
       79 +# not linted
       80 +SMATCH=off
       81 +
  78   82  LDLIBS += -lgss -lnsl
  79   83  
  80   84  gssd := MAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB)
  81   85  gssd := LDFLAGS += $(MAPFILES:%=-M%)
  82   86  
  83   87  $(GPROGS) := CPPFLAGS += -DSYSV -DSunOS=50 
  84   88  
  85   89  .KEEP_STATE:
  86   90  
  87   91  all: $(PROG) $(TESTPROG)
↓ open down ↓ 75 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX