diff --git a/makefile b/makefile index 36887522468..05c107ae11f 100644 --- a/makefile +++ b/makefile @@ -73,6 +73,8 @@ # CPP11 = 1 # FASTDEBUG = 1 +# FILTER_DEPS = 1 + ########################################################################### ################## END USER-CONFIGURABLE OPTIONS ###################### ########################################################################### @@ -482,6 +484,11 @@ ifdef FASTDEBUG PARAMS += --FASTDEBUG='$(FASTDEBUG)' endif +ifdef FILTER_DEPS +PARAMS += --FILTER_DEPS='$(FILTER_DEPS)' +endif + + #------------------------------------------------- # All scripts #------------------------------------------------- diff --git a/scripts/genie.lua b/scripts/genie.lua index 293afcc2321..c945dc1068b 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -254,6 +254,15 @@ newoption { } } +newoption { + trigger = "FILTER_DEPS", + description = "Filter dependency files.", + allowed = { + { "0", "Disabled" }, + { "1", "Enabled" }, + } +} + if not _OPTIONS["BIGENDIAN"] then _OPTIONS["BIGENDIAN"] = "0" end @@ -350,11 +359,11 @@ else end end -if (AWK~='') then --- postcompiletasks { --- AWK .. " -f ../../../../../scripts/depfilter.awk $(@:%.o=%.d) > $(@:%.o=%.dep)", --- "mv $(@:%.o=%.dep) $(@:%.o=%.d)", --- } +if (_OPTIONS["FILTER_DEPS"]=="1") and (AWK~='') then + postcompiletasks { + AWK .. " -f ../../../../../scripts/depfilter.awk $(@:%.o=%.d) > $(@:%.o=%.dep)", + "mv $(@:%.o=%.dep) $(@:%.o=%.d)", + } end msgcompile ("Compiling $(subst ../,,$<)...")