summaryrefslogtreecommitdiffstats
path: root/sdl/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sdl/Makefile')
-rw-r--r--sdl/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/sdl/Makefile b/sdl/Makefile
index 5ba8c06..0ea6faa 100644
--- a/sdl/Makefile
+++ b/sdl/Makefile
@@ -1,5 +1,5 @@
PROG = pyramid
-OBJS = $(PROG).o math3d.o
+OBJS = $(PROG).o math3d.o gltools.o
CC = gcc
DBGFLAGS = -g -O0
ifdef DEBUG
@@ -16,11 +16,14 @@ SDL_image_LDFLAGS := $(shell pkg-config --libs SDL_image)
$(PROG): $(OBJS)
$(CC) $(LDFLAGS) $(SDL_LDFLAGS) $(SDL_image_LDFLAGS) $(OBJS) -o $(PROG)
-$(PROG).o: $(PROG).c math3d.h
+$(PROG).o: $(PROG).c math3d.h gltools.h
$(CC) -c $(CFLAGS) $(SDL_CFLAGS) $(SDL_image_CFLAGS) $(PROG).c
math3d.o: math3d.c math3d.h
$(CC) -c $(CFLAGS) math3d.c
+
+gltools.o: gltools.c gltools.h math3d.h
+ $(CC) -c $(CFLAGS) gltools.c
.PHONY: clean