# Build all the renderer client programs in this directory.
# Use
#     .\make.exe
#
JAVA  = C:\Program Files\Java\jdk1.7.0_51\bin
JAVAC = $(JAVA)\javac.exe
JARS = SceneRenderLib.jar;SceneLib.jar;ShapeLib.jar
JAVAFLAGS = -g -Xlint -cp .;$(JARS)
RM = cmd /c del
#RM = rm -f

# This special target is needed because class is not a "known suffix" in Unix.
.SUFFIXES: .java .class

.PHONY: all clean

# Use a simple suffix rule to compile any java file.
# See Section 11.7 of "GNU Make Manual"
# 08 July 2002, GNU make Version 3.80.
.java.class:
	$(JAVAC) $(JAVAFLAGS)  $<

# See Section 5.4.3 of "GNU Make Manual"
# 08 July 2002, GNU make Version 3.80.
all: $(patsubst %.java,%.class,$(wildcard *.java))

# delete only the files that we made
clean:
	${RM} *.class
	${RM} *.ppm