changeset 33258:6170442680ac

Add code to generate and compare all object files MPlayer uses. Useful to verify that cosmetic changes really are only cosmetic (note that there will be false positives, e.g. due to debug symbols or line numbers from asserts and similar).
author reimar
date Sun, 01 May 2011 17:10:02 +0000
parents 40b298f9dc77
children 04dc3e55cd90
files Makefile
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sun May 01 16:44:58 2011 +0000
+++ b/Makefile	Sun May 01 17:10:02 2011 +0000
@@ -820,6 +820,12 @@
 codecs.conf.h: codec-cfg$(EXESUF) etc/codecs.conf
 	./$^ > $@
 
+checksums: $(MPLAYER_DEPS) $(MENCODER_DEPS) mplayer$(EXESUF) mencoder$(EXESUF)
+	md5sum $^ > checksums
+
+check_checksums: $(MPLAYER_DEPS) $(MENCODER_DEPS) mplayer$(EXESUF) mencoder$(EXESUF)
+	md5sum -c checksums
+
 # ./configure must be rerun if it changed
 config.mak: configure
 	@echo "############################################################"
@@ -1112,7 +1118,7 @@
 -include $(DEP_FILES) $(DRIVER_DEP_FILES) $(TESTS_DEP_FILES) $(TOOLS_DEP_FILES) $(DHAHELPER_DEPS_FILES)
 
 .PHONY: all doxygen *install* *tools drivers dhahelper*
-.PHONY: checkheaders *clean tests
+.PHONY: checkheaders *clean tests check_checksums
 
 # Disable suffix rules.  Most of the builtin rules are suffix rules,
 # so this saves some time on slow systems.