xref: /illumos-gate/usr/src/cmd/ypcmd/Makefile (revision ceb97a6a3232437e1f0b4c6b8604bc1b4245ccc5)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
54a190493Ssdussud# Common Development and Distribution License (the "License").
64a190493Ssdussud# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
217c478bd9Sstevel@tonic-gate#
224a190493Ssdussud# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate# Use is subject to license terms.
247c478bd9Sstevel@tonic-gate#
257c478bd9Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
267c478bd9Sstevel@tonic-gate#
277c478bd9Sstevel@tonic-gate
287c478bd9Sstevel@tonic-gateBINPROG = ypmatch ypwhich ypcat
297c478bd9Sstevel@tonic-gateSBINPROG = makedbm ypalias ypinit yppoll ypset
307c478bd9Sstevel@tonic-gateNETYPPROG = ypbind ypxfr yppush udpublickey mkalias \
317c478bd9Sstevel@tonic-gate		multi multi.awk stdethers stdhosts \
327c478bd9Sstevel@tonic-gate		ypxfr_1perday ypxfr_1perhour ypxfr_2perday \
337c478bd9Sstevel@tonic-gate		ypstart ypstop
344a190493SsdussudNIS2LDAPPROG = ypxfrd ypserv ypxfr
35a192e900SamaguireSVCMETHOD = yp
36*ceb97a6aSamaguirePROG=	$(BINPROG) $(SBINPROG) $(NETYPPROG) $(NIS2LDAPPROG) $(SVCMETHOD)
377c478bd9Sstevel@tonic-gate
387c478bd9Sstevel@tonic-gateMANIFEST = server.xml client.xml xfr.xml
397c478bd9Sstevel@tonic-gate
407c478bd9Sstevel@tonic-gateinclude ../Makefile.cmd
417c478bd9Sstevel@tonic-gate
427c478bd9Sstevel@tonic-gateROOTMANIFESTDIR = $(ROOTSVCNETWORKNIS)
437c478bd9Sstevel@tonic-gate
447c478bd9Sstevel@tonic-gate# installed directories
457c478bd9Sstevel@tonic-gateNETSVC = $(ROOTLIB)/netsvc
467c478bd9Sstevel@tonic-gateNETYP = $(NETSVC)/yp
477c478bd9Sstevel@tonic-gate
487c478bd9Sstevel@tonic-gateROOTVAR_YP = $(ROOT)/var/yp
497c478bd9Sstevel@tonic-gateROOTBINDING = $(ROOTVAR_YP)/binding
507c478bd9Sstevel@tonic-gateROOTDIRS =	$(ROOT) $(ROOTUSR) $(ROOTLIB) $(ROOTETC) $(ROOTVAR) \
517c478bd9Sstevel@tonic-gate		$(NETSVC) $(NETYP) $(ROOTVAR_YP) $(ROOTBINDING) \
527c478bd9Sstevel@tonic-gate		$(ROOTUSRSBIN) $(ROOTBIN)
537c478bd9Sstevel@tonic-gate
547c478bd9Sstevel@tonic-gate$(BINPROG) :=	LDLIBS += -lnsl
557c478bd9Sstevel@tonic-gate$(NETYPPROG) :=	LDLIBS += -lnsl
567c478bd9Sstevel@tonic-gate$(NIS2LDAPPROG) := LDLIBS += -lc -lnsl -lnisdb
577c478bd9Sstevel@tonic-gateypinit :=	LDLIBS += -lnsl
587c478bd9Sstevel@tonic-gateyppoll :=	LDLIBS += -lnsl
597c478bd9Sstevel@tonic-gateypset :=	LDLIBS += -lnsl
607c478bd9Sstevel@tonic-gate
617c478bd9Sstevel@tonic-gate$(ROOTVAR_YP)/aliases :=	GROUP=bin
627c478bd9Sstevel@tonic-gate$(ROOTVAR_YP)/aliases :=	FILEMODE=555
637c478bd9Sstevel@tonic-gate
647c478bd9Sstevel@tonic-gateYPFILES = Makefile aliases nicknames updaters
657c478bd9Sstevel@tonic-gateETCFILES =  publickey
667c478bd9Sstevel@tonic-gateROOTYPFILES= $(YPFILES:%=$(ROOTVAR_YP)/%)
677c478bd9Sstevel@tonic-gateROOTETCFILE= $(ETCFILES:%=$(ROOTETC)/%)
687c478bd9Sstevel@tonic-gate
697c478bd9Sstevel@tonic-gateTXTS=	$(ETCFILES:%=net_files/%) $(YPFILES:%=net_files/%)
707c478bd9Sstevel@tonic-gateSUBDIRS = yppasswd mknetid revnetgroup ypupdated yp2lscripts
717c478bd9Sstevel@tonic-gate
727c478bd9Sstevel@tonic-gateYPBINDOBJ= yp_b_svc.o yp_b_subr.o rpc_bootstrap.o getlist.o
737c478bd9Sstevel@tonic-gate#
747c478bd9Sstevel@tonic-gate# Some sort of obsolete idea of common files which are only now used by a
757c478bd9Sstevel@tonic-gate# few minor utilities
767c478bd9Sstevel@tonic-gate#
777c478bd9Sstevel@tonic-gateCOMMONOBJ= getlist.o yp_getalias.o
787c478bd9Sstevel@tonic-gate
797c478bd9Sstevel@tonic-gate#
807c478bd9Sstevel@tonic-gate# Objects shared between all the major components
817c478bd9Sstevel@tonic-gate#
827c478bd9Sstevel@tonic-gateSHARED_DIR= ./shared
837c478bd9Sstevel@tonic-gateSHAREDOBJ= $(SHARED_DIR)/utils.o $(SHARED_DIR)/lockmap.o $(SHARED_DIR)/ancil.o
847c478bd9Sstevel@tonic-gateSHARESRC = $(SHAREOBJ:.o=.c)
857c478bd9Sstevel@tonic-gate
867c478bd9Sstevel@tonic-gateYPXFROBJ = ypxfr.o ypxfrd_client.o ypxfrd_xdr.o
877c478bd9Sstevel@tonic-gateYPMATOBJ = ypmatch.o nick.o
887c478bd9Sstevel@tonic-gateYPWHIOBJ = ypwhich.o nick.o
897c478bd9Sstevel@tonic-gateYPCATOBJ = ypcat.o nick.o
907c478bd9Sstevel@tonic-gateUDPUBLICKEYOBJ = udpublickey.o
917c478bd9Sstevel@tonic-gateMKALIASOBJ = mkalias.o
927c478bd9Sstevel@tonic-gateSTDETHERSOBJ = stdethers.o
937c478bd9Sstevel@tonic-gateSTDHOSTSOBJ = stdhosts.o
947c478bd9Sstevel@tonic-gate#COMMONCLNTOBJ =	clnt_create_rsvd.o
957c478bd9Sstevel@tonic-gateYPSERVOBJ = ypserv.o ypserv_map.o \
967c478bd9Sstevel@tonic-gate		ypserv_proc.o ypserv_ancil.o \
977c478bd9Sstevel@tonic-gate		ypserv_resolv.o ypserv_resolv_common.o \
987c478bd9Sstevel@tonic-gate		ypv1_xdr.o ypserv_net_secure.o
997c478bd9Sstevel@tonic-gateYPPUSHOBJ = yppush.o
1007c478bd9Sstevel@tonic-gateYPXFRDOBJ = ypxfrd_svc.o ypxfrd_xdr.o ypxfrd_server.o \
1017c478bd9Sstevel@tonic-gate		ypserv_net_secure.o
1027c478bd9Sstevel@tonic-gate
1037c478bd9Sstevel@tonic-gateNETYPOBJ = $(YPXFROBJ) $(YPXFRDOBJ) $(YPSERVOBJ) $(YPPUSHOBJ) \
1047c478bd9Sstevel@tonic-gate		$(YPBINDOBJ) $(UDPUBLICKEYOBJ)
1057c478bd9Sstevel@tonic-gateOBJS = $(NETYPOBJ) $(MKALIASOBJ) $(COMMONOBJ) $(SHAREDOBJ) \
1067c478bd9Sstevel@tonic-gate	$(YPPUSHOBJ) $(YPMATOBJ) $(YPWHIOBJ) $(YPCATOBJ) \
1077c478bd9Sstevel@tonic-gate	$(STDETHERSOBJ) $(STDHOSTSOBJ) makedbm.o ypalias.o pong.o
1087c478bd9Sstevel@tonic-gate
1097c478bd9Sstevel@tonic-gateBINSRC = $(BINPROG:=.c)
1107c478bd9Sstevel@tonic-gate
1117c478bd9Sstevel@tonic-gateSBINSRC = $(SBINPROG:=.c)
1127c478bd9Sstevel@tonic-gate
1137c478bd9Sstevel@tonic-gateNETYPSRC = $(NETYPOBJ:.o=.c)
1147c478bd9Sstevel@tonic-gate
1157c478bd9Sstevel@tonic-gateYPBINDSRC = $(YPBINSOBJ:.o=.c)
1167c478bd9Sstevel@tonic-gate
1177c478bd9Sstevel@tonic-gateYPXFRSRC =	$(YPXFROBJ:.o=.c)
1187c478bd9Sstevel@tonic-gate
1197c478bd9Sstevel@tonic-gateYPSERVSRC =	$(YPSERVOBJ:.o=.c)
1207c478bd9Sstevel@tonic-gate
1217c478bd9Sstevel@tonic-gateYPPUSHSRC =	$(YPPUSHOBJ:.o=.c)
1227c478bd9Sstevel@tonic-gate
1237c478bd9Sstevel@tonic-gateYPXFRDSRC =	$(YPXFRDOBJ:.o=.c)
1247c478bd9Sstevel@tonic-gate
1257c478bd9Sstevel@tonic-gateYPMASTERSRC =	$(YPMASTEROBJ:.o=.c)
1267c478bd9Sstevel@tonic-gate
1277c478bd9Sstevel@tonic-gateYPALLSRC =	$(YPALLOBJ:.o=.c)
1287c478bd9Sstevel@tonic-gate
1297c478bd9Sstevel@tonic-gateCOMMONSRC = 	$(COMMONOBJ:.o=.c)
1307c478bd9Sstevel@tonic-gate
1317c478bd9Sstevel@tonic-gate#COMMONCLNTSRC =	$(COMMONCLNTOBJ:.o=.c)
1327c478bd9Sstevel@tonic-gate
1337c478bd9Sstevel@tonic-gateSRCS = $(BINSRC) $(SBINSRC) $(NETYPSRC) \
1347c478bd9Sstevel@tonic-gate	$(COMMONSRC) $(SHAREDSRC)
1357c478bd9Sstevel@tonic-gate
1367c478bd9Sstevel@tonic-gateCLEANFILES =	ypxfrd.h ypxfrd_xdr.c
1377c478bd9Sstevel@tonic-gate
1387c478bd9Sstevel@tonic-gateIBINPROG=		$(BINPROG:%=$(ROOTBIN)/%)
1397c478bd9Sstevel@tonic-gateISBINPROG=		$(SBINPROG:%=$(ROOTUSRSBIN)/%)
1407c478bd9Sstevel@tonic-gateINETYPPROG=		$(NETYPPROG:%=$(NETYP)/%)
1417c478bd9Sstevel@tonic-gateINIS2LDAPPROG = 	$(NIS2LDAPPROG:%=$(NETYP)/%)
1427c478bd9Sstevel@tonic-gate
1437c478bd9Sstevel@tonic-gateNIS2LDAPINC =		-I$(SRC)/lib/libnisdb/yptol
1447c478bd9Sstevel@tonic-gate
1457c478bd9Sstevel@tonic-gate#conditional assignments
1467c478bd9Sstevel@tonic-gateypalias.o :=	CPPFLAGS= -DMAIN $(CPPFLAGS.master)
1477c478bd9Sstevel@tonic-gatemakedbm.o :=	CPPFLAGS= $(CPPFLAGS.master)
1487c478bd9Sstevel@tonic-gateyp_b_svc.o :=	CPPFLAGS += -DINIT_DEFAULT
1497c478bd9Sstevel@tonic-gateypxfrd_svc.o := CPPFLAGS += -Dmain=_main
1507c478bd9Sstevel@tonic-gateypxfr.o := CPPFLAGS += $(NIS2LDAPINC)
1517c478bd9Sstevel@tonic-gateyppush.o := CPPFLAGS += $(NIS2LDAPINC)
1527c478bd9Sstevel@tonic-gate$(NIS2LDAPPROG) := CPPFLAGS += $(NIS2LDAPINC)
1537c478bd9Sstevel@tonic-gate$(SHAREDOBJ) := CPPFLAGS += -I$(SRC)/lib/libnisdb/yptol
1547c478bd9Sstevel@tonic-gate$(IBINPROG) := GROUP= other
1557c478bd9Sstevel@tonic-gate$(ROOTVAR_YP)/Makefile := FILEMODE= 555
1567c478bd9Sstevel@tonic-gate$(ROOTVAR_YP)/nicknames := FILEMODE= 644
1577c478bd9Sstevel@tonic-gate$(ROOTVAR_YP)/updaters := FILEMODE= 500
1587c478bd9Sstevel@tonic-gate$(ROOTETC)/publickey := FILEMODE= 644
1597c478bd9Sstevel@tonic-gate# non-default file attributes to avoid conflict with rpcsrc
1607c478bd9Sstevel@tonic-gate$(NETSVC) :=	GROUP=          sys
1617c478bd9Sstevel@tonic-gateNETYP =		$(NETSVC)/yp
1627c478bd9Sstevel@tonic-gate$(NETYP) :=	GROUP=bin
1637c478bd9Sstevel@tonic-gate
1647c478bd9Sstevel@tonic-gate
1657c478bd9Sstevel@tonic-gateall:=		TARGET= all
1667c478bd9Sstevel@tonic-gateinstall:=	TARGET= install
1677c478bd9Sstevel@tonic-gateclean:=		TARGET= clean
1687c478bd9Sstevel@tonic-gateclobber:=	TARGET= clobber
1697c478bd9Sstevel@tonic-gatelint:=		TARGET= lint
1707c478bd9Sstevel@tonic-gatecstyle :=	TARGET= cstyle
1717c478bd9Sstevel@tonic-gate
1727c478bd9Sstevel@tonic-gateall: $(SHAREDOBJ) $(SUBDIRS) $(PROG) $(TXTS)
1737c478bd9Sstevel@tonic-gate
1747c478bd9Sstevel@tonic-gate# install rules
1757c478bd9Sstevel@tonic-gate$(ROOTVAR_YP)/% \
1767c478bd9Sstevel@tonic-gate$(ROOTETC)/%: net_files/%
1777c478bd9Sstevel@tonic-gate	$(INS.file)
1787c478bd9Sstevel@tonic-gate
1797c478bd9Sstevel@tonic-gate$(ROOTVAR_YP)/% : net_files/%
1807c478bd9Sstevel@tonic-gate	$(INS.file)
1817c478bd9Sstevel@tonic-gate
1827c478bd9Sstevel@tonic-gate$(NETYP)/%: %
1837c478bd9Sstevel@tonic-gate	$(INS.file)
1847c478bd9Sstevel@tonic-gate
1857c478bd9Sstevel@tonic-gate.KEEP_STATE:
1867c478bd9Sstevel@tonic-gate
1877c478bd9Sstevel@tonic-gate$(SHAREDOBJ): $(SHAREDSRC)
1887c478bd9Sstevel@tonic-gate	$(COMPILE.c) $(SHAREDSRC) -o $@ $<
1897c478bd9Sstevel@tonic-gate
1907c478bd9Sstevel@tonic-gateypbind: $(YPBINDOBJ)
1917c478bd9Sstevel@tonic-gate	$(LINK.c) $(YPBINDOBJ) -o $@ $(LDLIBS)
1927c478bd9Sstevel@tonic-gate	$(POST_PROCESS)
1937c478bd9Sstevel@tonic-gate
1947c478bd9Sstevel@tonic-gatemakedbm ypalias: $$@.o $(COMMONOBJ)
1957c478bd9Sstevel@tonic-gate	$(LINK.c) -o $@ $@.o $(COMMONOBJ) $(LDLIBS)
1967c478bd9Sstevel@tonic-gate	$(POST_PROCESS)
1977c478bd9Sstevel@tonic-gate
1987c478bd9Sstevel@tonic-gateypmatch: $(YPMATOBJ)
1997c478bd9Sstevel@tonic-gate	$(LINK.c) -o $@ $(YPMATOBJ) $(LDLIBS)
2007c478bd9Sstevel@tonic-gate	$(POST_PROCESS)
2017c478bd9Sstevel@tonic-gate
2027c478bd9Sstevel@tonic-gateypwhich: $(YPWHIOBJ)
2037c478bd9Sstevel@tonic-gate	$(LINK.c) -o $@ $(YPWHIOBJ) $(LDLIBS)
2047c478bd9Sstevel@tonic-gate	$(POST_PROCESS)
2057c478bd9Sstevel@tonic-gate
2067c478bd9Sstevel@tonic-gateypcat: $(YPCATOBJ)
2077c478bd9Sstevel@tonic-gate	$(LINK.c) -o $@ $(YPCATOBJ) $(LDLIBS)
2087c478bd9Sstevel@tonic-gate	$(POST_PROCESS)
2097c478bd9Sstevel@tonic-gate
2107c478bd9Sstevel@tonic-gateypxfrd_xdr.c: ypxfrd.x
2117c478bd9Sstevel@tonic-gate	$(RM) ypxfrd_xdr.c; $(RPCGEN) -C -c ypxfrd.x -o ypxfrd_xdr.c
2127c478bd9Sstevel@tonic-gate
2137c478bd9Sstevel@tonic-gateypxfrd.h: ypxfrd.x
2147c478bd9Sstevel@tonic-gate	$(RM) ypxfrd.h; $(RPCGEN) -C -h ypxfrd.x -o ypxfrd.h
2157c478bd9Sstevel@tonic-gate
2167c478bd9Sstevel@tonic-gateypxfrd_xdr.o ypxfrd_client.o: ypxfrd.h
2177c478bd9Sstevel@tonic-gate
2187c478bd9Sstevel@tonic-gate#clnt_create_rsvd.o ypxfr.o: clnt_create_rsvd.h
2197c478bd9Sstevel@tonic-gate
2207c478bd9Sstevel@tonic-gateypxfrd: $(YPXFRDOBJ) $(SHAREDOBJ)
2217c478bd9Sstevel@tonic-gate	$(LINK.cc) $(YPXFRDOBJ) $(SHAREDOBJ) \
2227c478bd9Sstevel@tonic-gate	-o $@ $(LDLIBS) -lc
2237c478bd9Sstevel@tonic-gate	$(POST_PROCESS)
2247c478bd9Sstevel@tonic-gate
2257c478bd9Sstevel@tonic-gateypxfr: $(YPXFROBJ) $(COMMONOBJ) $(YPMASTEROBJ) $(SHAREDOBJ)
2264a190493Ssdussud	$(LINK.cc) -o $@ $(YPXFROBJ) $(YPMASTEROBJ) $(COMMONOBJ) \
2277c478bd9Sstevel@tonic-gate		$(SHAREDOBJ) $(LDLIBS)
2287c478bd9Sstevel@tonic-gate	$(POST_PROCESS)
2297c478bd9Sstevel@tonic-gate
2307c478bd9Sstevel@tonic-gateypserv: $(YPSERVOBJ) $(COMMONOBJ) $(SHAREDOBJ)
2317c478bd9Sstevel@tonic-gate	$(LINK.cc) $(YPSERVOBJ) $(COMMONOBJ) \
2327c478bd9Sstevel@tonic-gate		$(SHAREDOBJ) -o $@ $(LDLIBS)
2337c478bd9Sstevel@tonic-gate	$(POST_PROCESS)
2347c478bd9Sstevel@tonic-gate
2357c478bd9Sstevel@tonic-gateyppush: $(YPPUSHOBJ) $(COMMONOBJ)
2367c478bd9Sstevel@tonic-gate	$(LINK.c) $(YPPUSHOBJ) $(COMMONOBJ) -o $@ $(LDLIBS)
2377c478bd9Sstevel@tonic-gate	$(POST_PROCESS)
2387c478bd9Sstevel@tonic-gate
2397c478bd9Sstevel@tonic-gateudpublickey: $(UDPUBLICKEYOBJ)
2407c478bd9Sstevel@tonic-gate	$(LINK.c) $(UDPUBLICKEYOBJ) -o $@
2417c478bd9Sstevel@tonic-gate	$(POST_PROCESS)
2427c478bd9Sstevel@tonic-gate
2437c478bd9Sstevel@tonic-gatemkalias: $(MKALIASOBJ)
2447c478bd9Sstevel@tonic-gate	$(LINK.c) $(MKALIASOBJ) -o $@ -lnsl
2457c478bd9Sstevel@tonic-gate	$(POST_PROCESS)
2467c478bd9Sstevel@tonic-gate
2477c478bd9Sstevel@tonic-gatestdethers: $(STDETHERSOBJ)
2487c478bd9Sstevel@tonic-gate	$(LINK.c) $(STDETHERSOBJ) -o $@ -lsocket
2497c478bd9Sstevel@tonic-gate	$(POST_PROCESS)
2507c478bd9Sstevel@tonic-gate
2517c478bd9Sstevel@tonic-gatestdhosts: $(STDHOSTSOBJ)
2527c478bd9Sstevel@tonic-gate	$(LINK.c) $(STDHOSTSOBJ) -o $@ $(LDLIBS)
2537c478bd9Sstevel@tonic-gate	$(POST_PROCESS)
2547c478bd9Sstevel@tonic-gate
2557c478bd9Sstevel@tonic-gateinstall: all $(PROG) $(ROOTDIRS) $(ROOTETCFILE) $(ROOTYPFILES) $(IBINPROG) \
2567c478bd9Sstevel@tonic-gate	$(ISBINPROG) $(INETYPPROG) $(INIS2LDAPPROG) $(SUBDIRS) $(ROOTMANIFEST) \
257a192e900Samaguire	$(ROOTSVCMETHOD)
2587c478bd9Sstevel@tonic-gate
2597c478bd9Sstevel@tonic-gate$(ROOTDIRS):
2607c478bd9Sstevel@tonic-gate	$(INS.dir)
2617c478bd9Sstevel@tonic-gate
2627c478bd9Sstevel@tonic-gate$(SUBDIRS): FRC
2637c478bd9Sstevel@tonic-gate	@cd $@; pwd; $(MAKE) $(TARGET)
2647c478bd9Sstevel@tonic-gate
2657c478bd9Sstevel@tonic-gatelint := CPPFLAGS += -I$(SRC)/lib/libnisdb/yptol
2667c478bd9Sstevel@tonic-gate
2677c478bd9Sstevel@tonic-gatelint:	$(SUBDIRS)
2687c478bd9Sstevel@tonic-gate	$(LINT.c) ypmatch.c nick.c -lnsl
2697c478bd9Sstevel@tonic-gate	$(LINT.c) ypwhich.c nick.c -lnsl
2707c478bd9Sstevel@tonic-gate	$(LINT.c) ypcat.c nick.c -lnsl
2717c478bd9Sstevel@tonic-gate	$(LINT.c) makedbm.c getlist.c yp_getalias.c
2727c478bd9Sstevel@tonic-gate	$(LINT.c) ypalias.c getlist.c yp_getalias.c
2737c478bd9Sstevel@tonic-gate	$(LINT.c) yp_b_svc.c yp_b_subr.c rpc_bootstrap.c getlist.c -lnsl
2747c478bd9Sstevel@tonic-gate	$(LINT.c) ypxfr.c ypxfrd_client.c ypxfrd_xdr.c getlist.c yp_getalias.c \
2757c478bd9Sstevel@tonic-gate		./shared/utils.c ./shared/lockmap.c ./shared/ancil.c -lnsl
2767c478bd9Sstevel@tonic-gate	$(LINT.c) yppush.c getlist.c yp_getalias.c -lnsl
2777c478bd9Sstevel@tonic-gate	$(LINT.c) udpublickey.c
2787c478bd9Sstevel@tonic-gate	$(LINT.c) mkalias.c -lnsl
2797c478bd9Sstevel@tonic-gate	$(LINT.c) stdethers.c -lsocket
2807c478bd9Sstevel@tonic-gate	$(LINT.c) stdhosts.c -lnsl
2817c478bd9Sstevel@tonic-gate	$(LINT.c) ypxfrd_svc.c ypxfrd_xdr.c ypxfrd_server.c \
2827c478bd9Sstevel@tonic-gate		ypserv_net_secure.c \
2837c478bd9Sstevel@tonic-gate		./shared/utils.c ./shared/lockmap.c ./shared/ancil.c \
2847c478bd9Sstevel@tonic-gate		-lnsl -lnisdb
2857c478bd9Sstevel@tonic-gate	$(LINT.c) ypserv.c ypserv_map.c ypserv_proc.c ypserv_ancil.c \
2867c478bd9Sstevel@tonic-gate		ypserv_resolv.c ypserv_resolv_common.c ypv1_xdr.c \
2877c478bd9Sstevel@tonic-gate		ypserv_net_secure.c getlist.c yp_getalias.c \
2887c478bd9Sstevel@tonic-gate		./shared/utils.c ./shared/lockmap.c ./shared/ancil.c \
2897c478bd9Sstevel@tonic-gate		-lnsl -lnisdb
2907c478bd9Sstevel@tonic-gate
2917c478bd9Sstevel@tonic-gatecheck: $(CHKMANIFEST)
2927c478bd9Sstevel@tonic-gate
2937c478bd9Sstevel@tonic-gatecstyle:	$(SUBDIRS)
2947c478bd9Sstevel@tonic-gate	${CSTYLE} `echo $(SRCS) | sed 's/ypinit.c//'`
2957c478bd9Sstevel@tonic-gate
2967c478bd9Sstevel@tonic-gateclean:	$(SUBDIRS)
2977c478bd9Sstevel@tonic-gate	$(RM) $(OBJS) $(CLEANFILES)
2987c478bd9Sstevel@tonic-gate
2997c478bd9Sstevel@tonic-gateclobber: clean $(SUBDIRS)
3007c478bd9Sstevel@tonic-gate
3017c478bd9Sstevel@tonic-gateFRC:
302a192e900Samaguire
303a192e900Samaguireinclude ../Makefile.targ
304