Mercurial > hg > dmlib
view Makefile.w32 @ 2:9a8355b47e1c
Various improvements in the build system to add granularity
for building different parts of the engine and tools.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 28 Sep 2012 02:20:31 +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