mirror of
https://github.com/holub/mame
synced 2025-04-22 00:11:58 +03:00
Added FILTER_DEPS option for post compile filtering (nw)
This commit is contained in:
parent
3991971c86
commit
209734925f
7
makefile
7
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
|
||||
#-------------------------------------------------
|
||||
|
@ -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 ../,,$<)...")
|
||||
|
Loading…
Reference in New Issue
Block a user