diff options
Diffstat (limited to 'sdl/Makefile')
-rw-r--r-- | sdl/Makefile | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/sdl/Makefile b/sdl/Makefile index 269c69e..d6df1f7 100644 --- a/sdl/Makefile +++ b/sdl/Makefile @@ -1,6 +1,6 @@ BIN = pyramid SRC = pyramid.c math3d.c gltools.c glframe.c shader.c platform.c window.c \ - gldraw.c sdltools.c + gldraw.c sdltools.c luatools.c CC = gcc CFLAGS = -Wall -std=gnu99 DBGFLAGS = -g -O0 @@ -9,7 +9,7 @@ ifdef DEBUG else CFLAGS += -O2 -march=native -mtune=native endif -LDFLAGS = -lGLEW -lGL -lGLU -lm -lglut +LDFLAGS = -lGLEW -lGL -lGLU -lm -lglut -llua SDL_CFLAGS := $(shell sdl-config --cflags) SDL_LDFLAGS := $(shell sdl-config --libs) SDL_image_CFLAGS := $(shell pkg-config --cflags SDL_image) @@ -21,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 sdltools.h +$(OBJ_DIR)/pyramid.o: $(OBJ_DIR)/%.o: %.c gldraw.h glframe.h gltools.h luatools.h math3d.h platform.h sdltools.h window.h $(CC) -c $(CFLAGS) $(SDL_CFLAGS) $(SDL_image_CFLAGS) $< -o $@ $(OBJ_DIR)/math3d.o: $(OBJ_DIR)/%.o: %.c %.h @@ -30,7 +30,7 @@ $(OBJ_DIR)/math3d.o: $(OBJ_DIR)/%.o: %.c %.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 +$(OBJ_DIR)/glframe.o: $(OBJ_DIR)/%.o: %.c %.h math3d.h glframe.h luatools.h gldraw.h gltools.h luatools.h sdltools.h $(CC) -c $(CFLAGS) $< -o $@ $(OBJ_DIR)/shader.o: $(OBJ_DIR)/%.o: %.c %.h @@ -45,7 +45,10 @@ $(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 +$(OBJ_DIR)/sdltools.o: $(OBJ_DIR)/%.o: %.c %.h math3d.h glframe.h + $(CC) -c $(CFLAGS) $< -o $@ + +$(OBJ_DIR)/luatools.o: $(OBJ_DIR)/%.o: %.c %.h math3d.h $(CC) -c $(CFLAGS) $< -o $@ $(OBJ_DIR): |