MAKE=mingw32-make

all: config.make
	$(MAKE) -C src\zlib -f Makefile.windows all
	$(MAKE) -C src\sdl-instead all
	$(MAKE) -C themes -f Makefile.windows all

config.make:
	echo # you can define own flags here > config.make

clean:
	$(MAKE) -C src\sdl-instead clean
	$(MAKE) -C src\zlib -f Makefile.windows clean

install: all
	if not exist bin mkdir bin
	copy src\sdl-instead\sdl-instead.exe bin
	$(MAKE) -C themes -f Makefile.windows install
	$(MAKE) -C games -f Makefile.windows install
	$(MAKE) -C stead -f Makefile.windows install
	$(MAKE) -C icon -f Makefile.windows install
	$(MAKE) -C lang -f Makefile.windows install
	$(MAKE) -C doc -f Makefile.windows install
