Mercurial > hg > dmlib
annotate Makefile.w32 @ 424:e88b2993801c
Fix build for Win32.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 03 Nov 2012 08:21:29 +0200 |
parents | e1b6aa3017c2 |
children | a9d0d35476ae |
rev | line source |
---|---|
0 | 1 # |
2 # For win32 version cross-compilation with MinGW suite @ Linux | |
3 # | |
4 MINGW_PREFIX=i686-w64-mingw32- | |
5 MINGW_PATH=/usr/i686-w64-mingw32 | |
6 | |
1
6e169d87d963
Improve buildsystem to support more flexible builds.
Matti Hamalainen <ccr@tnsp.org>
parents:
0
diff
changeset
|
7 DMLIB = ./ |
0 | 8 BINPATH=./exe/ |
9 OBJPATH=./win32/ | |
10 EXEEXT=.exe | |
11 | |
12 # C-compiler, flags and linker flags | |
13 CC=$(MINGW_PREFIX)gcc | |
14 AR=$(MINGW_PREFIX)ar | |
15 RANLIB=$(MINGW_PREFIX)ranlib | |
16 RM=rm | |
17 | |
18 SDL_CFLAGS=`$(MINGW_PATH)/bin/sdl-config --cflags` | |
19 SDL_LDFLAGS=`$(MINGW_PATH)/bin/sdl-config --libs` -lSDL -L$(BINPATH) | |
424 | 20 |
112
e1b6aa3017c2
Add Tremor stuff to default Makefiles.
Matti Hamalainen <ccr@tnsp.org>
parents:
1
diff
changeset
|
21 TREMOR_CFLAGS=-I$(MINGW_PATH)/include/tremor |
e1b6aa3017c2
Add Tremor stuff to default Makefiles.
Matti Hamalainen <ccr@tnsp.org>
parents:
1
diff
changeset
|
22 TREMOR_LDFLAGS=$(MINGW_PATH)/lib/libvorbisidec.a $(MINGW_PATH)/lib/libogg.a |
0 | 23 |
424 | 24 LIBPNG_CFLAGS=-I$(MINGW_PATH)/include |
25 LIBPNG_LDFLAGS=$(MINGW_PATH)/lib/libpng.a | |
26 | |
27 ZLIB_CFLAGS= | |
28 ZLIB_LDFLAGS=$(MINGW_PATH)/lib/libz.a | |
29 | |
0 | 30 #CFLAGS=-mwindows |
31 LDFLAGS=-lmingw32 -s | |
32 | |
33 | |
1
6e169d87d963
Improve buildsystem to support more flexible builds.
Matti Hamalainen <ccr@tnsp.org>
parents:
0
diff
changeset
|
34 include $(DMLIB)Makefile.gen |