summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xglut/mingw3224
1 files changed, 24 insertions, 0 deletions
diff --git a/glut/mingw32 b/glut/mingw32
new file mode 100755
index 0000000..3abba2c
--- /dev/null
+++ b/glut/mingw32
@@ -0,0 +1,24 @@
+PROG = pyramid
+OBJS = $(PROG).o math3d.o
+CC = gcc
+DBGFLAGS = -g -O0
+ifdef DEBUG
+ CFLAGS = $(DBGFLAGS) -Wall -std=c99
+else
+ CFLAGS = -Wall -std=c99 -O2 -march=native -mtune=native
+endif
+LFLAGS = -lglew32 -lopengl32 -lglu32 -lm -lfreeglut
+
+$(PROG): $(OBJS)
+ $(CC) -o $(PROG) $(OBJS) $(LFLAGS)
+
+$(PROG).o: $(PROG).c math3d.h
+ $(CC) -c $(CFLAGS) $(PROG).c
+
+math3d.o: math3d.c math3d.h
+ $(CC) -c $(CFLAGS) math3d.c
+
+.PHONY: clean
+
+clean:
+ rm -f *.o ./$(PROG)