Mercurial > hg > nnchat
comparison Makefile.w32 @ 158:a06d27141c26
Add some comments in Win32 MinGW cross build Makefile.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 03 Nov 2010 13:28:22 +0200 |
parents | 4bc63a535acb |
children | 1b6bc8bf6ac3 |
comparison
equal
deleted
inserted
replaced
157:3287901f9b78 | 158:a06d27141c26 |
---|---|
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 | |
5 # Set PATH to include MinGW cross compiler path FIRST! | |
4 PATH=/usr/local/i386-mingw32/bin:/usr/bin:/bin | 6 PATH=/usr/local/i386-mingw32/bin:/usr/bin:/bin |
5 | 7 |
6 # C-compiler, flags and linker flags | 8 # C-compiler, flags and linker flags |
7 CC=gcc | 9 CC=gcc |
8 CFLAGS=-DHAVE_STRING_H -Ipdcurses | 10 CFLAGS=-DHAVE_STRING_H -Ipdcurses |
11 | |
12 # Library path must be defined correctly here | |
9 LDFLAGS=-L/usr/local/i386-mingw32/lib/ -lmingw32 -liberty -lws2_32 -s | 13 LDFLAGS=-L/usr/local/i386-mingw32/lib/ -lmingw32 -liberty -lws2_32 -s |
10 | 14 |
15 # Link PDCurses static library here .. you will want to change this | |
11 ifeq ($(SDL),y) | 16 ifeq ($(SDL),y) |
12 LDFLAGS+=pdcurses/libpdcurses-sdl.a -lSDL | 17 LDFLAGS+=pdcurses/libpdcurses-sdl.a -lSDL |
13 else | 18 else |
14 LDFLAGS+=pdcurses/libpdcurses.a | 19 LDFLAGS+=pdcurses/libpdcurses.a |
15 endif | 20 endif |
16 | 21 |
17 # Miscellaneous | 22 # Miscellaneous |
18 EXEEXT=.exe | 23 EXEEXT=.exe |
19 OBJPATH=./win32/ | 24 OBJPATH=./win32/ |
20 #BINPATH=./win32/ | 25 BINPATH=./win32/ |
21 BINPATH=/misc/wine_c/ | 26 #BINPATH=/misc/wine_c/ |
22 | 27 |
23 include Makefile.gen | 28 include Makefile.gen |