DIR_PATH=./
CLASS=$(DIR_PATH)bhuffake/
TOOLS=$(CLASS)tools/
PLANKTON=$(CLASS)plankton/
IMAGE=$(CLASS)image/
LIST=$(CLASS)list/

RELEASE=$(DIR_PATH)../Release/
SOURCE=$(DIR_PATH)../Source/

Start:$(PLANKTON)Plankton.class

runit:Start
	java -mx128000000 bhuffake.plankton.Plankton

turnin:
	cp -r bhuffake $(RELEASE)
#	cp Data/*.fvl $(RELEASE)Data
	cp makefile $(SOURCE)
#	chmod +w $(SOURCE)*.java
	cp *.java $(SOURCE)
#	tar -cvf $(SOURCE)plankton.tar *.java makefile Data/*.fvl
	tar -cvf $(SOURCE)plankton.tar *.java makefile 
	tar -cvf $(RELEASE)plankton.tar bhuffake
	perl ../helpJava2helpHtml.pl > ../help.html	


$(PLANKTON)Plankton.class: $(PLANKTON)Display.class  \
  $(PLANKTON)PullDownMenu.class $(PLANKTON)IOInterface.class \
  $(PLANKTON)IOHandler.class $(PLANKTON)Format.class \
  $(PLANKTON)NameSearch.class $(PLANKTON)StepByStep.class \
  $(PLANKTON)HelpFrame.class $(PLANKTON)NameFilter.class \
  $(PLANKTON)URLDialog.class $(PLANKTON)FileInterface.class \
  $(PLANKTON)Animator.class $(TOOLS)GridPanel.class\
  Plankton.java
	javac -d $(DIR_PATH) Plankton.java

#--------------------------Animator Stuff

$(PLANKTON)Animator.class: $(PLANKTON)FilesSelect.class \
	$(TOOLS)GridPanel.class $(PLANKTON)DisplayInterface.class \
	Animator.java
	javac -d $(DIR_PATH) Animator.java

$(PLANKTON)DisplayInterface.class: DisplayInterface.java
	javac -d $(DIR_PATH) DisplayInterface.java

$(PLANKTON)FilesSelect.class: FilesSelect.java
	javac -d $(DIR_PATH) FilesSelect.java

$(TOOLS)GridPanel.class: GridPanel.java
	javac -d $(DIR_PATH) GridPanel.java

#------------------------- URLDialog Stuff

$(PLANKTON)URLDialog.class: $(PLANKTON)FileInterface.class URLDialog.java
	javac -d $(DIR_PATH) URLDialog.java

$(PLANKTON)FileInterface.class: FileInterface.java
	javac -d $(DIR_PATH) FileInterface.java

$(PLANKTON)NameFilter.class: NameFilter.java
	javac -d $(DIR_PATH) NameFilter.java

$(PLANKTON)NameSearch.class: NameSearch.java
	javac -d $(DIR_PATH) NameSearch.java

$(PLANKTON)StepByStep.class: StepByStep.java
	javac -d $(DIR_PATH) StepByStep.java

#-------------------------Pull Down Menu

$(PLANKTON)PullDownMenu.class: PullDownMenu.java
	javac -d $(DIR_PATH) PullDownMenu.java

#-------------------------- Format

$(PLANKTON)Format.class: $(PLANKTON)FormatInterface.class $(PLANKTON)Node.class\
	Format.java 
	javac -d $(DIR_PATH) Format.java

$(PLANKTON)FormatInterface.class: FormatInterface.java
	javac -d $(DIR_PATH) FormatInterface.java

#-------------------------- HelpFrame

$(PLANKTON)HelpFrame.class: HelpFrame.java
	javac -d $(DIR_PATH) HelpFrame.java

#-------------------------- IOHandler

$(PLANKTON)IOHandler.class: $(PLANKTON)IOInterface.class IOHandler.java
	javac -d $(DIR_PATH) IOHandler.java

$(PLANKTON)IOInterface.class: IOInterface.java
	javac -d $(DIR_PATH) IOInterface.java

#-------------------------- Display

$(PLANKTON)Display.class: $(TOOLS)StatusBar.class $(PLANKTON)Node.class \
	$(PLANKTON)Link.class $(PLANKTON)DList.class \
	$(PLANKTON)DisplayInterface.class $(TOOLS)Strings.class \
	$(IMAGE)WorldProducer.class $(PLANKTON)ColorMaskFrame.class \
	$(IMAGE)WorldProducerInterface.class \
	Display.java
	javac -d $(DIR_PATH) Display.java

$(PLANKTON)Link.class: $(PLANKTON)Node.class Link.java
	javac -d $(DIR_PATH) Link.java

$(PLANKTON)Node.class: $(PLANKTON)DList.class Node.java
	javac -d $(DIR_PATH) Node.java

$(PLANKTON)DList.class: $(PLANKTON)DisplayObject.class DList.java
	javac -d $(DIR_PATH) DList.java

$(PLANKTON)DisplayObject.class: DisplayObject.java
	javac -d $(DIR_PATH) DisplayObject.java

$(IMAGE)WorldProducer.class: $(LIST)MyList.class \
	$(IMAGE)WorldProducerInterface.class \
	WorldProducer.java
	javac -d $(DIR_PATH) WorldProducer.java

$(IMAGE)WorldProducerInterface.class: WorldProducerInterface.java
	javac -d $(DIR_PATH) WorldProducerInterface.java

$(LIST)MyList.class: MyList.java
	javac -d $(DIR_PATH) MyList.java

#------------------------- Color Stuff

$(PLANKTON)ColorMaskFrame.class: $(TOOLS)GridPanel.class \
        ColorMaskFrame.java
	javac -d $(DIR_PATH) ColorMaskFrame.java

#------------------------- Status Bar

$(TOOLS)StatusBar.class: StatusBar.java
	javac -d $(DIR_PATH) StatusBar.java

#--------------------------Strings

$(TOOLS)Strings.class: Strings.java
	javac -d $(DIR_PATH) Strings.java
