Only link against libogg (and libm) if needed
[platform/upstream/flac.git] / examples / c / decode / file / Makefile.am
index 100211b..d3b2b0e 100644 (file)
@@ -1,29 +1,27 @@
 #  example_c_decode_file - Simple FLAC file decoder using libFLAC
-#  Copyright (C) 2007,2008  Josh Coalson
-# 
+#  Copyright (C) 2007,2008,2009  Josh Coalson
+#
 #  This program is free software; you can redistribute it and/or
 #  modify it under the terms of the GNU General Public License
 #  as published by the Free Software Foundation; either version 2
 #  of the License, or (at your option) any later version.
-# 
+#
 #  This program is distributed in the hope that it will be useful,
 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 #  GNU General Public License for more details.
-# 
-#  You should have received a copy of the GNU General Public License
-#  along with this program; if not, write to the Free Software
-#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+#
+#  You should have received a copy of the GNU General Public License along
+#  with this program; if not, write to the Free Software Foundation, Inc.,
+#  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 EXTRA_DIST = \
        Makefile.lite \
-       example_c_decode_file.dsp \
        example_c_decode_file.vcproj
 
+AM_CPPFLAGS = -I$(top_builddir) -I$(srcdir)/include -I$(top_srcdir)/include
 noinst_PROGRAMS = example_c_decode_file
 example_c_decode_file_LDADD = \
-       $(top_builddir)/src/libFLAC/libFLAC.la \
-       @OGG_LIBS@ \
-       @MINGW_WINSOCK_LIBS@ \
-       -lm
+       $(top_builddir)/src/libFLAC/libFLAC.la
+
 example_c_decode_file_SOURCES = main.c