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 2015 Gary Mills
  23 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.

  25 #
  26 
  27 BINPROG = ypmatch ypwhich ypcat
  28 SBINPROG = makedbm ypalias ypinit yppoll ypset
  29 NETYPPROG = ypbind ypxfr yppush udpublickey mkalias \
  30                 multi multi.awk stdethers stdhosts \
  31                 ypxfr_1perday ypxfr_1perhour ypxfr_2perday \
  32                 ypstart ypstop
  33 NIS2LDAPPROG = ypxfrd ypserv ypxfr
  34 SVCMETHOD = yp
  35 PROG=   $(BINPROG) $(SBINPROG) $(NETYPPROG) $(NIS2LDAPPROG) $(SVCMETHOD)
  36 
  37 MANIFEST = server.xml client.xml xfr.xml
  38 
  39 # These only need -lnsl
  40 LNSLPROG = ypmatch ypwhich ypcat yppoll ypset \
  41         ypbind ypxfr yppush mkalias stdhosts
  42 
  43 include ../Makefile.cmd
  44 


 136 
 137 CLEANFILES =    ypxfrd.h ypxfrd_xdr.c 
 138 
 139 IBINPROG=               $(BINPROG:%=$(ROOTBIN)/%)
 140 ISBINPROG=              $(SBINPROG:%=$(ROOTUSRSBIN)/%)
 141 INETYPPROG=             $(NETYPPROG:%=$(NETYP)/%)
 142 INIS2LDAPPROG =         $(NIS2LDAPPROG:%=$(NETYP)/%)
 143 
 144 NIS2LDAPINC =           -I$(SRC)/lib/libnisdb/yptol
 145 
 146 CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
 147 CERRWARN +=     -_gcc=-Wno-parentheses
 148 CERRWARN +=     -_gcc=-Wno-unused-variable
 149 CERRWARN +=     -_gcc=-Wno-uninitialized
 150 CERRWARN +=     -_gcc=-Wno-switch
 151 CERRWARN +=     -_gcc=-Wno-extra
 152 CERRWARN +=     -_gcc=-Wno-unused-label
 153 CERRWARN +=     -_gcc=-Wno-address
 154 CERRWARN +=     -_gcc=-Wno-unused-function
 155 



 156 #conditional assignments
 157 ypalias.o :=    CPPFLAGS= -DMAIN $(CPPFLAGS.master)
 158 makedbm.o :=    CPPFLAGS= $(CPPFLAGS.master)
 159 yp_b_svc.o :=   CPPFLAGS += -DINIT_DEFAULT
 160 ypxfrd_svc.o := CPPFLAGS += -Dmain=_main
 161 ypxfr.o := CPPFLAGS += $(NIS2LDAPINC)
 162 yppush.o := CPPFLAGS += $(NIS2LDAPINC)
 163 $(NIS2LDAPPROG) := CPPFLAGS += $(NIS2LDAPINC)
 164 $(SHAREDOBJ) := CPPFLAGS += -I$(SRC)/lib/libnisdb/yptol
 165 $(ROOTVAR_YP)/Makefile := FILEMODE= 555
 166 $(ROOTVAR_YP)/nicknames := FILEMODE= 644
 167 $(ROOTVAR_YP)/updaters := FILEMODE= 500
 168 $(ROOTETC)/publickey := FILEMODE= 644
 169 # non-default file attributes to avoid conflict with rpcsrc
 170 NETYP =         $(NETSVC)/yp
 171 
 172 
 173 all:=           TARGET= all
 174 install:=       TARGET= install
 175 clean:=         TARGET= clean




   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 2015 Gary Mills
  23 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 # Copyright (c) 2018, Joyent, Inc.
  26 #
  27 
  28 BINPROG = ypmatch ypwhich ypcat
  29 SBINPROG = makedbm ypalias ypinit yppoll ypset
  30 NETYPPROG = ypbind ypxfr yppush udpublickey mkalias \
  31                 multi multi.awk stdethers stdhosts \
  32                 ypxfr_1perday ypxfr_1perhour ypxfr_2perday \
  33                 ypstart ypstop
  34 NIS2LDAPPROG = ypxfrd ypserv ypxfr
  35 SVCMETHOD = yp
  36 PROG=   $(BINPROG) $(SBINPROG) $(NETYPPROG) $(NIS2LDAPPROG) $(SVCMETHOD)
  37 
  38 MANIFEST = server.xml client.xml xfr.xml
  39 
  40 # These only need -lnsl
  41 LNSLPROG = ypmatch ypwhich ypcat yppoll ypset \
  42         ypbind ypxfr yppush mkalias stdhosts
  43 
  44 include ../Makefile.cmd
  45 


 137 
 138 CLEANFILES =    ypxfrd.h ypxfrd_xdr.c 
 139 
 140 IBINPROG=               $(BINPROG:%=$(ROOTBIN)/%)
 141 ISBINPROG=              $(SBINPROG:%=$(ROOTUSRSBIN)/%)
 142 INETYPPROG=             $(NETYPPROG:%=$(NETYP)/%)
 143 INIS2LDAPPROG =         $(NIS2LDAPPROG:%=$(NETYP)/%)
 144 
 145 NIS2LDAPINC =           -I$(SRC)/lib/libnisdb/yptol
 146 
 147 CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
 148 CERRWARN +=     -_gcc=-Wno-parentheses
 149 CERRWARN +=     -_gcc=-Wno-unused-variable
 150 CERRWARN +=     -_gcc=-Wno-uninitialized
 151 CERRWARN +=     -_gcc=-Wno-switch
 152 CERRWARN +=     -_gcc=-Wno-extra
 153 CERRWARN +=     -_gcc=-Wno-unused-label
 154 CERRWARN +=     -_gcc=-Wno-address
 155 CERRWARN +=     -_gcc=-Wno-unused-function
 156 
 157 # too many unknown types
 158 SMATCH =        off
 159 
 160 #conditional assignments
 161 ypalias.o :=    CPPFLAGS= -DMAIN $(CPPFLAGS.master)
 162 makedbm.o :=    CPPFLAGS= $(CPPFLAGS.master)
 163 yp_b_svc.o :=   CPPFLAGS += -DINIT_DEFAULT
 164 ypxfrd_svc.o := CPPFLAGS += -Dmain=_main
 165 ypxfr.o := CPPFLAGS += $(NIS2LDAPINC)
 166 yppush.o := CPPFLAGS += $(NIS2LDAPINC)
 167 $(NIS2LDAPPROG) := CPPFLAGS += $(NIS2LDAPINC)
 168 $(SHAREDOBJ) := CPPFLAGS += -I$(SRC)/lib/libnisdb/yptol
 169 $(ROOTVAR_YP)/Makefile := FILEMODE= 555
 170 $(ROOTVAR_YP)/nicknames := FILEMODE= 644
 171 $(ROOTVAR_YP)/updaters := FILEMODE= 500
 172 $(ROOTETC)/publickey := FILEMODE= 644
 173 # non-default file attributes to avoid conflict with rpcsrc
 174 NETYP =         $(NETSVC)/yp
 175 
 176 
 177 all:=           TARGET= all
 178 install:=       TARGET= install
 179 clean:=         TARGET= clean