summaryrefslogtreecommitdiff
path: root/Makefile.win32
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.win32')
-rw-r--r--Makefile.win3217
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile.win32 b/Makefile.win32
new file mode 100644
index 0000000..9981c58
--- /dev/null
+++ b/Makefile.win32
@@ -0,0 +1,17 @@
+CXX=g++
+LD=g++
+TARGET=foo.exe
+#OBJECTS=$(shell ls *.cpp | sed 's/cpp/o/')
+OBJECTS=gl.o gui.o main.o terrain.o noiseutils/noiseutils.o scene.o shader.o tool.o vector.o video.o
+#-D_GNU_SOURCE=1 -D_REENTRANT
+CPPFLAGS=-IC:/mingw/include/SDL -IC:/mingw/include/CEGUI/ -g -mconsole #-mwin32
+LDFLAGS=-lCEGUIOpenGLRenderer -lCEGUIBase -lCEGUITGAImageCodec -lCEGUITinyXMLParser -lCEGUIFalagardWRBase -lCEGUISILLYImageCodec
+LDFLAGS+=-lSDL_image -lfreetype -lz -lpcre -lopengl32 -lglu32 -lwinmm -lmingw32 -lSDLmain -lSDL -ljpeg -lstdc++ -lboost_filesystem -lboost_system -lnoise
+
+all: $(TARGET)
+
+$(TARGET): $(OBJECTS)
+ $(LD) -o $@ $^ $(LDFLAGS)
+
+clean:
+ del $(OBJECTS) $(TARGET)