From 63dd8c1e2b58f246a29d5716ee02b4bffb98864d Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Mon, 13 Feb 2023 11:19:38 +0100 Subject: [PATCH] Fixed Makefile --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f7026f1..03415ad 100644 --- a/Makefile +++ b/Makefile @@ -30,6 +30,7 @@ DOCDIR ?= $(DATADIR)/$(LIBNAME)/doc SRCS := $(notdir $(wildcard src/*.cpp)) OBJS := $(SRCS:.cpp=.o) +DEPS := $(SRCS:.cpp=.d) HDRS ?= $(wildcard src/*.hpp) CXX ?= g++ @@ -73,7 +74,7 @@ endif $(CXX) $(CXXFLAGS) -MMD -MP -MT $@ -MF $*.d -c $< @mv $@ $*.d $(BUILDDIR) --include $(BUILDDIR)$(SRCS:.cpp=.d) +-include $(addprefix $(BUILDDIR), $(DEPS)) $(OUTDIR)$(STATICLIB): $(OBJS) ar r $(OUTDIR)$(STATICLIB) $(addprefix $(BUILDDIR),$(OBJS))