Added redis auth module

In order to use hiredis it is needed to move from ANSI C to C99 or
gnu89.

For now redis auth code is untested it's just first compiling prototype
This commit is contained in:
2023-07-04 18:39:14 +03:00
parent 10cbea0dac
commit 140738e4e8
6 changed files with 171 additions and 16 deletions

View File

@@ -5,7 +5,7 @@ SD ?= src
LIBS_DIR ?= libs
LIBS ?= $(wildcard $(LIBS_DIR)/*)
LDFLAGS ?= -L$(BD)/ -lcgic -lqments
LDFLAGS ?= -L$(BD)/ -lcgic -lqments -lhiredis -ltomcrypt -luuid
SRC_FILES := $(shell find $(SD) -name *.c)
OBJ_FILES := $(patsubst $(SD)/%.c,$(BD)/%.o,$(SRC_FILES))
@@ -13,10 +13,11 @@ OBJ_FILES := $(patsubst $(SD)/%.c,$(BD)/%.o,$(SRC_FILES))
INCLUDE_DIRS = -Ilibs/qments/include -Ilibs/cgic
LIB_TARGETS = $(patsubst $(LIBS_DIR)/%,$(BD)/lib%.a,$(LIBS))
CFLAGS ?= -O2 -ansi -pedantic
CFLAGS ?= -O2 -std=c99 -pedantic
$(BD)/libcgic.a:
$(MAKE) -C $(LIBS_DIR)/cgic
mkdir -p $(@D)
cp $(LIBS_DIR)/cgic/libcgic.a $(BD)
$(BD)/libqments.a: