summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-04-11 16:56:36 +0200
committerRoland Reichwein <mail@reichwein.it>2020-04-11 16:56:36 +0200
commit77a68fbe16246245937c5d692bb8c89dc14d7800 (patch)
treea20a6c4251bf5970e8d3a40da17d456a3544117c /Makefile
parent4640ea1a9249c08b749f174cb19f6dc61a505a00 (diff)
Webbox (WIP)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 1bce5e4..4ebb4a7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
DISTROS=debian10
VERSION=$(shell dpkg-parsechangelog --show-field Version)
PROJECTNAME=webserver
-PLUGINS=static-files #webbox # weblog cgi fcgi
+PLUGINS=static-files webbox # weblog cgi fcgi
CXX=clang++-10
@@ -76,10 +76,12 @@ TESTSRC=\
SRC=$(PROGSRC) webserver.cpp
-all: $(PROJECTNAME) test-$(PROJECTNAME)
+build: $(PROJECTNAME) test-$(PROJECTNAME)
for i in $(PLUGINS) ; do make -C plugins/$$i ; done
./test-$(PROJECTNAME)
- #./webserver -c webserver.conf
+
+all: build
+ ./webserver -c webserver.conf
# testsuite ----------------------------------------------
test-$(PROJECTNAME): $(TESTSRC:.cpp=.o)
@@ -108,7 +110,7 @@ install:
cp webserver $(DESTDIR)/usr/bin
mkdir -p $(DESTDIR)/usr/lib/webserver/plugins
- cp plugins/static-files/static-files.so $(DESTDIR)/usr/lib/webserver/plugins
+ for i in $(PLUGINS) ; do cp plugins/$$i/$$i.so $(DESTDIR)/usr/lib/webserver/plugins
mkdir -p $(DESTDIR)/usr/local/lib/webserver/plugins