Fixed Makefile
This commit is contained in:
parent
ad0eaaf47e
commit
63dd8c1e2b
3
Makefile
3
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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user