# set compiler used for builing program
# you must "add jdk" and "make CLASSPATH" for this program to compile
JC	= javac 

# paths to class files:

# JGL:
KALTOFEN = /afs/eos.ncsu.edu/users/k/kaltofen
JAVAEXAMPLES = $(KALTOFEN)/www/courses/Languages/JavaExamples
JGLPATH = $(JAVAEXAMPLES)/jgl3.1.0/lib/jgl3.1.0.jar

# Java:
# must do "add jdk" for this to work
JAVAPATH = /afs/bp.ncsu.edu/contrib/jdk117/java/lib/class.zip

CLASSPATH = .:$(JGLPATH)

# sun options
JDKOPTS	= -g -classpath $(CLASSPATH)
JOPTS  = $(JDKOPTS)

test_prof.class:	test_prof.java
	$(JC) $(JOPTS) test_prof.java

# run the program with the proper CLASSPATH
test_prof:
	java -classpath $(CLASSPATH) test_prof

test_prof.ps:	test_prof.java
	a2ps -v --columns=1 -f 16 --no-header --borders no \
             --landscape --output=test_prof.ps test_prof.java

PROF.ps:	PROF.java
	a2ps -v --columns=1 -f 16 --no-header --borders no \
             --landscape --output=PROF.ps PROF.java

PROFLIST.ps:	PROFLIST.java
	a2ps -v --columns=1 -f 16 --no-header --borders no \
             --landscape --output=PROFLIST.ps PROFLIST.java

clean:
	/bin/rm -f *.class *.ps *.html
