Print this page
12312 fix unused lib dependencies

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/ypcmd/Makefile
          +++ new/usr/src/cmd/ypcmd/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 2015 Gary Mills
  23   23  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  24   24  # Use is subject to license terms.
  25      -# Copyright (c) 2018, Joyent, Inc.
       25 +# Copyright 2020 Joyent, Inc.
  26   26  #
  27   27  
  28   28  BINPROG = ypmatch ypwhich ypcat
  29   29  SBINPROG = makedbm ypalias ypinit yppoll ypset
  30   30  NETYPPROG = ypbind ypxfr yppush udpublickey mkalias \
  31   31                  multi multi.awk stdethers stdhosts \
  32   32                  ypxfr_1perday ypxfr_1perhour ypxfr_2perday \
  33   33                  ypstart ypstop
  34   34  NIS2LDAPPROG = ypxfrd ypserv ypxfr
  35   35  SVCMETHOD = yp
↓ open down ↓ 114 lines elided ↑ open up ↑
 150  150  CERRWARN +=     $(CNOWARN_UNINIT)
 151  151  CERRWARN +=     -_gcc=-Wno-switch
 152  152  CERRWARN +=     -_gcc=-Wno-extra
 153  153  CERRWARN +=     -_gcc=-Wno-unused-label
 154  154  CERRWARN +=     -_gcc=-Wno-address
 155  155  CERRWARN +=     -_gcc=-Wno-unused-function
 156  156  
 157  157  # too many unknown types
 158  158  SMATCH =        off
 159  159  
      160 +ZGUIDANCE = -zguidance=nounused
      161 +
 160  162  #conditional assignments
 161  163  ypalias.o :=    CPPFLAGS= -DMAIN $(CPPFLAGS.master)
 162  164  makedbm.o :=    CPPFLAGS= $(CPPFLAGS.master)
 163  165  yp_b_svc.o :=   CPPFLAGS += -DINIT_DEFAULT
 164  166  ypxfrd_svc.o := CPPFLAGS += -Dmain=_main
 165  167  ypxfr.o := CPPFLAGS += $(NIS2LDAPINC)
 166  168  yppush.o := CPPFLAGS += $(NIS2LDAPINC)
 167  169  $(NIS2LDAPPROG) := CPPFLAGS += $(NIS2LDAPINC)
 168  170  $(SHAREDOBJ) := CPPFLAGS += -I$(SRC)/lib/libnisdb/yptol
 169  171  $(ROOTVAR_YP)/Makefile := FILEMODE= 555
↓ open down ↓ 1 lines elided ↑ open up ↑
 171  173  $(ROOTVAR_YP)/updaters := FILEMODE= 500
 172  174  $(ROOTETC)/publickey := FILEMODE= 644
 173  175  # non-default file attributes to avoid conflict with rpcsrc
 174  176  NETYP =         $(NETSVC)/yp
 175  177  
 176  178  
 177  179  all:=           TARGET= all
 178  180  install:=       TARGET= install
 179  181  clean:=         TARGET= clean
 180  182  clobber:=       TARGET= clobber
 181      -lint:=          TARGET= lint
 182  183  cstyle :=       TARGET= cstyle
 183  184  
 184  185  all: $(SHAREDOBJ) $(SUBDIRS) $(PROG) $(TXTS) 
 185  186  
 186  187  # install rules
 187  188  $(ROOTVAR_YP)/% \
 188  189  $(ROOTETC)/%: net_files/%
 189  190          $(INS.file)
 190  191  
 191  192  $(ROOTVAR_YP)/% : net_files/%
↓ open down ↓ 75 lines elided ↑ open up ↑
 267  268  install: all $(PROG) $(ROOTDIRS) $(ROOTETCFILE) $(ROOTYPFILES) $(IBINPROG) \
 268  269          $(ISBINPROG) $(INETYPPROG) $(INIS2LDAPPROG) $(SUBDIRS) $(ROOTMANIFEST) \
 269  270          $(ROOTSVCMETHOD)
 270  271  
 271  272  $(ROOTDIRS):
 272  273          $(INS.dir)
 273  274  
 274  275  $(SUBDIRS): FRC
 275  276          @cd $@; pwd; $(MAKE) $(TARGET)
 276  277  
 277      -lint := CPPFLAGS += -I$(SRC)/lib/libnisdb/yptol
 278      -
 279      -lint:   $(SUBDIRS)
 280      -        $(LINT.c) ypmatch.c nick.c -lnsl
 281      -        $(LINT.c) ypwhich.c nick.c -lnsl
 282      -        $(LINT.c) ypcat.c nick.c -lnsl
 283      -        $(LINT.c) makedbm.c getlist.c yp_getalias.c
 284      -        $(LINT.c) ypalias.c getlist.c yp_getalias.c
 285      -        $(LINT.c) yp_b_svc.c yp_b_subr.c rpc_bootstrap.c getlist.c -lnsl
 286      -        $(LINT.c) ypxfr.c ypxfrd_client.c ypxfrd_xdr.c getlist.c yp_getalias.c \
 287      -                ./shared/utils.c ./shared/lockmap.c ./shared/ancil.c -lnsl
 288      -        $(LINT.c) yppush.c getlist.c yp_getalias.c -lnsl
 289      -        $(LINT.c) udpublickey.c
 290      -        $(LINT.c) mkalias.c -lnsl
 291      -        $(LINT.c) stdethers.c -lsocket
 292      -        $(LINT.c) stdhosts.c -lnsl
 293      -        $(LINT.c) ypxfrd_svc.c ypxfrd_xdr.c ypxfrd_server.c \
 294      -                ypserv_net_secure.c \
 295      -                ./shared/utils.c ./shared/lockmap.c ./shared/ancil.c \
 296      -                -lnsl -lnisdb
 297      -        $(LINT.c) ypserv.c ypserv_map.c ypserv_proc.c ypserv_ancil.c \
 298      -                ypserv_resolv.c ypserv_resolv_common.c ypv1_xdr.c \
 299      -                ypserv_net_secure.c getlist.c yp_getalias.c \
 300      -                ./shared/utils.c ./shared/lockmap.c ./shared/ancil.c \
 301      -                -lnsl -lnisdb
 302      -
 303  278  check: $(CHKMANIFEST)
 304  279  
 305  280  cstyle: $(SUBDIRS)
 306  281          ${CSTYLE} `echo $(SRCS) | sed 's/ypinit.c//'`
 307  282  
 308  283  clean:  $(SUBDIRS)
 309  284          $(RM) $(OBJS) $(CLEANFILES)
 310  285  
 311  286  clobber: clean $(SUBDIRS)
 312  287  
 313  288  FRC:
 314  289  
 315  290  include ../Makefile.targ
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX