# Make file for cmds/libc/rpc directory
#
# Things you might want to change.  Pass them in on the command line:
# ROOT - should point to the root where the commands will be installed
#        (e.g. /deliver/NFS/indnetwk)

ROOT=

PRODUCTS= 

OBJS= auth_des.o authdes_prot.o authux_pro.o key_call.o \
	key_prot.o netname.o openchild.o rtime.o rpc_prot.o svc.o \
	svc_auth.o svcauth_des.o svc_authux.o xdr.o xdr_array.o xdr_mem.o \
	auth_none.o auth_unix.o bdresvport.o clnt_gen.o \
	clnt_perr.o clnt_raw.o clnt_simpl.o clnt_tcp.o clnt_udp.o \
	pmap_clnt.o pmap_maps.o pmap_port.o pmap_prot.o pmap_rmt.o \
	svc_raw.o svc_simple.o svc_tcp.o svc_udp.o rpc_data.o \
	xdr_float.o xdr_rec.o xdr_refer.o xdr_stdio.o rpc_alloc.o xdr_fh.o

CCFLAGS= $(CFLAGS)

TARGETS = ../libc.a

#Install database name
INSTALLDB=/source/NFS/$(LOGNAME)/config/installdb

#Script called to parse the install deliverable
INSTALLSCPT=/source/NFS/$(LOGNAME)/config/install_script

# Defaults file containing the shell, compiler options, etc
BUILDRULES=/source/NFS/$(LOGNAME)/config/defaults

include ${BUILDRULES}

#Commands used by this Makefile
CP=/usr/bin/cp
MV=/usr/bin/mv
CHMOD=/usr/bin/chmod

default: all

all: clean build install

clean:
	$(RM) -f *.o 

build: rpc.libc 

rpc.libc: $(TARGETS)

$(TARGETS):  $(OBJS)
	$(CP) $(TARGETS) ../libc.tmp
	$(MV) -f ../libc.tmp $(TARGETS)
	$(CHMOD) u+w $(TARGETS)
	$(ECHO) "adding to $(TARGETS)"
	ar r $(TARGETS) $(OBJS)
	$(CHMOD) 664 $(TARGETS)
.c.o:
	$(CC) $(CCFLAGS) -c $<

install:
