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


   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 #
  22 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #
  25 #
  26 # cmd/rpcsvc/Makefile
  27 
  28 PROTOCOL_DIR= $(ROOT)/usr/include/rpcsvc
  29 
  30 BINPROG= rusers rup
  31 SBINPROG= rwall spray
  32 RPROG= rpc.rusersd
  33 SPROG= rpc.sprayd
  34 WPROG= rpc.rwalld
  35 TPROG= rpc.rstatd
  36 
  37 PROG= $(BINPROG) $(SBINPROG) $(RPROG) $(SPROG) $(WPROG) $(TPROG)
  38 
  39 MANIFEST= \
  40         rusers.xml \
  41         spray.xml \
  42         wall.xml \
  43         rstat.xml
  44 
  45 SVCMETHOD=
  46 
  47 SCLNTOBJS= spray.o spray_clnt.o
  48 SSVCOBJS= spray_subr.o spray_svc.o
  49 WCLNTOBJS = rwall.o rwall_clnt.o
  50 WSVCOBJS= rwall_subr.o rwall_svc.o
  51 TSVCOBJS= rstat_main.o rstat_proc.o rstat_svc.o rstat_v2_svc.o rstat_v2_xdr.o
  52 
  53 DERIVED_FILES = rstat.x rstat.h rstat_svc.c rstat_v2.h rstat_v2_svc.c \
  54                 rstat_v2_xdr.c spray.x spray.h spray_clnt.c spray_svc.c \
  55                 rwall.x rwall.h rwall_svc.c rwall_clnt.c
  56 
  57 include ../Makefile.cmd
  58 
  59 ROOTMANIFESTDIR=        $(ROOTSVCNETWORKRPC)
  60 
  61 CPPFLAGS= -I. $(CPPFLAGS.master)
  62 CERRWARN += -_gcc=-Wno-implicit-function-declaration
  63 CERRWARN += -_gcc=-Wno-unused-variable
  64 CERRWARN += -_gcc=-Wno-parentheses
  65 CERRWARN += -_gcc=-Wno-extra
  66 CERRWARN += -_gcc=-Wno-unused-function




  67 LDLIBS += -lnsl
  68 rusers :=       CFLAGS += $(CCVERBOSE)
  69 $(BINPROG) :=   LDLIBS += -lrpcsvc
  70 $(RPROG) :=     LDLIBS += -lrpcsvc
  71 $(SPROG) :=     LDLIBS += -lrpcsvc
  72 $(TPROG) :=     LDLIBS += -lrpcsvc
  73 spray :=        LDLIBS += -lrpcsvc
  74 
  75 
  76 SUBDIRS= rpc.bootparamd
  77 OBJS= $(SCLNTOBJS) $(SSVCOBJS) $(WCLNTOBJS) $(WSVCOBJS) $(TSVCOBJS)
  78 SRCS= $(OBJS:%.o=%.c) rusers.c rpc.rusersd.c rup.c
  79 
  80 ETCFILES= rpc
  81 
  82 TXTS= $(ETCFILES:%=net_files/%)
  83 
  84 NETSVC= $(ROOTLIB)/netsvc
  85 NIS = $(NETSVC)/nis
  86 RWALL= $(NETSVC)/rwall




   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 #
  22 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #
  25 # Copyright (c) 2018, Joyent, Inc.

  26 
  27 PROTOCOL_DIR= $(ROOT)/usr/include/rpcsvc
  28 
  29 BINPROG= rusers rup
  30 SBINPROG= rwall spray
  31 RPROG= rpc.rusersd
  32 SPROG= rpc.sprayd
  33 WPROG= rpc.rwalld
  34 TPROG= rpc.rstatd
  35 
  36 PROG= $(BINPROG) $(SBINPROG) $(RPROG) $(SPROG) $(WPROG) $(TPROG)
  37 
  38 MANIFEST= \
  39         rusers.xml \
  40         spray.xml \
  41         wall.xml \
  42         rstat.xml
  43 
  44 SVCMETHOD=
  45 
  46 SCLNTOBJS= spray.o spray_clnt.o
  47 SSVCOBJS= spray_subr.o spray_svc.o
  48 WCLNTOBJS = rwall.o rwall_clnt.o
  49 WSVCOBJS= rwall_subr.o rwall_svc.o
  50 TSVCOBJS= rstat_main.o rstat_proc.o rstat_svc.o rstat_v2_svc.o rstat_v2_xdr.o
  51 
  52 DERIVED_FILES = rstat.x rstat.h rstat_svc.c rstat_v2.h rstat_v2_svc.c \
  53                 rstat_v2_xdr.c spray.x spray.h spray_clnt.c spray_svc.c \
  54                 rwall.x rwall.h rwall_svc.c rwall_clnt.c
  55 
  56 include ../Makefile.cmd
  57 
  58 ROOTMANIFESTDIR=        $(ROOTSVCNETWORKRPC)
  59 
  60 CPPFLAGS= -I. $(CPPFLAGS.master)
  61 CERRWARN += -_gcc=-Wno-implicit-function-declaration
  62 CERRWARN += -_gcc=-Wno-unused-variable
  63 CERRWARN += -_gcc=-Wno-parentheses
  64 CERRWARN += -_gcc=-Wno-extra
  65 CERRWARN += -_gcc=-Wno-unused-function
  66 
  67 # not linted
  68 SMATCH=off
  69 
  70 LDLIBS += -lnsl
  71 rusers :=       CFLAGS += $(CCVERBOSE)
  72 $(BINPROG) :=   LDLIBS += -lrpcsvc
  73 $(RPROG) :=     LDLIBS += -lrpcsvc
  74 $(SPROG) :=     LDLIBS += -lrpcsvc
  75 $(TPROG) :=     LDLIBS += -lrpcsvc
  76 spray :=        LDLIBS += -lrpcsvc
  77 
  78 
  79 SUBDIRS= rpc.bootparamd
  80 OBJS= $(SCLNTOBJS) $(SSVCOBJS) $(WCLNTOBJS) $(WSVCOBJS) $(TSVCOBJS)
  81 SRCS= $(OBJS:%.o=%.c) rusers.c rpc.rusersd.c rup.c
  82 
  83 ETCFILES= rpc
  84 
  85 TXTS= $(ETCFILES:%=net_files/%)
  86 
  87 NETSVC= $(ROOTLIB)/netsvc
  88 NIS = $(NETSVC)/nis
  89 RWALL= $(NETSVC)/rwall