xref: /titanic_50/usr/src/cmd/rexd/Makefile (revision d50bcaae2118610560f2b107d0d282315e47e4e4)
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
5a192e900Samaguire# Common Development and Distribution License (the "License").
6a192e900Samaguire# 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#
22b9238976Sth199096# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate# Use is subject to license terms.
247c478bd9Sstevel@tonic-gate#
25*d50bcaaeSAndrew Stormont# Copyright 2015 RackTop Systems.
26*d50bcaaeSAndrew Stormont#
277c478bd9Sstevel@tonic-gate
287c478bd9Sstevel@tonic-gatePROG=		rpc.rexd on
297c478bd9Sstevel@tonic-gate# where under
307c478bd9Sstevel@tonic-gate#RPCGEN=		rpcgen
317c478bd9Sstevel@tonic-gateREXDPROG=	rpc.rexd
327c478bd9Sstevel@tonic-gateONPROG	=	on
337c478bd9Sstevel@tonic-gate
347c478bd9Sstevel@tonic-gateMANIFEST=	rex.xml
357c478bd9Sstevel@tonic-gate
367c478bd9Sstevel@tonic-gateinclude ../Makefile.cmd
377c478bd9Sstevel@tonic-gate
387014882cSRichard LoweCERRWARN += -_gcc=-Wno-implicit-function-declaration
397014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses
407014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable
417014882cSRichard LoweCERRWARN += -_gcc=-Wno-address
427014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-function
437014882cSRichard LoweCERRWARN += -_gcc=-Wno-extra
447014882cSRichard Lowe
457c478bd9Sstevel@tonic-gateROOTMANIFESTDIR=	$(ROOTSVCNETWORKRPC)
467c478bd9Sstevel@tonic-gate
477c478bd9Sstevel@tonic-gateSRCS=		$(PROG:%=%.c)
487c478bd9Sstevel@tonic-gate
497c478bd9Sstevel@tonic-gate#OBJS=		errprintf.o mount_nfs.o rex_xdr.o unix_login.o mntent.o
50b9238976Sth199096TYPEOBJS=	nfs_subr.o
51b9238976Sth199096OBJS=		errprintf.o mount_nfs.o rex.o unix_login.o mntent.o $(TYPEOBJS)
527c478bd9Sstevel@tonic-gateREXDOBJS=	rpc.rexd.o errprintf.o mount_nfs.o rex.o unix_login.o mntent.o
537c478bd9Sstevel@tonic-gateONOBJS= 	on.o sharetab.o where.o rex.o mntent.o
547c478bd9Sstevel@tonic-gate#WHEREOBJS=	sharetab.o where.o where_main.o mntent.o
557c478bd9Sstevel@tonic-gateCLEANOBJS=	exportent.o sharetab.o on.o rpc.rexd.o where.o
567c478bd9Sstevel@tonic-gate#under.o where.o where_main.o
577c478bd9Sstevel@tonic-gate#UNDEROBJS=	errprintf.o sharetab.o mount_nfs.o
587c478bd9Sstevel@tonic-gate
597c478bd9Sstevel@tonic-gateROOTREXD=	$(ROOTUSRSBIN)
607c478bd9Sstevel@tonic-gateROOTON=		$(ROOTBIN)
617c478bd9Sstevel@tonic-gateROOTREXDPROG=	$(REXDPROG:%=$(ROOTREXD)/%)
627c478bd9Sstevel@tonic-gateROOTONPROG=	$(ONPROG:%=$(ROOTON)/%)
637c478bd9Sstevel@tonic-gate
647c478bd9Sstevel@tonic-gateCPPFLAGS =	-I. $(CPPFLAGS.master)
657c478bd9Sstevel@tonic-gate
667c478bd9Sstevel@tonic-gateLDLIBS +=	-lsocket -lnsl
677c478bd9Sstevel@tonic-gaterpc.rexd :=	LDLIBS += -lrpcsvc -lbsm -lpam
687c478bd9Sstevel@tonic-gate
69b9238976Sth199096TYPESRCS=	../nfs/lib/nfs_subr.c
70b9238976Sth199096
717c478bd9Sstevel@tonic-gate# install rule
727c478bd9Sstevel@tonic-gate# don't re-install directories created by Targetdirs
737c478bd9Sstevel@tonic-gate#$(ROOTREXD)/%: %
747c478bd9Sstevel@tonic-gate#	$(INS.file)
757c478bd9Sstevel@tonic-gate#$(ROOTON)/%: %
767c478bd9Sstevel@tonic-gate#	$(INS.file)
777c478bd9Sstevel@tonic-gate
787c478bd9Sstevel@tonic-gate.KEEP_STATE:
797c478bd9Sstevel@tonic-gate
807c478bd9Sstevel@tonic-gateall:	$(PROG)
817c478bd9Sstevel@tonic-gate
827c478bd9Sstevel@tonic-gaterpc.rexd:	$$@.o $(OBJS)
837c478bd9Sstevel@tonic-gate	$(LINK.c) -o $@ $@.o $(OBJS) $(LDLIBS)
847c478bd9Sstevel@tonic-gate	$(POST_PROCESS)
857c478bd9Sstevel@tonic-gate
867c478bd9Sstevel@tonic-gateon:	$(ONOBJS)
877c478bd9Sstevel@tonic-gate	$(LINK.c) -o $@ $(ONOBJS) $(LDLIBS)
887c478bd9Sstevel@tonic-gate	$(POST_PROCESS)
897c478bd9Sstevel@tonic-gate
907c478bd9Sstevel@tonic-gate#under: $$@.o $(UNDEROBJS)
917c478bd9Sstevel@tonic-gate#	$(LINK.c) -o $@ $@.o $(UNDEROBJS) $(LDLIBS)
927c478bd9Sstevel@tonic-gate#
937c478bd9Sstevel@tonic-gate#where: $(WHEREOBJS)
947c478bd9Sstevel@tonic-gate#	$(LINK.c) -o $@ $(WHEREOBJS) $(LDLIBS)
957c478bd9Sstevel@tonic-gate#
967c478bd9Sstevel@tonic-gateinstall: all $(ROOTREXDPROG) $(ROOTONPROG) $(ROOTMANIFEST)
977c478bd9Sstevel@tonic-gate
987c478bd9Sstevel@tonic-gate$(ROOTREXD):	rpc.rexd
997c478bd9Sstevel@tonic-gate	$(INS.dir)
1007c478bd9Sstevel@tonic-gate$(ROOTON):	on
1017c478bd9Sstevel@tonic-gate	$(INS.dir)
1027c478bd9Sstevel@tonic-gate
1037c478bd9Sstevel@tonic-gatecheck:	$(CHKMANIFEST)
1047c478bd9Sstevel@tonic-gate
1057c478bd9Sstevel@tonic-gateclean:
1067c478bd9Sstevel@tonic-gate	$(RM) $(OBJS) $(CLEANOBJS) $(PROG)
1077c478bd9Sstevel@tonic-gate
1087c478bd9Sstevel@tonic-gatelint:	 lint_SRCS
1097c478bd9Sstevel@tonic-gate
1107c478bd9Sstevel@tonic-gateinclude ../Makefile.targ
1117c478bd9Sstevel@tonic-gate
1127c478bd9Sstevel@tonic-gate# derived source files and explicit dependencies
1137c478bd9Sstevel@tonic-gate
1147c478bd9Sstevel@tonic-gate#rex_xdr.o \
1157c478bd9Sstevel@tonic-gate#rex_svc.o \
1167c478bd9Sstevel@tonic-gate#rex_clnt.o:	rex.h rex.c
117*d50bcaaeSAndrew Stormont#	$(LINK.c) -c -o $@ rex.c $(LDLIBS)
1187c478bd9Sstevel@tonic-gate
1197c478bd9Sstevel@tonic-gateon.o:		rex.h
1207c478bd9Sstevel@tonic-gate
1217c478bd9Sstevel@tonic-gaterpc.rexd.o:		rex.h
1227c478bd9Sstevel@tonic-gate
1237c478bd9Sstevel@tonic-gateunix_login.o:	rex.h
1247c478bd9Sstevel@tonic-gate
1257c478bd9Sstevel@tonic-gaterex.o:		rex.h
126b9238976Sth199096
127b9238976Sth199096nfs_subr.o:	../fs.d/nfs/lib/nfs_subr.c
128b9238976Sth199096	$(COMPILE.c)  ../fs.d/nfs/lib/nfs_subr.c
129