# HG changeset patch # User Matti Hamalainen # Date 1352272662 -7200 # Node ID 1014822abaf1b58d0a37fd26583f4a1e646bd06e # Parent 15e447d6a2a64644f0c404b407c4d8c747de8182 Fix win32 build. diff -r 15e447d6a2a6 -r 1014822abaf1 Makefile.w32 --- a/Makefile.w32 Thu Sep 20 00:01:18 2012 +0300 +++ b/Makefile.w32 Wed Nov 07 09:17:42 2012 +0200 @@ -3,9 +3,11 @@ # # C-compiler, flags and linker flags -CC=i686-w64-mingw32-gcc -AR=i686-w64-mingw32-ar -RANLIB=i686-w64-mingw32-ranlib +MINGW_PREFIX=i686-w64-mingw32- +CC=$(MINGW_PREFIX)gcc +AR=$(MINGW_PREFIX)ar +RANLIB=$(MINGW_PREFIX)ranlib +WINDRES=$(MINGW_PREFIX)windres CFLAGS=-DHAVE_STRING_H -Ipdcurses -mwindows LDFLAGS= -lws2_32 -lole32 -mwindows pdcurses/libpdcurses.a -lSDL -s @@ -28,7 +30,7 @@ sed -e "s/@VERSION@/$(NN_VERSION)/g;s/@VERSION_COM@/$(NN_VERSION_COM)/g;s/@ICON@/$(ICON)/g;s#@EXE@#$(notdir $(NNCHAT_BIN))#g" < $< > $@ resource.o: resource.rc - i386-mingw32-windres $< -O coff -o $@ + $(WINDRES) $< -O coff -o $@ DOC=$(BINPATH)/README.html