From 77a68fbe16246245937c5d692bb8c89dc14d7800 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 11 Apr 2020 16:56:36 +0200 Subject: Webbox (WIP) --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3