test: PrintClient.exe
	mono --debug $<

run: PrintServer.exe
	mono --debug $<

IPrint.dll: IPrint.cs
	mcs -debug /t:library $<

PrintClient.exe: IPrint.dll PrintClient.cs
	mcs -debug /t:exe /r:IPrint.dll /r:System.Runtime.Remoting.dll PrintClient.cs

PrintServer.exe: IPrint.dll PrintServer.cs
	mcs -debug /t:exe /r:IPrint.dll /r:System.Runtime.Remoting.dll PrintServer.cs

clean:
	rm -f *.exe *.dll *.mdb

