# set compiler used for builing program
JC	= javac
# jdk options
JDKOPTS	= -g
# options for Java compiler
JOPTS  = $(JDKOPTS)
test_stack.class:	test_stack.java array_stack.class stack.class
	$(JC) $(JOPTS) test_stack.java
test_stack.ps:     test_stack.java
	a2ps -v --columns=1 -f 16 --no-header --borders no \
             --landscape --output=test_stack.ps test_stack.java
stack.class:	stack.java
	$(JC) $(JOPTS) stack.java
stack.ps:     stack.java
	a2ps -v --columns=1 -f 16 --no-header --borders no \
             --landscape --output=stack.ps stack.java
array_stack.class:	stack.class array_stack.java
	$(JC) $(JOPTS) array_stack.java
array_stack.ps:     array_stack.java
	a2ps -v --columns=1 -f 16 --no-header --borders no \
             --landscape --output=array_stack.ps array_stack.java
clean:
	/bin/rm -f *.class *.ps *.html
all:	test_stack.class stack.class array_stack.class
	echo "Done!"
