# HG changeset patch # User Matti Hamalainen # Date 1288783702 -7200 # Node ID a06d27141c26db335ce8db800cc5d3ae5e8aea38 # Parent 3287901f9b781b8d82818a4e14c599a952f14ac8 Add some comments in Win32 MinGW cross build Makefile. diff -r 3287901f9b78 -r a06d27141c26 Makefile.w32 --- a/Makefile.w32 Wed Nov 03 13:27:55 2010 +0200 +++ b/Makefile.w32 Wed Nov 03 13:28:22 2010 +0200 @@ -1,13 +1,18 @@ # -# For win32 version cross-compilation with MiNGW suite @ Linux +# For win32 version cross-compilation with MinGW suite @ Linux # + +# Set PATH to include MinGW cross compiler path FIRST! PATH=/usr/local/i386-mingw32/bin:/usr/bin:/bin # C-compiler, flags and linker flags CC=gcc CFLAGS=-DHAVE_STRING_H -Ipdcurses + +# Library path must be defined correctly here LDFLAGS=-L/usr/local/i386-mingw32/lib/ -lmingw32 -liberty -lws2_32 -s +# Link PDCurses static library here .. you will want to change this ifeq ($(SDL),y) LDFLAGS+=pdcurses/libpdcurses-sdl.a -lSDL else @@ -17,7 +22,7 @@ # Miscellaneous EXEEXT=.exe OBJPATH=./win32/ -#BINPATH=./win32/ -BINPATH=/misc/wine_c/ +BINPATH=./win32/ +#BINPATH=/misc/wine_c/ include Makefile.gen