Added login page and fixed some bugs

This commit is contained in:
2023-07-05 14:43:56 +03:00
parent 92e7d1ed15
commit 8d3718c9ae
6 changed files with 142 additions and 9 deletions

View File

@@ -3,7 +3,7 @@ SD ?= src
LIBS_DIR ?= libs
LIBS ?= $(wildcard $(LIBS_DIR)/*)
CGI_EXECS ?= view_comments.cgi
CGI_EXECS ?= view_comments.cgi new_client.cgi
EXEC_TARGETS := $(patsubst %.cgi,$(BD)/%.cgi,$(CGI_EXECS))
LDFLAGS ?= -L$(BD)/ -lcgic -lqments -lhiredis -ltomcrypt -luuid
@@ -27,13 +27,14 @@ $(BD)/libqments.a:
cp $(LIBS_DIR)/qments/$(BD)/libqments.a $(BD)
$(BD)/%.cgi: $(BD)/%.o $(OBJ_FILES)
mkdir -p $(@D)
$(CC) $(INCLUDE_DIRS) $(CFLAGS) $^ -o $@ $(LDFLAGS)
$(BD)/%.o: $(SD)/%.c $(LIB_TARGETS)
mkdir -p $(@D)
$(CC) $(INCLUDE_DIRS) $(CFLAGS) -c $< -o $@ $(LDFLAGS)
all: $(BD)/$(CGI_EXECS)
all: $(EXEC_TARGETS)
clean:
rm -rfI $(BD)/