# $Id: GNUmakefile,v 1.1 1994/03/09 08:55:54 jraja Exp $
# 
# GNUmakefile for AmiTCP/IP Sun RPC 4.0 library 
#
# Authors: ppessi <Pekka.Pessi@hut.fi>
#          jraja  <Jarno.Rajahalme@hut.fi>
#	   too    <Tomi.Ollila@cs.hut.fi>
#	   puhuri <Markus.Peuhkuri@hut.fi>
#
# Copyright  1993 AmiTCP/IP Group, <amitcp-group@hut.fi>
#                  Helsinki University of Technology, Finland.
#		   All rights reserved. 
#
# Created      : Wed Mar  9 10:43:16 1994 jraja
# Last modified: Wed Mar  9 10:55:39 1994 jraja
#

MAKE = gmake

RM= delete
RM_RECURSIVE= delete all
MKDIR= makedir

DIST_LIB = $(DIST)/rpclib

RPCLIBSRC= Smakefile auth_none.c auth_unix.c authunix_prot.c \
	bindresvport.c chkabort.c clnt_generic.c \
	clnt_perror.c clnt_raw.c clnt_simple.c clnt_tcp.c \
	clnt_udp.c get_myaddress.c getrpcent.c getrpcport.c \
	gst.c pmap_clnt.c pmap_getmaps.c pmap_getport.c \
	pmap_prot.c pmap_prot2.c pmap_rmt.c rpc_callmsg.c \
	rpc_commondata.c rpc_dtablesize.c rpc_prot.c svc.c \
	svc_auth.c svc_auth_unix.c svc_raw.c svc_run.c \
	svc_simple.c svc_tcp.c svc_udp.c xdr.c \
	xdr_array.c xdr_float.c xdr_mem.c xdr_rec.c \
	xdr_reference.c xdr_stdio.c

SRCS=   $(RPCLIBSRC) GNUmakefile DISCLAIMER

all: 

DIST: $(DIST_LIB)

$(DIST_LIB): $(SRCS)
	test -d $(DIST) || mkdir $(DIST) 
	test -d $(DIST_LIB) || mkdir $(DIST_LIB)
	tar cf - $(SRCS) | (cd $(DIST_LIB); tar xf -)

RELEASE: $(SRCS)
	for F in $(SRCS) ; do \
	  rlog -R $$F && { \
	    if ident -q $$F | fgrep '$$' >/dev/null ; \
	      then rcs -q '-N$(RELEASE):$$' $$F ; \
	      else rcs -q '-N$(RELEASE):' $$F ;\
	    fi ; \
          } ;\
	done

locks:
	@rlog -R -L $(SRCS)
mylocks:
	@rlog -R -l`whoami` -L $(SRCS)
verlocks:
	@rlog -h -L $(CSRCS)

