all:Out.htm Out-2.htm

Out.htm: main.exe Makefile
	echo '<meta charset="UTF-8"><pre>' >$@
	mono $< >> $@ 2>log

Out-2.htm: main-2.exe Makefile
	echo '<meta charset="UTF-8"><pre>' >$@
	mono $< >> $@ 2>log

main.exe:main.cs math.dll
	mcs $< -reference:math.dll

main-2.exe:main-2.cs math.dll
	mcs $< -reference:math.dll

math.dll: integrate.cs adapt3.cs
	mcs $^ -target:library -out:$@

clean:
	rm -f *.exe *.dll [Oo]ut* log*
