diff Makefile.gwin @ 36:d17d31b736c2

Improve build system.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 04 Oct 2012 06:47:16 +0300
parents
children 9cbb03e85597
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Makefile.gwin	Thu Oct 04 06:47:16 2012 +0300
@@ -0,0 +1,20 @@
+#
+# Generic Windows cross-compilation with MinGW suite @ Linux
+# (included from Makefile.w32/w64)
+#
+
+DMLIB = ./dmlib/
+
+# C-compiler, flags and linker flags
+CC=$(MINGW_PREFIX)gcc
+AR=$(MINGW_PREFIX)ar
+RANLIB=$(MINGW_PREFIX)ranlib
+RM=rm
+
+SDL_CFLAGS=`$(MINGW_PATH)/bin/sdl-config --cflags`
+SDL_LDFLAGS=`$(MINGW_PATH)/bin/sdl-config --libs` -lSDL -L$(BINPATH)
+
+#CFLAGS=-mwindows
+LDFLAGS=-lmingw32 -s
+
+include $(DMLIB)Makefile.gen