# $Id: GNUmakefile,v 1.2 1993/11/17 13:45:43 too Exp $
#
# GNUmakefile for AmiTCP/IP device handlers
#
# Copyright  1993 AmiTCP/IP Group, <amitcp-group@hut.fi>
#                  Helsinki University of Technology, Finland.
#                  All rights reserved.
#
# Created      : Wed Nov 17 14:31:11 1993 too (original: ppessi)
# Last modified: Wed Nov 17 15:41:28 1993 too
#
# $Log: GNUmakefile,v $
# Revision 1.2  1993/11/17  13:45:43  too
# Some macro name fixes after first test I could make
#
# Revision 1.1  1993/11/17  12:47:39  too
# Initial revision
#

DIST_L = $(DIST)/l

GENERIC = GNUmakefile
#
# inet-handler compiled with gcc
#

INETHANDLER =	inet-handler/Makefile inet-handler/applport.c \
		inet-handler/applport.h inet-handler/args.c \
		inet-handler/args.h inet-handler/c.c \
		inet-handler/c.h inet-handler/cleanup.c \
		inet-handler/cleanup.h inet-handler/debug.h \
		inet-handler/dirindex.h inet-handler/global.h \
		inet-handler/handler.c inet-handler/handler.h \
		inet-handler/handler/begin.c \
		inet-handler/handler/startup.c \
		inet-handler/handler/pendingwrites.c \
		inet-handler/handler/readevent.c \
		inet-handler/handler/applmsg.c \
		inet-handler/handler/timermsg.c \
		inet-handler/handler/mymsg.c \
		inet-handler/handler/cleanup.c \
		inet-handler/inet-handler.c inet-handler/inet-handler.h \
		inet-handler/inet-handler.rev inet-handler/inl_dos.h \
		inet-handler/inl_exec.h inet-handler/inl_socket.h \
		inet-handler/interrupt.c inet-handler/interrupt.h \
		inet-handler/muldiv.h inet-handler/readargs.c \
		inet-handler/readargs.h inet-handler/runstart.c \
		inet-handler/runstart.h inet-handler/socketbase_in_context.h \
		inet-handler/system_includes.h inet-handler/timer.h \
		inet-handler/util.c inet-handler/util.h

LSRC = $(GENERIC) $(INETHANDLER)

DIST: $(LSRC)
	test -d $(DIST) || mkdir $(DIST) 
	test -d $(DIST_L) || mkdir $(DIST_L)
	tar cf - $(LSRC) | (cd $(DIST_L); tar xf -)

RELEASE: $(LSRC)
	for F in $(LSRC) ; 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
