1159b3361Sopenharmony_ci## $Id$
2159b3361Sopenharmony_ci
3159b3361Sopenharmony_ciinclude $(top_srcdir)/Makefile.am.global
4159b3361Sopenharmony_ci
5159b3361Sopenharmony_ci.PHONY: test
6159b3361Sopenharmony_ci
7159b3361Sopenharmony_ciSUBDIRS = mpglib libmp3lame frontend Dll doc include misc dshow ACM \
8159b3361Sopenharmony_ci	mac macosx vc_solution
9159b3361Sopenharmony_ci
10159b3361Sopenharmony_ciCLEANFILES = testcase.new.mp3
11159b3361Sopenharmony_ci
12159b3361Sopenharmony_ciEXTRA_DIST = \
13159b3361Sopenharmony_ci	API \
14159b3361Sopenharmony_ci	DEFINES \
15159b3361Sopenharmony_ci	HACKING \
16159b3361Sopenharmony_ci	INSTALL.configure \
17159b3361Sopenharmony_ci	LICENSE \
18159b3361Sopenharmony_ci	Makefile.MSVC \
19159b3361Sopenharmony_ci	Makefile.unix \
20159b3361Sopenharmony_ci	Makefile.am.global \
21159b3361Sopenharmony_ci	README.WINGTK \
22159b3361Sopenharmony_ci	STYLEGUIDE \
23159b3361Sopenharmony_ci	USAGE \
24159b3361Sopenharmony_ci	configMS.h \
25159b3361Sopenharmony_ci	debian \
26159b3361Sopenharmony_ci	lame.bat \
27159b3361Sopenharmony_ci	lame.spec.in \
28159b3361Sopenharmony_ci	lame.spec \
29159b3361Sopenharmony_ci	testcase.mp3 \
30159b3361Sopenharmony_ci	testcase.wav
31159b3361Sopenharmony_ci
32159b3361Sopenharmony_ci#
33159b3361Sopenharmony_ci# The differences depend on the used processor architecture, the used
34159b3361Sopenharmony_ci# compiler and the used options for the compiler, so make test may
35159b3361Sopenharmony_ci# show some differences. You should only be concerned if you are a
36159b3361Sopenharmony_ci# LAME developer and the number of differences change after you
37159b3361Sopenharmony_ci# modified the source.
38159b3361Sopenharmony_ci#
39159b3361Sopenharmony_citestcase.new.mp3: testcase.wav frontend/lame$(EXEEXT)
40159b3361Sopenharmony_ci	time frontend/lame$(EXEEXT) --nores $(top_srcdir)/testcase.wav testcase.new.mp3 || $(RM_F) testcase.new.mp3
41159b3361Sopenharmony_ci
42159b3361Sopenharmony_citest: testcase.mp3 testcase.new.mp3
43159b3361Sopenharmony_ci	@echo
44159b3361Sopenharmony_ci	@echo "The following output has value only for a LAME-developer, do not make _any_"
45159b3361Sopenharmony_ci	@echo "assumptions about what this number means. You do not need to care about it."
46159b3361Sopenharmony_ci	@cmp -l testcase.new.mp3 $(top_srcdir)/testcase.mp3 | wc -l
47159b3361Sopenharmony_ci
48159b3361Sopenharmony_citestupdate: testcase.mp3 testcase.new.mp3
49159b3361Sopenharmony_ci	cp testcase.new.mp3 $(top_srcdir)/testcase.mp3
50159b3361Sopenharmony_ci
51159b3361Sopenharmony_citestg: frontend/mp3x$(EXEEXT) $(top_srcdir)/../test/castanets.wav
52159b3361Sopenharmony_ci	frontend/mp3x$(EXEEXT) -h $(top_srcdir)/../test/castanets.wav
53159b3361Sopenharmony_ci
54159b3361Sopenharmony_ciupdate:
55159b3361Sopenharmony_ci	cd $(top_srcdir) && svn update || true
56159b3361Sopenharmony_ci
57159b3361Sopenharmony_cidiff:
58159b3361Sopenharmony_ci	cd $(top_srcdir) && svn diff || true
59159b3361Sopenharmony_ci
60159b3361Sopenharmony_cifrontend/lame$(EXEEXT):
61159b3361Sopenharmony_ci	$(MAKE) $(MAKEFLAGS)
62159b3361Sopenharmony_ci
63159b3361Sopenharmony_cifrontend/mp3x$(EXEEXT): frontend/lame$(EXEEXT)
64159b3361Sopenharmony_ci
65