summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2023-01-03 14:31:49 +0100
committerRoland Reichwein <mail@reichwein.it>2023-01-03 14:31:49 +0100
commitf30eba63cb3f5e3aa5d81d6b31d1ba2fdee1e5c4 (patch)
treeeed743b51b4875310918c708b8e24b1ecdef8c1b /Makefile
parenta93412feba23335174a9a55b320e74c769462072 (diff)
Add test coverage info
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index cc79b02..d9b55db 100644
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,7 @@ PLUGINS= \
webbox \
weblog
-CXXFLAGS+=-fPIE -DVERSION=\"$(VERSION)\"
+CXXFLAGS+=-fPIE
LDLIBS+=\
-lreichwein \
@@ -58,8 +58,7 @@ all: build
$(PROJECTNAME): $(SRC:.cpp=.o)
$(CXX) $(LDFLAGS) $^ $(LDLIBS) $(LIBS) -o $@
-$(PLUGINS):
- cd plugins/$@ && $(MAKE)
+dep: $(SRC:.cpp=.d)
%.d: %.cpp
$(CXX) $(CXXFLAGS) -MM -MP -MF $@ -c $<
@@ -67,6 +66,9 @@ $(PLUGINS):
%.o: %.cpp %.d
$(CXX) $(CXXFLAGS) -c $< -o $@
+$(PLUGINS):
+ cd plugins/$@ && $(MAKE)
+
# dependencies
ADD_DEP=Makefile