#makefile for sdlsimple
prefix = /usr/local

all:	SdlSimple.dll

install:
	mkdir -p dlls
	cp GetEventType.dll GetJaxisValue.dll SdlSimple.dll Tao.Sdl.dll dlls/

test: example.fsx SdlSimple.dll
	fsc example.fsx

SdlSimple.dll: GetEventType.dll GetJaxisValue.dll SdlSimple.fsx
	fsc -a SdlSimple.fsx

GetEventType.dll: GetEventType.cs
	mcs GetEventType.cs -t:library -r:Tao.Sdl.dll

GetJaxisValue.dll: GetJaxisValue.cs
	mcs GetJaxisValue.cs -t:library -r:Tao.Sdl.dll

clean:
	clear
	rm -Rf dlls/
	rm example.exe GetJaxisValue.dll GetEventType.dll SdlSimple.dll

