include ../Makefile.config

#
# This Makefile may need GNU make.
#

# e.g. on linux using -classpath will prohibit
# classes.zip/rt.zip from being used. So
# if your make accepts the following I would prefer
# that. What make do you use, if it is not working? (alph)
#COMPILE_FLAGS = -classpath ../../..:$(CLASSPATH)
CLASSPATH := ../../../..:$(CLASSPATH)
JAVAC = $(JC) $(COMPILE_FLAGS)

OBJ =  \
	HttpServletRequestWrapper.class \
	HttpServletResponseWrapper.class \
	JspWriterImpl.class \
	RequestDispatcherImpl.class \
	ServletConfigWrapper.class \
	ServletContextWrapper.class \
	ServletOutputStreamImpl.class

default	: $(OBJ)

jar: $(OBJ)
	cd .. \
	&& make jar

.SUFFIXES: .class .java

.java.class :
	$(JAVAC) $<

.PHONY	: clean

clean:
	@rm -f *.class
