2 CFLAGS = -g -std=gnu99 -Wno-implicit-function-declaration
3 LDFLAGS = -L../src/obj -lcgds -Wl,-rpath=../src/obj
11 SRC_FILES = $(wildcard $(SRC_DIR)/*.c)
12 H_FILES = lut.h helpers.h
13 OBJ_FILES = $(patsubst $(SRC_DIR)/%.c,$(OBJ_DIR)/%.o,$(SRC_FILES))
17 $(TARGET): $(OBJ_FILES)
18 $(CC) $(LDFLAGS) -o $@ $^
20 $(OBJ_DIR)/%.o: $(SRC_DIR)/%.c $(H_FILES)
21 $(CC) $(CFLAGS) $(INCLUDES) -o $@ -c $<
24 rm -f $(OBJ_DIR)/*.o $(TARGET)