summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-04-09 11:38:48 +0200
committerRoland Reichwein <mail@reichwein.it>2020-04-09 11:38:48 +0200
commit2f42619303627db401e469e2fd65123cd794a378 (patch)
treefb9944f9838b9d19be3e2ce39e6be6b71f9c469c /Makefile
parentf5e2c43abe9477fba6255c734faf2822e7f2f9c5 (diff)
Load only configured plugins, add plugins
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 06385de..234ddaf 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
DISTROS=debian10
VERSION=$(shell dpkg-parsechangelog --show-field Version)
PROJECTNAME=webserver
+PLUGINS=static-files webbox # weblog cgi fcgi
CXX=clang++-10
@@ -77,6 +78,7 @@ TESTSRC=\
SRC=$(PROGSRC) webserver.cpp
all: $(PROJECTNAME) test-$(PROJECTNAME)
+ for i in $(PLUGINS) ; do make -C plugins/$$i ; done
./test-$(PROJECTNAME)
./webserver -c webserver.conf
@@ -127,7 +129,9 @@ debs: $(DISTROS)
clean:
-rm -f test-$(PROJECTNAME) $(PROJECTNAME)
+ -rm -f plugins/*.so
-find . -name '*.o' -o -name '*.d' -o -name '*.gcno' -o -name '*.gcda' | xargs rm -f
+ for i in $(PLUGINS) ; do make -C plugins/$$i clean ; done
zip: clean
-rm -f ../$(PROJECTNAME).zip