summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2023-02-12 18:57:09 +0100
committerRoland Reichwein <mail@reichwein.it>2023-02-12 18:57:09 +0100
commit5330a835484f16318b3b074f8cf8890203eb3393 (patch)
tree24eb06387206cca01da990937360ef946afacce3 /Makefile
parent92a14d375c8cd9dabc32ccb6dcbdf83321af535f (diff)
Convert from webserver API to FCGI
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index bbe1cd0..5c94148 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,9 @@ include common.mk
PROJECTNAME=weblog
LDLIBS=\
+-lfcgi \
-lreichwein \
+-lfmt \
-lboost_context \
-lboost_coroutine \
-lboost_program_options \
@@ -18,7 +20,10 @@ LDLIBS=\
SRC=\
weblog.cpp config.cpp main.cpp
-all: $(PROJECTNAME)
+default: $(PROJECTNAME)
+
+all: default
+ webapp-runner ::1:9019 ./$(PROJECTNAME) -c $(PROJECTNAME).conf
$(PROJECTNAME): $(SRC:.cpp=.o)
$(CXX) $(LDFLAGS) $^ $(LDLIBS) $(LIBS) -o $@