# HG changeset patch # User diego # Date 1209566254 0 # Node ID bb7a4686d158c529c9dfe40bf31a6b021fd18734 # Parent f865a9546178465b96de876f183832b7d397f689 Add new tests target to build all test programs and remove them on distclean. diff -r f865a9546178 -r bb7a4686d158 Makefile --- 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