xref: /aosp_15_r20/external/flac/src/test_libFLAC/Makefile.am (revision 600f14f40d737144c998e2ec7a483122d3776fbc)
1#  test_libFLAC - Unit tester for libFLAC
2#  Copyright (C) 2000-2009  Josh Coalson
3#  Copyright (C) 2011-2023  Xiph.Org Foundation
4#
5#  This program is free software; you can redistribute it and/or
6#  modify it under the terms of the GNU General Public License
7#  as published by the Free Software Foundation; either version 2
8#  of the License, or (at your option) any later version.
9#
10#  This program is distributed in the hope that it will be useful,
11#  but WITHOUT ANY WARRANTY; without even the implied warranty of
12#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13#  GNU General Public License for more details.
14#
15#  You should have received a copy of the GNU General Public License along
16#  with this program; if not, write to the Free Software Foundation, Inc.,
17#  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18
19EXTRA_DIST = \
20	CMakeLists.txt
21
22check_PROGRAMS = test_libFLAC
23
24if OS_IS_WINDOWS
25win_utf8_lib = $(top_builddir)/src/share/win_utf8_io/libwin_utf8_io.la
26flac__no_dll = -DFLAC__NO_DLL
27endif
28
29AM_CPPFLAGS = -I$(top_builddir) -I$(srcdir)/include -I$(top_srcdir)/include -I$(top_srcdir)/src/libFLAC/include $(flac__no_dll)
30
31test_libFLAC_LDADD = \
32	$(top_builddir)/src/share/grabbag/libgrabbag.la \
33	$(top_builddir)/src/share/replaygain_analysis/libreplaygain_analysis.la \
34	$(top_builddir)/src/test_libs_common/libtest_libs_common.la \
35	$(top_builddir)/src/libFLAC/libFLAC-static.la \
36	$(win_utf8_lib) \
37	@OGG_LIBS@ \
38	-lm
39
40test_libFLAC_SOURCES = \
41	bitreader.c \
42	bitwriter.c \
43	crc.c \
44	decoders.c \
45	encoders.c \
46	endswap.c \
47	format.c \
48	main.c \
49	metadata.c \
50	metadata_manip.c \
51	metadata_object.c \
52	md5.c \
53	bitreader.h \
54	bitwriter.h \
55	crc.h \
56	decoders.h \
57	encoders.h \
58	endswap.h \
59	format.h \
60	metadata.h \
61	md5.h
62
63CLEANFILES = test_libFLAC.exe
64