1 ACLOCAL_AMFLAGS = -I m4
2 AUTOMAKE_OPTIONS = foreign 1.10 dist-bzip2 subdir-objects
4 mpdincludedir = $(includedir)/mpd
7 include/mpd/audio_format.h \
9 include/mpd/capabilities.h \
10 include/mpd/compiler.h \
11 include/mpd/connection.h \
12 include/mpd/database.h \
13 include/mpd/directory.h \
14 include/mpd/entity.h \
19 include/mpd/parser.h \
20 include/mpd/password.h \
21 include/mpd/player.h \
22 include/mpd/playlist.h \
23 include/mpd/protocol.h \
26 include/mpd/response.h \
28 include/mpd/status.h \
31 include/mpd/output.h \
33 include/mpd/search.h \
35 include/mpd/sticker.h \
38 AM_CPPFLAGS += -I$(srcdir)/include -Iinclude
40 lib_LTLIBRARIES = src/libmpdclient.la
42 src_libmpdclient_la_SOURCES = \
43 src/async.c src/iasync.h \
46 src/ierror.c src/ierror.h \
47 src/resolver.c src/resolver.h \
54 src/fd_util.c src/fd_util.h \
70 src/quote.c src/quote.h \
75 src/send.c src/isend.h \
76 src/socket.c src/socket.h \
82 src/sync.c src/sync.h \
87 src_libmpdclient_la_LDFLAGS = -version-info @LIBMPDCLIENT_LIBTOOL_VERSION@ \
91 src_libmpdclient_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libmpdclient.ld
94 noinst_PROGRAMS = src/example test/test
96 src_example_SOURCES = src/example.c
97 src_example_LDADD = src/libmpdclient.la
99 test_test_SOURCES = test/main.c
100 test_test_LDADD = src/libmpdclient.la
107 TESTS = test/t_iso8601
108 check_PROGRAMS = $(TESTS)
110 test_t_iso8601_SOURCES = test/t_iso8601.c src/iso8601.c
111 test_t_iso8601_CPPFLAGS = -I$(srcdir)/src $(AM_CPPFLAGS)
119 SPARSE_CPPFLAGS = $(DEFAULT_INCLUDES) \
121 -I$(shell $(CC) -print-file-name=include) \
122 -I$(shell $(CC) -print-file-name=include-fixed)
124 $(SPARSE) -I. $(CFLAGS) $(AM_CPPFLAGS) $(SPARSE_FLAGS) $(SPARSE_CPPFLAGS) $(addprefix $(srcdir)/,$(src_libmpdclient_la_SOURCES))
130 doc_DATA = README COPYING NEWS
134 doc/api/html/index.html: doc/doxygen.conf
136 [ "$(srcdir)" = "." ] || sed '/INPUT *=/ s/\([^ ]\+\/\)/$(subst /,\/,$(srcdir))\/\1/g' $(srcdir)/doc/doxygen.conf >doc/doxygen.conf
137 $(DOXYGEN) doc/doxygen.conf
139 all-local: doc/api/html/index.html
144 install-data-local: doc/api/html/index.html
145 $(mkinstalldirs) $(DESTDIR)$(docdir)/html
146 $(INSTALL_DATA) -c -m 644 doc/api/html/*.* \
147 $(DESTDIR)$(docdir)/html
150 rm -f $(DESTDIR)$(docdir)/html/*.*
152 upload: doc/api/html/index.html
153 rsync -vpruz --delete doc/api/html/ \
154 cirrus@www.musicpd.org:/var/www/musicpd.org/www/doc/libmpdclient/ \
155 --chmod=Dug+rwx,Do+rx,Fug+rw,Fo+r
163 pkgconfigdir = $(libdir)/pkgconfig
164 pkgconfig_DATA = libmpdclient.pc