#
# Makefile for testtool Java implementation.
#

# CSC 206 java lib directory
LIB206 = /home/gfisher/classes/206/lib/JVM

# Directory for generated executable files
# EXECUTABLES =	../../executables/JVM

# Files to compile
FILES = \
     testtool/Editing/*.java \
     testtool/Grade/*.java \
     testtool/Main/*.java \
     testtool/Question/*.java \
     testtool/QuestionBank/*.java \
     testtool/StudentTesting/*.java \
     testtool/Test/*.java \
     testtool/TestGen/*.java 

# List of packages, for printing purposes.
PACKAGES = \
     testtool.Editing \
     testtool.Grade \
     testtool.Main \
     testtool.Question \
     testtool.QuestionBank \
     testtool.StudentTesting \
     testtool.Test \
     testtool.TestGen 

# Run the Java compiler on all of the files.
all:	$(FILES)
#	echo $(FILES)
	javac -g $(FILES) \
         -classpath $(LIBRARIES) \
         -d $(EXECUTABLES) \
#        cd $(EXECUTABLES);

# The preceding rule results in an executable program that is invoked as
# follows from the implementation/executables/JVM directory:
#
#	java testtool.Main
#
# The makefile in that dir has more information about altenate forms of java
# program invocation.


# Print source files in small-font, line-numbered, two-column format.
print: 
	csh -q -c ".make-print $(PACKAGES)"