diff options
Diffstat (limited to 'sdl/Makefile')
-rw-r--r-- | sdl/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sdl/Makefile b/sdl/Makefile index 51a013f..1f9134c 100644 --- a/sdl/Makefile +++ b/sdl/Makefile @@ -1,5 +1,5 @@ PROG = pyramid -OBJS = $(PROG).o math3d.o gltools.o glframe.o +OBJS = $(PROG).o math3d.o gltools.o glframe.o shader.o CC = gcc DBGFLAGS = -g -O0 ifdef DEBUG @@ -16,7 +16,7 @@ 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 gltools.h +$(PROG).o: $(PROG).c math3d.h gltools.h glframe.h $(CC) -c $(CFLAGS) $(SDL_CFLAGS) $(SDL_image_CFLAGS) $(PROG).c math3d.o: math3d.c math3d.h @@ -25,9 +25,12 @@ math3d.o: math3d.c math3d.h gltools.o: gltools.c gltools.h math3d.h $(CC) -c $(CFLAGS) gltools.c -glframe.o: glframe.c math3d.h +glframe.o: glframe.c glframe.h math3d.h $(CC) -c $(CFLAGS) glframe.c +shader.o: shader.c shader.h math3d.h + $(CC) -c $(CFLAGS) shader.c + .PHONY: clean clean: |