diff options
Diffstat (limited to 'mingw32')
-rw-r--r-- | mingw32 | 33 |
1 files changed, 33 insertions, 0 deletions
@@ -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 |