# set compiler used for builing program
# you must "add jdk12" for this program to compile
JC	= javac 

# paths to class files:
KALTOFEN = /afs/eos.ncsu.edu/users/k/kaltofen
ERICH = C:\\cygwin/home/erich
CLASSPATH = $(ERICH)/www/courses/Languages/

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

test_prof2.class:	
	$(JC) $(JOPTS) PROF.java PROFLIST2.java test_prof2.java

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

# run the program with the proper CLASSPATH (note . is for test_prof)
test_prof_cygwin:	test_prof2.class PROF.class PROFLIST2.class
	java -classpath .\;$(CLASSPATH) test_prof2
test_prof_unix:
	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
