# Agent Tcl
# Bob Gray
# 24 June 1995
#
# This Makefile compiles the TCP/IP Tcl extension.
#
# Copright 1995, Robert S. Gray, Department of Computer Science, Dartmouth College

  # force the use of the Bourne shell of machines such as SGI's

SHELL		= /bin/sh

  # objects and switches

LIB_OBJS 	= tclTcpip.o tclTcpipCmd.o 
CC_SWITCHES 	= $(CFLAGS) $(INCLUDE_DIR)

all: libtcpip.a

libtcpip.a: $(LIB_OBJS)
	rm -f libtcpip.a
	ar cr libtcpip.a $(LIB_OBJS) 
	$(RANLIB) libtcpip.a

.SUFFIXES: .cc

.cc.o:
	$(CC) $(CFLAGS) -c $< $(INCLUDE_DIR)

clean:
	rm -f *.o a.out core

superclean: clean
	rm -f libtcpip.a

depend:
	makedepend -- $(CC_SWITCHES) -- *.cc

# DO NOT DELETE THIS LINE -- make depend depends on it
