# $Id: GNUmakefile,v 1.7 1993/11/12 00:35:00 ppessi Exp jraja $
# 
# GNUmakefile for AmiTCP/IP network support 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      : Sat Mar 20 02:44:57 1993 ppessi
# Last modified: Fri Nov 12 03:00:59 1993 jraja
#

MAKE = gmake

RM= delete
RM_RECURSIVE= delete all
MKDIR= makedir
CC= sc

DIST_LIB = $(DIST)/netlib

CFLAGS= 

LD= 

NETLIBSRC= errlst.c autoinit.c dummy.c lineread.c \
	getopt.c gethostname.c printfault.c \
	getpasswdent.c getgroupent.c userparsing.c \
	timerinit.c gettimeofday.c

SANA2LIBSRC= sana2perror.c sana2errlist.c sana2printfault.c

LIBSRC= $(NETLIBSRC) $(SANA2LIBSRC) autoinitd.c serveraccept.c

SRCS=   $(LIBSRC) GNUmakefile Smakefile 

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)
