Print this page
12312 fix unused lib dependencies

@@ -20,11 +20,11 @@
 #
 #
 # Copyright 2015 Gary Mills
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
-# Copyright (c) 2018, Joyent, Inc.
+# Copyright 2020 Joyent, Inc.
 #
 
 BINPROG = ypmatch ypwhich ypcat
 SBINPROG = makedbm ypalias ypinit yppoll ypset
 NETYPPROG = ypbind ypxfr yppush udpublickey mkalias \

@@ -155,10 +155,12 @@
 CERRWARN +=     -_gcc=-Wno-unused-function
 
 # too many unknown types
 SMATCH =        off
 
+ZGUIDANCE = -zguidance=nounused
+
 #conditional assignments
 ypalias.o :=    CPPFLAGS= -DMAIN $(CPPFLAGS.master)
 makedbm.o :=    CPPFLAGS= $(CPPFLAGS.master)
 yp_b_svc.o :=   CPPFLAGS += -DINIT_DEFAULT
 ypxfrd_svc.o := CPPFLAGS += -Dmain=_main

@@ -176,11 +178,10 @@
 
 all:=           TARGET= all
 install:=       TARGET= install
 clean:=         TARGET= clean
 clobber:=       TARGET= clobber
-lint:=          TARGET= lint
 cstyle :=       TARGET= cstyle
 
 all: $(SHAREDOBJ) $(SUBDIRS) $(PROG) $(TXTS) 
 
 # install rules

@@ -272,36 +273,10 @@
         $(INS.dir)
 
 $(SUBDIRS): FRC
         @cd $@; pwd; $(MAKE) $(TARGET)
 
-lint := CPPFLAGS += -I$(SRC)/lib/libnisdb/yptol
-
-lint:   $(SUBDIRS)
-        $(LINT.c) ypmatch.c nick.c -lnsl
-        $(LINT.c) ypwhich.c nick.c -lnsl
-        $(LINT.c) ypcat.c nick.c -lnsl
-        $(LINT.c) makedbm.c getlist.c yp_getalias.c
-        $(LINT.c) ypalias.c getlist.c yp_getalias.c
-        $(LINT.c) yp_b_svc.c yp_b_subr.c rpc_bootstrap.c getlist.c -lnsl
-        $(LINT.c) ypxfr.c ypxfrd_client.c ypxfrd_xdr.c getlist.c yp_getalias.c \
-                ./shared/utils.c ./shared/lockmap.c ./shared/ancil.c -lnsl
-        $(LINT.c) yppush.c getlist.c yp_getalias.c -lnsl
-        $(LINT.c) udpublickey.c
-        $(LINT.c) mkalias.c -lnsl
-        $(LINT.c) stdethers.c -lsocket
-        $(LINT.c) stdhosts.c -lnsl
-        $(LINT.c) ypxfrd_svc.c ypxfrd_xdr.c ypxfrd_server.c \
-                ypserv_net_secure.c \
-                ./shared/utils.c ./shared/lockmap.c ./shared/ancil.c \
-                -lnsl -lnisdb
-        $(LINT.c) ypserv.c ypserv_map.c ypserv_proc.c ypserv_ancil.c \
-                ypserv_resolv.c ypserv_resolv_common.c ypv1_xdr.c \
-                ypserv_net_secure.c getlist.c yp_getalias.c \
-                ./shared/utils.c ./shared/lockmap.c ./shared/ancil.c \
-                -lnsl -lnisdb
-
 check: $(CHKMANIFEST)
 
 cstyle: $(SUBDIRS)
         ${CSTYLE} `echo $(SRCS) | sed 's/ypinit.c//'`