Recognizes if input is ogg or not.
[xiph.git] / vorbis-tools / ogg123 / Makefile.am
blobedfeb909dc782bd86816e61a5fa4417698202ceb
1 ## Process this file with automake to produce Makefile.in
2 if HAVE_LIBFLAC
3 flac_sources = flac_format.c easyflac.c easyflac.h 
4 else
5 flac_sources =
6 endif
7 if HAVE_LIBSPEEX
8 speex_sources = speex_format.c
9 else
10 speex_sources =
11 endif
13 datadir = @datadir@
14 localedir = $(datadir)/locale
15 DEFS = -DSYSCONFDIR=\"$(sysconfdir)\" -DLOCALEDIR=\"$(localedir)\" @DEFS@
17 docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)
18 mandir = @MANDIR@
20 bin_PROGRAMS = ogg123
22 INCLUDES = @OGG_CFLAGS@ @VORBIS_CFLAGS@ @AO_CFLAGS@ @CURL_CFLAGS@ \
23            @PTHREAD_CFLAGS@ @SHARE_CFLAGS@ @I18N_CFLAGS@
25 ogg123_LDADD = @SHARE_LIBS@ \
26                @VORBISFILE_LIBS@ @VORBIS_LIBS@ @OGG_LIBS@ @AO_LIBS@ \
27                @SOCKET_LIBS@ @LIBICONV@ @CURL_LIBS@ @PTHREAD_CFLAGS@ \
28                @PTHREAD_LIBS@ @I18N_LIBS@ @FLAC_LIBS@ @SPEEX_LIBS@
30 ogg123_DEPENDENCIES = @SHARE_LIBS@
31 ogg123_SOURCES = audio.c buffer.c callbacks.c \
32                 cfgfile_options.c cmdline_options.c \
33                 file_transport.c format.c http_transport.c \
34                 ogg123.c oggvorbis_format.c playlist.c \
35                 status.c remote.c transport.c vorbis_comments.c \
36                 audio.h buffer.h callbacks.h compat.h \
37                 cfgfile_options.h cmdline_options.h \
38                 format.h ogg123.h playlist.h status.h \
39                 transport.h remote.h vorbis_comments.h \
40                 $(flac_sources) $(speex_sources)
42 man_MANS = ogg123.1
43 doc_DATA = ogg123rc-example
45 EXTRA_ogg123_SOURCES = \
46                 $(man_MANS) $(doc_DATA)
48 debug:
49         $(MAKE) all CFLAGS="@DEBUG@"
51 profile:
52         $(MAKE) all CFLAGS="@PROFILE@"