#name/location of java compiler JAVAC=javac #javac options #JAVACOPTIONS= -g:none -O JAVACOPTIONS= -deprecation -g:lines #complete compilation JAVACOMPILE=$(JAVAC) $(JAVACOPTIONS) #make a .class file from a .java file %.class: %.java $(JAVAC) $(JAVACOPTIONS) $< CLASSFILES= Server.class\ Collection.class\ Document.class\ Query.class all: $(CLASSFILES) clean: rm -f *.class