From 3286158e3c884979a38b8b0b8b48752f16d2482c Mon Sep 17 00:00:00 2001 From: Kyle K Date: Wed, 13 Oct 2010 00:27:02 -0500 Subject: Cleanups --- sdl/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sdl/Makefile') 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 -- cgit v1.2.3