# May 22 1996
# Rob Frost
# Makefile for the version 0.3 Java Agent Template
#
# Copyright (c) 1995, H. Robert Frost, Stanford University.
# All rights reserved.
# Copyright (c) 1996, H. Robert Frost, Enterprise Integration Technologies,
# Inc. All rights reserved.

# Define the classes including package name.
#

CLASSES= JavaAgent/context/ContextParams JavaAgent/context/AgentContext			\
	 JavaAgent/context/AgentFrame							\
	 JavaAgent/context/SocketContext JavaAgent/context/ContextInterface		\
	 JavaAgent/context/ANSContext JavaAgent/context/AgentApplet			\
	 JavaAgent/context/ANSApplet JavaAgent/context/InterfacePanel			\
	 JavaAgent/context/ComposeMessagePanel JavaAgent/context/ViewMessagePanel	\
	 JavaAgent/context/LoadMessagePanel JavaAgent/context/ViewResourcePanel		\
	 JavaAgent/context/LoadResourcePanel JavaAgent/context/RuntimeParams		\
	 JavaAgent/context/SocketParams JavaAgent/context/SystemMessagesPanel		\
	 JavaAgent/agent/AgentParams JavaAgent/agent/Agent JavaAgent/agent/ANS		\
	 JavaAgent/agent/FileIO	JavaAgent/agent/CommInterface				\
	 JavaAgent/agent/SocketInterface JavaAgent/agent/NetworkClassLoader		\
	 JavaAgent/agent/ResourceManager JavaAgent/agent/ANSResourceManager		\
 	 JavaAgent/agent/MessageHandler	 JavaAgent/agent/ANSMessageHandler		\
	 JavaAgent/agent/MessageBuffer JavaAgent/agent/TransmitterThread		\
	 JavaAgent/agent/ReceiverThread							\
	 JavaAgent/resource/Resource JavaAgent/resource/NullResource			\
	 JavaAgent/resource/RetrievalResource JavaAgent/resource/Classes		\
	 JavaAgent/resource/Addresses JavaAgent/resource/Languages			\
	 JavaAgent/resource/Interpreters JavaAgent/resource/Interpreter		\
	 JavaAgent/resource/AgentInterpreter JavaAgent/resource/Language			\
	 JavaAgent/resource/KQMLmessage JavaAgent/resource/AgentAddress			\
	 JavaAgent/resource/SocketAddress JavaAgent/resource/FileLocation		\
	 JavaAgent/resource/ResourceException					\
	 JavaAgent/resource/InterpretationException test/TestInterpreter

all: classes

SRC=${CLASSES:%=%.java}
OBJ=${SRC:%.java=%.class}
TEMP_SRC=${SRC:%.java=%.java*~}
TEMP_OBJ=${OBJ:%.class=%.class~}

classes: $(OBJ)

rmtemp:
	rm -f $(TEMP_SRC); rm -f $(TEMP_OBJ)
 
clean:
	rm -f $(OBJ)

SUFFIXES = .java .class $(SUFFIXES)

%.class: %.java
	javac $<

