summaryrefslogtreecommitdiffstats
path: root/mingw32
diff options
context:
space:
mode:
authorKyle K <kylek389@gmail.com>2011-01-17 21:34:18 -0600
committerKamil Kaminski <kamilkss@gmail.com>2011-01-17 21:34:18 -0600
commit5736552c24e0c5c71caf6a914d30bb16ff0bcf7a (patch)
treea442501e75389e59b22ced21a8660ab7358f828d /mingw32
parent163b963b1d6c1d0d288e27aeb978ff521a241917 (diff)
downloadGLPyramid++-master.tar.gz
GLPyramid++-master.tar.bz2
GLPyramid++-master.zip
initial mingw32 portHEADmaster
Diffstat (limited to 'mingw32')
-rw-r--r--mingw3233
1 files changed, 33 insertions, 0 deletions
diff --git a/mingw32 b/mingw32
new file mode 100644
index 0000000..dda9868
--- /dev/null
+++ b/mingw32
@@ -0,0 +1,33 @@
+PROG = pyramid
+OBJS = $(PROG).o ./lib/math3d.o ./lib/gltools.o ./lib/TriangleMesh.o ./lib/VBOMesh.o
+CC = g++
+DBGFLAGS = -g -O0
+ifdef DEBUG
+ CFLAGS = $(DBGFLAGS) -Wall
+else
+ CFLAGS = -Wall -O2 -march=native -mtune=native
+endif
+LDFLAGS = -lglew32 -lopengl32 -lglu32 -lm -lfreeglut -lmingw32 -lsdlmain -lsdl -lsdl_image -mwindows
+
+$(PROG): $(OBJS)
+ $(CC) -o $(PROG) $(OBJS) $(LDFLAGS)
+
+$(PROG).o: $(PROG).cpp
+ $(CC) -c $(CFLAGS) $(PROG).cpp
+
+math3d.o: math3d.cpp
+ $(CC) -c $(CFLAGS) math3d.cpp
+
+gltools.o: gltools.cpp
+ $(CC) -c $(CFLAGS) ./lib/gltools.cpp
+
+TriangleMesh.o: TriangleMesh.cpp
+ $(CC) -c $(CFLAGS) ./lib/TriangleMesh.cpp
+
+VBOMesh.o: VBOMesh.cpp
+ $(CC) -c $(CFLAGS) ./lib/VBOMesh.cpp
+
+.PHONY: clean
+
+clean:
+ rm -f *.o ./$(PROG).exe ./lib/*.o