From 00a6a03bd317f1c2553ee41f8cdb6057a9e438f6 Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Tue, 28 Feb 2023 17:55:07 +0100 Subject: [PATCH] Fixed pattern rule for new make version --- Makefile | 3 ++- premake.make | 2 ++ 2 files changed, 4 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)) diff --git a/premake.make b/premake.make index 7aad2a9..fdab2a8 100644 --- a/premake.make +++ b/premake.make @@ -3,3 +3,5 @@ LDLIBS := -lm MAJOR := 1 MINOR := 0 PATCH := 0 + +GENERATELIBHEADER := 1