# Agent Tcl
# Bob Gray
# 8 September 1995
#
# This Makefile compiles the "librestrict.a" library.
#
# Copyright 1995, Robert S. Gray, Department of Computer Science, Dartmouth

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

SHELL		= /bin/sh

  # objects and switches

LIBS		= $(BUILTIN_LIBS)
LIB_OBJS	= tclRestrict.o tclRestrictCmd.o
CC_SWITCHES	= $(CFLAGS) $(INCLUDE_DIR)

all: librestrict.a 

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

.SUFFIXES: .cc

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

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

superclean: clean
	rm -f librestrict.a

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

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