1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License, Version 1.0 only 6# (the "License"). You may not use this file except in compliance 7# with the License. 8# 9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10# or http://www.opensolaris.org/os/licensing. 11# See the License for the specific language governing permissions 12# and limitations under the License. 13# 14# When distributing Covered Code, include this CDDL HEADER in each 15# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16# If applicable, add the following below this CDDL HEADER, with the 17# fields enclosed by brackets "[]" replaced with your own identifying 18# information: Portions Copyright [yyyy] [name of copyright owner] 19# 20# CDDL HEADER END 21# 22# 23# Copyright 2004 Sun Microsystems, Inc. All rights reserved. 24# Use is subject to license terms. 25# 26# ident "%Z%%M% %I% %E% SMI" 27# 28 29PROG= rpc.rexd on 30# where under 31#RPCGEN= rpcgen 32REXDPROG= rpc.rexd 33ONPROG = on 34 35MANIFEST= rex.xml 36 37include ../Makefile.cmd 38 39ROOTMANIFESTDIR= $(ROOTSVCNETWORKRPC) 40$(ROOTMANIFEST) := FILEMODE= 444 41 42SRCS= $(PROG:%=%.c) 43 44#OBJS= errprintf.o mount_nfs.o rex_xdr.o unix_login.o mntent.o 45OBJS= errprintf.o mount_nfs.o rex.o unix_login.o mntent.o 46REXDOBJS= rpc.rexd.o errprintf.o mount_nfs.o rex.o unix_login.o mntent.o 47ONOBJS= on.o sharetab.o where.o rex.o mntent.o 48#WHEREOBJS= sharetab.o where.o where_main.o mntent.o 49CLEANOBJS= exportent.o sharetab.o on.o rpc.rexd.o where.o 50#under.o where.o where_main.o 51#UNDEROBJS= errprintf.o sharetab.o mount_nfs.o 52 53ROOTREXD= $(ROOTUSRSBIN) 54ROOTON= $(ROOTBIN) 55ROOTREXDPROG= $(REXDPROG:%=$(ROOTREXD)/%) 56ROOTONPROG= $(ONPROG:%=$(ROOTON)/%) 57 58CPPFLAGS = -I. $(CPPFLAGS.master) 59 60LDLIBS += -lsocket -lnsl 61rpc.rexd := LDLIBS += -lrpcsvc -lbsm -lpam 62 63# install rule 64# don't re-install directories created by Targetdirs 65#$(ROOTREXD)/%: % 66# $(INS.file) 67#$(ROOTON)/%: % 68# $(INS.file) 69 70.KEEP_STATE: 71 72all: $(PROG) 73 74rpc.rexd: $$@.o $(OBJS) 75 $(LINK.c) -o $@ $@.o $(OBJS) $(LDLIBS) 76 $(POST_PROCESS) 77 78on: $(ONOBJS) 79 $(LINK.c) -o $@ $(ONOBJS) $(LDLIBS) 80 $(POST_PROCESS) 81 82#under: $$@.o $(UNDEROBJS) 83# $(LINK.c) -o $@ $@.o $(UNDEROBJS) $(LDLIBS) 84# 85#where: $(WHEREOBJS) 86# $(LINK.c) -o $@ $(WHEREOBJS) $(LDLIBS) 87# 88install: all $(ROOTREXDPROG) $(ROOTONPROG) $(ROOTMANIFEST) 89 90$(ROOTREXD): rpc.rexd 91 $(INS.dir) 92$(ROOTON): on 93 $(INS.dir) 94 95check: $(CHKMANIFEST) 96 97clean: 98 $(RM) $(OBJS) $(CLEANOBJS) $(PROG) 99 100lint: lint_SRCS 101 102include ../Makefile.targ 103 104# derived source files and explicit dependencies 105 106#rex_xdr.o \ 107#rex_svc.o \ 108#rex_clnt.o: rex.h rex.c 109# $(LINK.c) -c -o $@ rex.c 110 111on.o: rex.h 112 113rpc.rexd.o: rex.h 114 115unix_login.o: rex.h 116 117rex.o: rex.h 118