summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.win329
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile.win32 b/Makefile.win32
index 4b64070..91e3f22 100644
--- a/Makefile.win32
+++ b/Makefile.win32
@@ -2,10 +2,12 @@ ifeq ($(shell uname), Linux)
CXX=i486-mingw32-g++
LD=i486-mingw32-g++
ROOT=/usr/i486-mingw32
+ RM=rm -f
else
CXX=g++
LD=g++
ROOT=C:/MinGW
+ RM=del
endif
TARGET=foo.exe
@@ -20,8 +22,9 @@ endif
#-D_GNU_SOURCE=1 -D_REENTRANT
CPPFLAGS=-I$(ROOT)/include/SDL -I$(ROOT)/include/CEGUI/ -I$(ROOT)/include/freetype2 -Wall -g -mconsole #-mwin32
-LDFLAGS=-L$(ROOT)/lib -lCEGUIOpenGLRenderer -lCEGUIBase -lCEGUITGAImageCodec -lCEGUITinyXMLParser -lCEGUIFalagardWRBase -lCEGUISILLYImageCodec
-LDFLAGS+=-lSDL_image -lftgl -lfreetype -lz -lpcre -lopengl32 -lglu32 -lwinmm -lmingw32 -lSDLmain -lSDL -ljpeg -lstdc++ -lnoise
+LDFLAGS=-L$(ROOT)/lib -static-libgcc -static-libstdc++
+LDFLAGS+=-lCEGUIOpenGLRenderer -lCEGUIBase -lCEGUITGAImageCodec -lCEGUITinyXMLParser -lCEGUIFalagardWRBase -lCEGUISILLYImageCodec
+LDFLAGS+=-lSDL_image -lftgl -lfreetype-s -lz -lpcre -lopengl32 -lglu32 -lwinmm -lmingw32 -lSDLmain -lSDL -ljpeg -lnoise
ifeq ($(shell uname), Linux)
LDFLAGS+=-lboost_filesystem-mt-s -lboost_system-mt-s
@@ -35,4 +38,4 @@ $(TARGET): $(OBJECTS)
$(LD) -o $@ $^ $(LDFLAGS)
clean:
- del $(OBJECTS) $(TARGET)
+ ${RM} $(OBJECTS) $(TARGET)