Mercurial > hg > nnchat
comparison Makefile.w32 @ 533:52c56ada3816
Fix Win32/MinGW cross-compilation target to work with Debian's gcc-mingw-w64
package, thus upgrading to a new version of MinGW and GCC. Yay.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 07 Jun 2012 03:16:39 +0300 |
parents | 4e178dfd0cc3 |
children | 1014822abaf1 |
comparison
equal
deleted
inserted
replaced
532:cfab338d3c9e | 533:52c56ada3816 |
---|---|
1 # | 1 # |
2 # For win32 version cross-compilation with MinGW suite @ Linux | 2 # For win32 version cross-compilation with MinGW suite @ Linux |
3 # | 3 # |
4 SDL=y | |
5 | |
6 # Set PATH to include MinGW cross compiler path FIRST! | |
7 PATH=/usr/local/i386-mingw32/bin:/usr/bin:/bin:/usr/local/bin | |
8 | 4 |
9 # C-compiler, flags and linker flags | 5 # C-compiler, flags and linker flags |
10 CC=gcc | 6 CC=i686-w64-mingw32-gcc |
7 AR=i686-w64-mingw32-ar | |
8 RANLIB=i686-w64-mingw32-ranlib | |
9 | |
11 CFLAGS=-DHAVE_STRING_H -Ipdcurses -mwindows | 10 CFLAGS=-DHAVE_STRING_H -Ipdcurses -mwindows |
12 | 11 LDFLAGS= -lws2_32 -lole32 -mwindows pdcurses/libpdcurses.a -lSDL -s |
13 # Library path must be defined correctly here | |
14 LDFLAGS=-L/usr/local/i386-mingw32/lib/ -liberty -lws2_32 -lole32 -s -mwindows | |
15 | |
16 # Link PDCurses static library here .. you will want to change this | |
17 ifeq ($(SDL),y) | |
18 LDFLAGS+=pdcurses/libpdcurses-sdl.a -lSDL | |
19 else | |
20 LDFLAGS+=pdcurses/libpdcurses.a | |
21 endif | |
22 | 12 |
23 # Miscellaneous | 13 # Miscellaneous |
24 EXEEXT=.exe | 14 EXEEXT=.exe |
25 OBJPATH=./win32/ | 15 OBJPATH=./win32/ |
26 BINPATH=./installer/ | 16 BINPATH=./installer/ |
27 #BINPATH=/misc/wine_c/ | |
28 NONBUILD=$(OBJPATH) | 17 NONBUILD=$(OBJPATH) |
29 | 18 |
30 EXTRAOBJS= resource.o | 19 EXTRAOBJS= resource.o |
31 ICON=resource.ico | 20 ICON=resource.ico |
32 | 21 |