diff options
author | Kyle K <kylek389@gmail.com> | 2011-07-07 23:14:03 -0500 |
---|---|---|
committer | Kamil Kaminski <kamilkss@gmail.com> | 2011-07-07 23:14:03 -0500 |
commit | 2b29d6b81b8e20fc6c903fe839abbb833c5f18bd (patch) | |
tree | 5761254c2ebacd7b11c65b3fb2eb6e66f0148d4d /sdl/Makefile | |
parent | f65f7c583f763120bba3eeacd2af857d113d79ba (diff) | |
download | GLPyramid-2b29d6b81b8e20fc6c903fe839abbb833c5f18bd.tar.gz GLPyramid-2b29d6b81b8e20fc6c903fe839abbb833c5f18bd.tar.bz2 GLPyramid-2b29d6b81b8e20fc6c903fe839abbb833c5f18bd.zip |
create a gldraw.[ch] for models, also introduce few functions
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 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) |