Makefile.am 1.26 KB
Newer Older
1 2 3 4
## Process this file with automake to produce Makefile.in

AUTOMAKE_OPTIONS = foreign

5 6 7 8 9 10
mans = ogg123.1
docs = ogg123rc-example


if BUILD_OGG123

11 12 13 14
datadir = @datadir@
localedir = $(datadir)/locale
DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@

15
bin_PROGRAMS = ogg123
Jack Moffitt's avatar
Jack Moffitt committed
16
docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)
17
mandir = @MANDIR@
calc's avatar
calc committed
18

19
INCLUDES = @OGG_CFLAGS@ @VORBIS_CFLAGS@ @AO_CFLAGS@ @CURL_CFLAGS@ \
20
           @PTHREAD_CFLAGS@ @SHARE_CFLAGS@ @I18N_CFLAGS@
Jack Moffitt's avatar
Jack Moffitt committed
21

22 23 24
ogg123_LDADD = @SHARE_LIBS@ \
	       @VORBISFILE_LIBS@ @VORBIS_LIBS@ @OGG_LIBS@ @AO_LIBS@ \
               @SOCKET_LIBS@ @LIBICONV@ @CURL_LIBS@ @PTHREAD_CFLAGS@ \
25
               @PTHREAD_LIBS@ @I18N_LIBS@
26
ogg123_DEPENDENCIES = @SHARE_LIBS@
27
ogg123_SOURCES = audio.c buffer.c callbacks.c \
28 29
                cfgfile_options.c cmdline_options.c \
                file_transport.c format.c http_transport.c \
30 31
                ogg123.c oggvorbis_format.c playlist.c \
                status.c transport.c \
32 33
                audio.h buffer.h callbacks.h compat.h \
                cfgfile_options.h cmdline_options.h \
34
                format.h ogg123.h playlist.h status.h transport.h
35 36 37 38 39 40 41 42

man_MANS = $(mans) 
doc_DATA = $(docs)

endif

EXTRA_DIST = $(mans) $(docs)

Jack Moffitt's avatar
Jack Moffitt committed
43

44 45 46 47 48
debug:
	$(MAKE) all CFLAGS="@DEBUG@"

profile:
	$(MAKE) all CFLAGS="@PROFILE@"