view Makefile.w32 @ 96:6bf5220fa47e

Urgh .. use memset to silence some bogus GCC warnings about using potentially uninitialized values, while that will not actually be possible. In any case, it is annoying.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 02 Oct 2012 18:52:28 +0300
parents 6e169d87d963
children e1b6aa3017c2
line wrap: on
line source

#
# For win32 version cross-compilation with MinGW suite @ Linux
#
MINGW_PREFIX=i686-w64-mingw32-
MINGW_PATH=/usr/i686-w64-mingw32

DMLIB = ./
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 $(DMLIB)Makefile.gen