1 ACLOCAL_AMFLAGS = -I m4
2 AUTOMAKE_OPTIONS = foreign 1.9 dist-bzip2
5 EXTRA_DIST = libmpdclient.ld
7 mpdincludedir = $(includedir)/mpd
10 include/mpd/command.h \
11 include/mpd/connection.h \
12 include/mpd/directory.h \
13 include/mpd/entity.h \
16 include/mpd/protocol.h \
18 include/mpd/status.h \
21 include/mpd/output.h \
23 include/mpd/search.h \
25 include/mpd/stored_playlist.h
27 AM_CPPFLAGS += -I$(srcdir)/include
29 lib_LTLIBRARIES = src/libmpdclient.la
31 src_libmpdclient_la_SOURCES = \
33 src/str_pool.c src/str_pool.h \
34 src/ierror.c src/ierror.h \
35 src/resolver.c src/resolver.h \
45 src/socket.c src/socket.h \
49 src/stored_playlist.c \
53 src_libmpdclient_la_LDFLAGS = -version-info @LIBMPDCLIENT_LIBTOOL_VERSION@ \
54 -Wl,--version-script=$(srcdir)/libmpdclient.ld
56 noinst_PROGRAMS = src/example test/test
58 src_example_SOURCES = src/example.c
59 src_example_LDADD = src/libmpdclient.la
61 test_test_SOURCES = test/main.c
62 test_test_LDADD = src/libmpdclient.la
71 SPARSE_CPPFLAGS = $(DEFAULT_INCLUDES) \
72 -I$(shell $(CC) -print-file-name=include) \
73 -I$(shell $(CC) -print-file-name=include-fixed)
75 for i in $(src_libmpdclient_la_SOURCES); \
77 $(SPARSE) -I. $(CFLAGS) $(AM_CPPFLAGS) $(SPARSE_FLAGS) $(SPARSE_CPPFLAGS) $(srcdir)/$$i || exit; \