diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 |