1# flac - Command-line FLAC encoder/decoder 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 19if OS_IS_WINDOWS 20win_utf8_lib = $(top_builddir)/src/share/win_utf8_io/libwin_utf8_io.la 21if HAVE_WINDRES 22flac_DEPENDENCIES = version.o 23windows_resource_link = -Wl,version.o 24endif 25endif 26 27bin_PROGRAMS = flac 28 29AM_CFLAGS = @OGG_CFLAGS@ 30AM_CPPFLAGS = -I$(top_builddir) -I$(srcdir)/include -I$(top_srcdir)/include 31EXTRA_DIST = \ 32 CMakeLists.txt \ 33 iffscan.c \ 34 version.rc 35 36flac_SOURCES = \ 37 analyze.c \ 38 decode.c \ 39 encode.c \ 40 foreign_metadata.c \ 41 main.c \ 42 local_string_utils.c \ 43 utils.c \ 44 vorbiscomment.c \ 45 analyze.h \ 46 decode.h \ 47 encode.h \ 48 foreign_metadata.h \ 49 local_string_utils.h \ 50 utils.h \ 51 vorbiscomment.h 52 53flac_LDADD = \ 54 $(top_builddir)/src/share/utf8/libutf8.la \ 55 $(top_builddir)/src/share/grabbag/libgrabbag.la \ 56 $(top_builddir)/src/share/getopt/libgetopt.la \ 57 $(top_builddir)/src/share/replaygain_analysis/libreplaygain_analysis.la \ 58 $(top_builddir)/src/share/replaygain_synthesis/libreplaygain_synthesis.la \ 59 $(top_builddir)/src/libFLAC/libFLAC.la \ 60 $(win_utf8_lib) \ 61 @LTLIBICONV@ \ 62 -lm 63 64flac_LDFLAGS = $(AM_LDFLAGS) $(windows_resource_link) 65 66CLEANFILES = flac.exe 67 68.rc.o: 69 $(RC) $(AM_CPPFLAGS) $< $@ 70