Fixed pattern rule for new make version

This commit is contained in:
Bob Polis 2023-02-28 17:55:07 +01:00
parent 71b64a13cf
commit 00a6a03bd3
2 changed files with 4 additions and 1 deletions

View File

@ -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))

View File

@ -3,3 +3,5 @@ LDLIBS := -lm
MAJOR := 1
MINOR := 0
PATCH := 0
GENERATELIBHEADER := 1