From 1d490f9d6cfe8a62401fb0d5e12a21d65a2583f3 Mon Sep 17 00:00:00 2001 From: valenok Date: Fri, 17 Sep 2010 22:40:19 +0100 Subject: [PATCH] mingw build fix --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 32ae0025..200484a4 100644 --- a/Makefile +++ b/Makefile @@ -100,11 +100,14 @@ windows: # Build for Windows under MinGW #MINGWDBG= -DDEBUG -O0 MINGWDBG= -DNDEBUG -Os -MINGWOPT= -W -Wall -mthreads -Wl,--subsystem,console $(MINGWDBG) -DHAVE_STDINT +#MINGWOPT= -W -Wall -mthreads -Wl,--subsystem,console $(MINGWDBG) -DHAVE_STDINT +MINGWOPT= -W -Wall -mthreads -Wl,--subsystem,windows $(MINGWDBG) mingw: + windres win32\res.rc win32\res.o gcc $(MINGWOPT) mongoose.c -lws2_32 \ -shared -Wl,--out-implib=$(PROG).lib -o _$(PROG).dll - gcc $(MINGWOPT) mongoose.c main.c -lws2_32 -ladvapi32 -o $(PROG).exe + gcc $(MINGWOPT) mongoose.c main.c win32\res.o -lws2_32 -ladvapi32 \ + -o $(PROG).exe ##########################################################################