#
# Makefile for grader1 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 = \
     grader1/GradePrediction/*.java \
     grader1/GradeTable/*.java \
     grader1/Main/*.java \
     grader1/PieChart/*.java \
     grader1/class/*.java \
     grader1/gradebook/*.java \
     grader1/gradebookbinh/*.java \
     grader1/histogram/*.java \
     grader1/item/*.java \
     grader1/student/*.java 

# List of packages, for printing purposes.
PACKAGES = \
     grader1.GradePrediction \
     grader1.GradeTable \
     grader1.Main \
     grader1.PieChart \
     grader1.class \
     grader1.gradebook \
     grader1.gradebookbinh \
     grader1.histogram \
     grader1.item \
     grader1.student 

# 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 grader1.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)"