changeset 26585:bb7a4686d158

Add new tests target to build all test programs and remove them on distclean.
author diego
date Wed, 30 Apr 2008 14:37:34 +0000
parents f865a9546178
children 4f76dfed8209
files Makefile
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Wed Apr 30 14:34:18 2008 +0000
+++ b/Makefile	Wed Apr 30 14:37:34 2008 +0000
@@ -811,6 +811,12 @@
 mp3lib/test$(EXESUF):  mp3lib/test.c  $(filter mp3lib/%,$(SRCS_COMMON:.c=.o)) libvo/aclib.o cpudetect.o mp_msg-mencoder.o mp_fifo.o osdep/$(TIMER) osdep/$(GETCH) -ltermcap -lm
 mp3lib/test2$(EXESUF): mp3lib/test2.c $(filter mp3lib/%,$(SRCS_COMMON:.c=.o)) libvo/aclib.o cpudetect.o mp_msg-mencoder.o mp_fifo.o osdep/$(TIMER) osdep/$(GETCH) -ltermcap -lm
 
+TESTS = liba52/test$(EXESUF) libvo/aspecttest$(EXESUF) \
+        loader/qtx/list$(EXESUF) loader/qtx/qtxload$(EXESUF) \
+        mp3lib/test$(EXESUF) mp3lib/test2$(EXESUF)
+
+tests: $(TESTS)
+
 install: install-dirs $(INSTALL_TARGETS)
 
 install-dirs:
@@ -874,7 +880,7 @@
 distclean: clean doxygen_clean
 	rm -f $(foreach dir,$(DIRS),$(foreach suffix,/*.d, $(addsuffix $(suffix),$(dir))))
 	rm -f configure.log config.mak config.h	codecs.conf.h help_mp.h \
-           version.h $(VIDIX_PCI_FILES) \
+           version.h $(VIDIX_PCI_FILES) $(TESTS) \
            codec-cfg$(EXESUF) codecs2html$(EXESUF) codec-cfg-test$(EXESUF) \
            cpuinfo$(EXESUF) TAGS tags
 
@@ -975,4 +981,4 @@
 -include $(DEPS)
 
 .PHONY: all doxygen *install* recurse strip *tools
-.PHONY: checkheaders *clean dep depend
+.PHONY: checkheaders *clean dep depend tests