summaryrefslogtreecommitdiffhomepage
path: root/plugins/fcgi/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/fcgi/Makefile')
-rw-r--r--plugins/fcgi/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/fcgi/Makefile b/plugins/fcgi/Makefile
index e878c5d..81502c4 100644
--- a/plugins/fcgi/Makefile
+++ b/plugins/fcgi/Makefile
@@ -27,11 +27,14 @@ PROGSRC=\
SRC=$(PROGSRC)
-all: $(PROJECTNAME).so
+all: $(PROJECTNAME).so webapp-runner
$(PROJECTNAME).so: $(SRC:.cpp=.o)
$(CXX) $(CXXFLAGS) $^ -shared $(LIBS) -o $@
+webapp-runner: webapp-runner.o fastcgiprocess.o
+ $(CXX) $(LDFLAGS) $^ $(LDLIBS) $(LIBS) -o $@
+
%.d: %.cpp
$(CXX) $(CXXFLAGS) -MM -MP -MF $@ -c $<
@@ -45,13 +48,14 @@ ADD_DEP=Makefile
install:
mkdir -p $(DESTDIR)/usr/lib/webserver/plugins
cp $(PROJECTNAME).so $(DESTDIR)/usr/lib/webserver/plugins
+ cp webapp-runner $(DESTDIR)/usr/bin
# misc ---------------------------------------------------
debs: $(DISTROS)
clean:
- -rm -f *.o *.so *.d
+ -rm -f *.o *.so *.d webapp-runner
.PHONY: clean install all