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:
5
Makefile
5
Makefile
@@ -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:
|
||||
|
Reference in New Issue
Block a user