Added login page and fixed some bugs
This commit is contained in:
5
Makefile
5
Makefile
@@ -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)/
|
||||
|
||||
Reference in New Issue
Block a user