From 5736552c24e0c5c71caf6a914d30bb16ff0bcf7a Mon Sep 17 00:00:00 2001 From: Kyle K Date: Mon, 17 Jan 2011 21:34:18 -0600 Subject: initial mingw32 port --- mingw32 | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 mingw32 (limited to 'mingw32') 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 -- cgit v1.2.3