# $Header: /cluster21/kennykb/src/tclTCP.1.0beta/RCS/Makefile,v 1.6 1992/05/05 18:27:19 kennykb Exp $
# $Source: /cluster21/kennykb/src/tclTCP.1.0beta/RCS/Makefile,v $
# $Log: Makefile,v $
# Revision 1.6  1992/05/05  18:27:19  kennykb
# Changed to use symbolic names for the libraries, allowing them to be
# in non-standard places.
#
# Revision 1.5  1992/03/12  14:28:04  kennykb
# Added 1.0-beta files to the distribution list.
#
# Revision 1.4  1992/03/04  20:02:19  kennykb
# Added dependencies for the variant versions of simpleEvent.
#
# Revision 1.3  1992/02/20  16:20:28  kennykb
# Made changes to separate the event manager from the TCP-IP support.
#
# Revision 1.2  1992/02/14  20:00:10  kennykb
# Fixed a typo in `make clean'
#
# Revision 1.1  1992/02/14  19:57:51  kennykb
# Initial revision
#

#  Copyright (C) 1992 General Electric. All rights reserved.

#  Permission to use, copy, modify, and distribute this
#  software and its documentation for any purpose and without
#  fee is hereby granted, provided that the above copyright
#  notice appear in all copies and that both that copyright
#  notice and this permission notice appear in supporting
#  documentation, and that the name of General Electric not be used in
#  advertising or publicity pertaining to distribution of the
#  software without specific, written prior permission.
#  General Electric makes no representations about the suitability of
#  this software for any purpose.  It is provided "as is"
#  without express or implied warranty.

#  This work was supported by the DARPA Initiative in Concurrent
#  Engineering (DICE) through DARPA Contract MDA972-88-C-0047.

CC	= cc
CFLAGS	= -g
LDFLAGS	= 

# The next line allows for a local copy of the repaired tkEvent.c code
# Comment it out if you install the fixes to tkEvent.c in a standard place.

TKFIXES = tkEvent.o
TCLLIB = -ltcl
TKLIB = -ltk
X11LIB = -lX11

all:	tclTCP.o simpleEvent.o simpleEvent_Tk.o simple wish

clean:
	rm -f wish main.o simple simple.o tclTCP.o \
		simpleEvent.o simpleEvent_Tk.o \
		$(TKFIXES) core

distrib:
	tar cvf ../tclTCP.tar ./README ./Makefile ./simple.c ./main.patch \
		./tclTCP.h ./tclTCP.c \
		./bgerror.man ./tcp.man ./simpleEvent.man \
		./simpleEvent.h ./simpleEvent.c \
		./simpleEvent_Xt.c ./simpleEvent_Tk.c \
		./tkEvent.patch ./demos

simple:	simple.o tclTCP.o simpleEvent.o
	$(CC) -o simple simple.o tclTCP.o simpleEvent.o $(LDFLAGS) \
		$(TCLLIB) -lm

wish:	main.o tclTCP.o simpleEvent_Tk.o $(TKFIXES)
	$(CC) -o wish $(CFLAGS) $(LDFLAGS) main.o tclTCP.o simpleEvent_Tk.o \
		$(TKFIXES) $(TKLIB) $(X11LIB) $(TCLLIB) -lm

simpleEvent_Tk.o: simpleEvent.c
simpleEvent_Xt.o: simpleEvent.c
