Mercurial > hg > nnchat
changeset 537:1014822abaf1
Fix win32 build.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 07 Nov 2012 09:17:42 +0200 |
parents | 15e447d6a2a6 |
children | ffacb78d9b9f |
files | Makefile.w32 |
diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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