diff options
author | Kyle K <kylek389@gmail.com> | 2011-07-02 14:59:16 -0500 |
---|---|---|
committer | Kamil Kaminski <kamilkss@gmail.com> | 2011-07-02 14:59:16 -0500 |
commit | 01d6561d73d11a28fd339d46e73e12fd5658300a (patch) | |
tree | 4c421770be1b335f4ae38042480ed905f232c60c /sdl/Makefile | |
parent | 616f2216d80848f88605be75fd03049f6d635378 (diff) | |
download | GLPyramid-01d6561d73d11a28fd339d46e73e12fd5658300a.tar.gz GLPyramid-01d6561d73d11a28fd339d46e73e12fd5658300a.tar.bz2 GLPyramid-01d6561d73d11a28fd339d46e73e12fd5658300a.zip |
split more
Diffstat (limited to 'sdl/Makefile')
-rw-r--r-- | sdl/Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sdl/Makefile b/sdl/Makefile index 1d881e9..7b878a9 100644 --- a/sdl/Makefile +++ b/sdl/Makefile @@ -1,5 +1,5 @@ BIN = pyramid -SRC = pyramid.c math3d.c gltools.c glframe.c shader.c +SRC = pyramid.c math3d.c gltools.c glframe.c shader.c platform.c window.c CC = gcc CFLAGS = -Wall -std=c99 DBGFLAGS = -g -O0 @@ -21,7 +21,7 @@ OBJ_ABS = $(addprefix $(OBJ_DIR)/, $(addsuffix .o, $(subst .c,,$(SRC)))) $(BIN): $(OBJ_DIR) $(OBJ_REL) $(CC) $(LDFLAGS) $(SDL_LDFLAGS) $(SDL_image_LDFLAGS) $(OBJ_ABS) -o $@ -pyramid.o: %.o: %.c math3d.h gltools.h glframe.h +pyramid.o: %.o: %.c math3d.h gltools.h glframe.h platform.h $(CC) -c $(CFLAGS) $(SDL_CFLAGS) $(SDL_image_CFLAGS) $< -o $(OBJ_DIR)/$@ math3d.o: %.o: %.c %.h @@ -33,9 +33,15 @@ gltools.o: %.o: %.c %.h math3d.h glframe.o: %.o: %.c %.h math3d.h $(CC) -c $(CFLAGS) $< -o $(OBJ_DIR)/$@ -shader.o: %.o: %.c %.h math3d.h +shader.o: %.o: %.c %.h $(CC) -c $(CFLAGS) $< -o $(OBJ_DIR)/$@ +platform.o: %.o: %.c %.h + $(CC) -c $(CFLAGS) $(SDL_CFLAGS) $(SDL_image_CFLAGS) $< -o $(OBJ_DIR)/$@ + +window.o: %.o: %.c %.h + $(CC) -c $(CFLAGS) $(SDL_CFLAGS) $(SDL_image_CFLAGS) $< -o $(OBJ_DIR)/$@ + $(OBJ_DIR): mkdir -p $(OBJ_DIR) |