# cheap makefile wrapper.

         TARGETS = dwitvs.exe hogwagen.exe 3d.exe randomname.exe

message:
	@echo "-----------------------------------------------------------------------"
	@echo "#demoscene 4k source compo makefile.                                   "
	@echo "-----------------------------------------------------------------------"
	@echo "Please use on of the following targets when running make:              "
	@echo "                                                                       "
	@echo "win32    - builds the win32 executables using msys/mingw.              "
	@echo "           WARNING: this is only provided for completeness,...         "
	@echo "           it has not been tested at all, so be prepared to play       "
	@echo "           with the makefile a bit to get it working.                  "
	@echo "                                                                       "
	@echo "cross    - cross builds the win32 executables using a mingw32 running  "
	@echo "           in a non-native environment.                                "
	@echo "                                                                       "

win32:
	$(MAKE) -C build.win32


PREFIX=/usr/local/cross-tools
TARGET=i386-mingw32msvc
CROSS_PATH=$(PREFIX)/bin:$(PREFIX)/$(TARGET)/bin

cross:
	PATH=$(CROSS_PATH):$(PATH) && $(MAKE) -f Makefile.cross

clean:
	$(RM) $(TARGETS)
