From 2b29d6b81b8e20fc6c903fe839abbb833c5f18bd Mon Sep 17 00:00:00 2001 From: Kyle K Date: Thu, 7 Jul 2011 23:14:03 -0500 Subject: create a gldraw.[ch] for models, also introduce few functions --- sdl/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'sdl/Makefile') diff --git a/sdl/Makefile b/sdl/Makefile index a2309bb..e7dfefd 100644 --- a/sdl/Makefile +++ b/sdl/Makefile @@ -1,7 +1,7 @@ BIN = pyramid -SRC = pyramid.c math3d.c gltools.c glframe.c shader.c platform.c window.c +SRC = pyramid.c math3d.c gltools.c glframe.c shader.c platform.c window.c gldraw.c CC = gcc -CFLAGS = -Wall -std=c99 +CFLAGS = -Wall -std=gnu99 DBGFLAGS = -g -O0 ifdef DEBUG CFLAGS += $(DBGFLAGS) @@ -26,7 +26,7 @@ $(OBJ_DIR)/pyramid.o: $(OBJ_DIR)/%.o: %.c math3d.h gltools.h glframe.h platform. $(OBJ_DIR)/math3d.o: $(OBJ_DIR)/%.o: %.c %.h $(CC) -c $(CFLAGS) $< -o $@ -$(OBJ_DIR)/gltools.o: $(OBJ_DIR)/%.o: %.c %.h math3d.h +$(OBJ_DIR)/gltools.o: $(OBJ_DIR)/%.o: %.c %.h $(CC) -c $(CFLAGS) $< -o $@ $(OBJ_DIR)/glframe.o: $(OBJ_DIR)/%.o: %.c %.h math3d.h @@ -41,6 +41,9 @@ $(OBJ_DIR)/platform.o: $(OBJ_DIR)/%.o: %.c %.h $(OBJ_DIR)/window.o: $(OBJ_DIR)/%.o: %.c %.h $(CC) -c $(CFLAGS) $(SDL_CFLAGS) $(SDL_image_CFLAGS) $< -o $@ +$(OBJ_DIR)/gldraw.o: $(OBJ_DIR)/%.o: %.c %.h math3d.h + $(CC) -c $(CFLAGS) $< -o $@ + $(OBJ_DIR): mkdir -p $(OBJ_DIR) -- cgit v1.2.3