Mercurial > hg > demos > krapula
annotate 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 |
rev | line source |
---|---|
36 | 1 # |
2 # Generic Windows cross-compilation with MinGW suite @ Linux | |
3 # (included from Makefile.w32/w64) | |
4 # | |
5 | |
6 DMLIB = ./dmlib/ | |
7 | |
8 # C-compiler, flags and linker flags | |
9 CC=$(MINGW_PREFIX)gcc | |
10 AR=$(MINGW_PREFIX)ar | |
11 RANLIB=$(MINGW_PREFIX)ranlib | |
12 RM=rm | |
13 | |
14 SDL_CFLAGS=`$(MINGW_PATH)/bin/sdl-config --cflags` | |
15 SDL_LDFLAGS=`$(MINGW_PATH)/bin/sdl-config --libs` -lSDL -L$(BINPATH) | |
16 | |
17 #CFLAGS=-mwindows | |
18 LDFLAGS=-lmingw32 -s | |
19 | |
20 include $(DMLIB)Makefile.gen |