aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2018-08-20 07:11:15 +0200
committerDavid Turner2018-08-20 23:03:31 +0100
commit4d5c4232ee20c962ea95d082095f519c3c5dfc12 (patch)
tree613fdee9d46a2aa88a6ed25987c39a2086928556
parent93ed8a2c47055f4b737d79925bf0bca30adda24f (diff)
downloadscummvm-rg350-4d5c4232ee20c962ea95d082095f519c3c5dfc12.tar.gz
scummvm-rg350-4d5c4232ee20c962ea95d082095f519c3c5dfc12.tar.bz2
scummvm-rg350-4d5c4232ee20c962ea95d082095f519c3c5dfc12.zip
BUILD: Remove .dwo files on clean
-rw-r--r--.gitignore1
-rw-r--r--Makefile.common1
-rw-r--r--rules.mk3
3 files changed, 5 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 261e2a5213..cd134d2bfb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,6 +3,7 @@
.*.swp
.*.swo
*.o
+*.dwo
lib*.a
.deps
diff --git a/Makefile.common b/Makefile.common
index b08c464656..3aebc582c4 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -96,6 +96,7 @@ clean:
$(RM_REC) $(DEPDIRS)
$(RM) $(OBJS) $(EXECUTABLE)
ifdef SPLIT_DWARF
+ $(RM) $(OBJS:.o=.dwo)
$(RM) $(EXECUTABLE).dwp
endif
diff --git a/rules.mk b/rules.mk
index 1324874ef3..1bd1f147f9 100644
--- a/rules.mk
+++ b/rules.mk
@@ -98,5 +98,8 @@ endif # TOOL_EXECUTABLE
clean: clean-$(MODULE)
clean-$(MODULE): clean-% :
-$(RM) $(MODULE_OBJS-$*) $(MODULE_LIB-$*) $(PLUGIN-$*) $(TOOL-$*)
+ifdef SPLIT_DWARF
+ -$(RM) $(MODULE_OBJS-$*:.o=.dwo)
+endif
.PHONY: clean-$(MODULE) $(MODULE)