CSC=mcs
CSCFLAGS= $(REFS) /define:MONO
REFERENCES= System.Web System.Drawing

# 

REFS= $(addsuffix .dll, $(addprefix /r:, $(REFERENCES)))

SOURCES = asp-parser.cs \
	  asp-tokenizer.cs \
	  aspelements.cs \
	  driver.cs \
	  generator.cs

all: xsp.exe subdirs

subdirs:
	$(MAKE) -C HttpServer

xsp.exe: $(SOURCES)
	$(CSC) $(CSCFLAGS) /out:$@ $^

clean:
	$(MAKE) -C HttpServer clean
	rm -f xsp.exe *~ *.pdb 

