# ICARUS
# Bob Gray
# 9 February 1995
#
# This file is the Makefile for the "agent server".
#
# Copyright 1995, Robert S. Gray, Department of Computer Science, Dartmouth

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

SHELL		= /bin/sh

  # objects and switches
 
CC_SWITCHES	= $(CFLAGS) $(INCLUDE_DIR)
LIBS		= $(BUILTIN_LIBS)
OBJS		= agent_data.o agentd.o interp.o parse.o piped.o \
		  socketd.o tcl_receive.o tcl_run.o \
		  ../utility/libutility.a

all: $(SERVER_NAME)

$(SERVER_NAME): $(OBJS) 
	$(CC) $(CFLAGS) -o $(SERVER_NAME) $(OBJS) $(LIBS)

.SUFFIXES: .cc

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

# force a remake of socketd.o since it depends on the PORT

agentd.o: dummy

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

superclean: clean
	rm -f $(SERVER_NAME)

dummy:

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

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