Mercurial > hg > dmlib
diff Makefile.w32 @ 0:32250b436bca
Initial re-import.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 28 Sep 2012 01:54:23 +0300 |
parents | |
children | 6e169d87d963 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Makefile.w32 Fri Sep 28 01:54:23 2012 +0300 @@ -0,0 +1,24 @@ +# +# For win32 version cross-compilation with MinGW suite @ Linux +# +MINGW_PREFIX=i686-w64-mingw32- +MINGW_PATH=/usr/i686-w64-mingw32 + +BINPATH=./exe/ +OBJPATH=./win32/ +EXEEXT=.exe + +# 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 Makefile.gen