X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=Makefile;h=d0bd9971c12474713a2fc3c1a9a15d40f753a541;hb=588553096cd61ef36c1bc6ab6133764a608b0ef3;hp=bf159592a6cfc8ae6eae67a562ed174a07c566c8;hpb=9d2e69a1cf5011f52ae8ec6f5a45c5ddc39ac112;p=videolink.git diff --git a/Makefile b/Makefile index bf15959..d0bd997 100644 --- a/Makefile +++ b/Makefile @@ -99,7 +99,8 @@ $(sources_using_gtkmm:%.cpp=.objs/%.o) \ : CPPFLAGS += $(shell pkg-config --cflags gtkmm-2.4) $(sources_using_moz:%.cpp=.objs/%.o) \ - : CPPFLAGS += $(shell pkg-config --cflags $(moz_pc)) $(moz_cppflags_extra) + : CPPFLAGS += $(filter-out -fshort-wchar, \ + $(shell pkg-config --cflags $(moz_pc)) $(moz_cppflags_extra)) # Non-virtual destructors are fine in XPCOM interface classes since # instances are only ever called by the Release function which is virtual. $(sources_using_moz:%.cpp=.objs/%.o) : CXXFLAGS += -Wno-non-virtual-dtor @@ -109,9 +110,6 @@ $(sources_using_moz_unstable:%.cpp=.objs/%.o) \ -DMOZ_VERSION_MAJOR=$(moz_version_major) \ -DMOZ_VERSION_MINOR=$(moz_version_minor) -.objs/%.d : .objs/.created - touch $@ - .objs/%.o : %.cpp .objs/.created $(CXX) $(CXXFLAGS) $(CPPFLAGS) -o $@ -MD -MF .objs/$*.d -c $< @@ -123,7 +121,7 @@ $(sources_using_moz_unstable:%.cpp=.objs/%.o) \ touch $@ ifneq ($(MAKECMDGOALS),clean) - include $(cxxsources:%.cpp=.objs/%.d) $(csources:%.c=.objs/%.d) + -include $(cxxsources:%.cpp=.objs/%.d) $(csources:%.c=.objs/%.d) endif .PRECIOUS : %/.created