# $Id: GNUmakefile,v 1.6 1994/04/05 16:46:34 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: Tue Apr  5 19:46:05 1994 too
#
# $Log: GNUmakefile,v $
# Revision 1.6  1994/04/05  16:46:34  too
# Removed inet-handler/inet-handler.h and .../inet-handler.rev
#
# Revision 1.5  1993/11/27  14:28:59  too
# Added new target LHA to make easily downloadable archive for inet-handler
# sources
#
# Revision 1.4  1993/11/27  14:16:39  too
# fixed release macros
#
# Revision 1.3  1993/11/19  13:35:11  too
# Removed timer.h (now obsolete) from distribution
#
# 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/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/system_includes.h \
		inet-handler/socketbase_in_context.h \
		inet-handler/util.c inet-handler/util.h

LSRC = $(GENERIC) $(INETHANDLER)

LHA: $(LSRC)
	lha a inet-handler.lha $(LSRC)

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 '$$Id' >/dev/null ; \
	      then rcs -q '-N$(RELEASE):$$' $$F ; \
	      else rcs -q '-N$(RELEASE):' $$F ;\
	    fi ; \
          } ;\
	done



