summaryrefslogtreecommitdiffstats
path: root/sdl/Makefile
diff options
context:
space:
mode:
authorunknown <nfm@.(none)>2011-07-12 22:45:49 -0500
committerunknown <nfm@.(none)>2011-07-12 22:45:49 -0500
commit6ad248c86e45933f9c61a7ce9f0546429d41c97e (patch)
tree4f6b3e640ca5e3fb97cd8929749b57f1636855a3 /sdl/Makefile
parent4150b0db22bbf191eb27a90d6abd589cf4e64aa6 (diff)
downloadGLPyramid-6ad248c86e45933f9c61a7ce9f0546429d41c97e.tar.gz
GLPyramid-6ad248c86e45933f9c61a7ce9f0546429d41c97e.tar.bz2
GLPyramid-6ad248c86e45933f9c61a7ce9f0546429d41c97e.zip
add loading texture functions and tweak sdl init
Diffstat (limited to 'sdl/Makefile')
-rw-r--r--sdl/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/sdl/Makefile b/sdl/Makefile
index e7dfefd..269c69e 100644
--- a/sdl/Makefile
+++ b/sdl/Makefile
@@ -1,5 +1,6 @@
BIN = pyramid
-SRC = pyramid.c math3d.c gltools.c glframe.c shader.c platform.c window.c gldraw.c
+SRC = pyramid.c math3d.c gltools.c glframe.c shader.c platform.c window.c \
+ gldraw.c sdltools.c
CC = gcc
CFLAGS = -Wall -std=gnu99
DBGFLAGS = -g -O0
@@ -20,7 +21,7 @@ OBJ_FILES = $(addprefix $(OBJ_DIR)/, $(addsuffix .o, $(subst .c,,$(SRC))))
$(BIN): $(OBJ_DIR) $(OBJ_FILES)
$(CC) $(LDFLAGS) $(SDL_LDFLAGS) $(SDL_image_LDFLAGS) $(OBJ_FILES) -o $@
-$(OBJ_DIR)/pyramid.o: $(OBJ_DIR)/%.o: %.c math3d.h gltools.h glframe.h platform.h
+$(OBJ_DIR)/pyramid.o: $(OBJ_DIR)/%.o: %.c math3d.h gltools.h glframe.h platform.h sdltools.h
$(CC) -c $(CFLAGS) $(SDL_CFLAGS) $(SDL_image_CFLAGS) $< -o $@
$(OBJ_DIR)/math3d.o: $(OBJ_DIR)/%.o: %.c %.h
@@ -44,6 +45,9 @@ $(OBJ_DIR)/window.o: $(OBJ_DIR)/%.o: %.c %.h
$(OBJ_DIR)/gldraw.o: $(OBJ_DIR)/%.o: %.c %.h math3d.h
$(CC) -c $(CFLAGS) $< -o $@
+$(OBJ_DIR)/sdltools.o: $(OBJ_DIR)/%.o: %.c %.h math3d.h
+ $(CC) -c $(CFLAGS) $< -o $@
+
$(OBJ_DIR):
mkdir -p $(OBJ_DIR)