# Sample Makefile for Java programs (a very simple one).
# by Tom Hayes, for Summer 2001 CSPP 535 class.
# Lines beginning with "#" are comments.

# You can modify these to change the compiler and/or compile options
JAVAC=javac
JFLAGS=-deprecation

# Change the next line to list all the programs to be compiled by default.
# Note: javac is smart enough to automatically recompile everything which
# SquarePuzzleApp depends on, if they appear to have been modified since
# the previous time.
all : SquarePuzzleApp

SquarePuzzleApp : SquarePuzzleApp.class
SquarePuzzle : SquarePuzzle.class

%.class : %.java
	$(JAVAC) $(JFLAGS) $<

# For convenience, there are some "cleanup" targets.
# Run by typing "make clean" or "make realclean".
# Mostly unneeded, unless your file timestamps get messed up.
clean :
	rm -f *.class core

realclean :
	rm -f *.class core *~ #*#

