Mercurial > hg > nnchat
annotate Makefile.w32 @ 146:c6c3825376c9
Fix string list parsing and handling in configuration parser.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 02 Nov 2010 22:33:38 +0200 |
parents | 4bc63a535acb |
children | a06d27141c26 |
rev | line source |
---|---|
0 | 1 # |
2 # For win32 version cross-compilation with MiNGW suite @ Linux | |
3 # | |
64
6a3a917303e4
Some random cleanups, bring back WinSock support.
Matti Hamalainen <ccr@tnsp.org>
parents:
0
diff
changeset
|
4 PATH=/usr/local/i386-mingw32/bin:/usr/bin:/bin |
0 | 5 |
6 # C-compiler, flags and linker flags | |
7 CC=gcc | |
68
3ab7751fdad1
MingW compatibility, with one ugly kludge.
Matti Hamalainen <ccr@tnsp.org>
parents:
64
diff
changeset
|
8 CFLAGS=-DHAVE_STRING_H -Ipdcurses |
119
4bc63a535acb
Fix some PDCurses incompatibilities and remove some Win32/PDCurses specific hacks.
Matti Hamalainen <ccr@tnsp.org>
parents:
110
diff
changeset
|
9 LDFLAGS=-L/usr/local/i386-mingw32/lib/ -lmingw32 -liberty -lws2_32 -s |
4bc63a535acb
Fix some PDCurses incompatibilities and remove some Win32/PDCurses specific hacks.
Matti Hamalainen <ccr@tnsp.org>
parents:
110
diff
changeset
|
10 |
4bc63a535acb
Fix some PDCurses incompatibilities and remove some Win32/PDCurses specific hacks.
Matti Hamalainen <ccr@tnsp.org>
parents:
110
diff
changeset
|
11 ifeq ($(SDL),y) |
4bc63a535acb
Fix some PDCurses incompatibilities and remove some Win32/PDCurses specific hacks.
Matti Hamalainen <ccr@tnsp.org>
parents:
110
diff
changeset
|
12 LDFLAGS+=pdcurses/libpdcurses-sdl.a -lSDL |
4bc63a535acb
Fix some PDCurses incompatibilities and remove some Win32/PDCurses specific hacks.
Matti Hamalainen <ccr@tnsp.org>
parents:
110
diff
changeset
|
13 else |
4bc63a535acb
Fix some PDCurses incompatibilities and remove some Win32/PDCurses specific hacks.
Matti Hamalainen <ccr@tnsp.org>
parents:
110
diff
changeset
|
14 LDFLAGS+=pdcurses/libpdcurses.a |
4bc63a535acb
Fix some PDCurses incompatibilities and remove some Win32/PDCurses specific hacks.
Matti Hamalainen <ccr@tnsp.org>
parents:
110
diff
changeset
|
15 endif |
0 | 16 |
17 # Miscellaneous | |
18 EXEEXT=.exe | |
87 | 19 OBJPATH=./win32/ |
110
8af4072dc31a
Fix Win32/MinGW/PDcurses issues.
Matti Hamalainen <ccr@tnsp.org>
parents:
87
diff
changeset
|
20 #BINPATH=./win32/ |
8af4072dc31a
Fix Win32/MinGW/PDcurses issues.
Matti Hamalainen <ccr@tnsp.org>
parents:
87
diff
changeset
|
21 BINPATH=/misc/wine_c/ |
0 | 22 |
23 include Makefile.gen |