diff --git a/Makefile b/Makefile index 122cbd5..3eaa6f5 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,6 @@ include premake.make LIBNAME := $(shell basename $$(pwd)) -MAJOR ?= 1 -MINOR ?= 0 -PATCH ?= 0 - UNAME_S := $(shell uname -s) ifeq ($(UNAME_S),Darwin) @@ -74,7 +70,7 @@ ifeq ($(UNAME_S),Linux) $(CXX) -g -shared -Wl,-soname,$(SONAME) -o $(OUTDIR)$(REALNAME) $(LDFLAGS) $(LDLIBS) $(addprefix $(BUILDDIR),$(OBJS)) endif -%.o: %.cpp %.d Makefile +%.o: %.cpp %.d $(CXX) $(CXXFLAGS) -MMD -MP -MT $@ -MF $*.d -c $< @mv $@ $*.d $(BUILDDIR)