SRC = main.d interfaces.d lex.d
OPT = -unittest
INCLUDE = -I.. -I..\opengl -I..\sdl
LIB = ..\hdk\hdk.lib

coneneko.exe : $(SRC) makefile
	dmd -ofconeneko.exe $(SRC) $(OPT) $(INCLUDE) $(LIB)

run : coneneko.exe sdl.dll sdl_ttf.dll
	coneneko.exe

clean :
	del *.map
	del *.obj
	del *.exe
	del *.dll

sdl.dll : ..\sdl\sdl.dll
	copy ..\sdl\sdl.dll .

sdl_ttf.dll : ..\sdl\sdl_ttf.dll
	copy ..\sdl\sdl_ttf.dll .


ZIP_ENCODER = C:\rootdir\src\tool\7-zip32.exe
coneneko.zip : coneneko.exe sdl.dll sdl_ttf.dll
	$(ZIP_ENCODER) a -tzip coneneko.zip *.exe *.dll *.txt makefile script *.rj *.mmz
