From a1b760ec22d8c313ce2f5fbe29c48f095a5feee0 Mon Sep 17 00:00:00 2001 From: Kyle K Date: Tue, 28 Sep 2010 12:49:00 -0500 Subject: Initial commit --- glut/Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 glut/Makefile (limited to 'glut/Makefile') diff --git a/glut/Makefile b/glut/Makefile new file mode 100644 index 0000000..476be54 --- /dev/null +++ b/glut/Makefile @@ -0,0 +1,22 @@ +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 = -lGLEW -lGL -lGLU -lm -lglut + +$(PROG): $(OBJS) + $(CC) $(LFLAGS) $(OBJS) -o $(PROG) + +$(PROG).o: $(PROG).c math3d.h + $(CC) -c $(CFLAGS) $(PROG).c + +math3d.o: math3d.c math3d.h + $(CC) -c $(CFLAGS) math3d.c + +clean: + rm -f *.o ./$(PROG) -- cgit v1.2.3