summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
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