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 \
24 include/mpd/stored_playlist.h
26 AM_CPPFLAGS += -I$(srcdir)/include
28 lib_LTLIBRARIES = src/libmpdclient.la
30 src_libmpdclient_la_SOURCES = \
32 src/str_pool.c src/str_pool.h \
33 src/ierror.c src/ierror.h \
34 src/resolver.c src/resolver.h \
43 src/socket.c src/socket.h \
47 src/stored_playlist.c \
51 src_libmpdclient_la_LDFLAGS = -version-info @LIBMPDCLIENT_LIBTOOL_VERSION@ \
52 -Wl,--version-script=$(srcdir)/libmpdclient.ld
54 noinst_PROGRAMS = src/example test/test
56 src_example_SOURCES = src/example.c
57 src_example_LDADD = src/libmpdclient.la
59 test_test_SOURCES = test/main.c
60 test_test_LDADD = src/libmpdclient.la
69 SPARSE_CPPFLAGS = $(DEFAULT_INCLUDES) \
70 -I$(shell $(CC) -print-file-name=include) \
71 -I$(shell $(CC) -print-file-name=include-fixed)
73 for i in $(src_libmpdclient_la_SOURCES); \
75 $(SPARSE) -I. $(CFLAGS) $(AM_CPPFLAGS) $(SPARSE_FLAGS) $(SPARSE_CPPFLAGS) $(srcdir)/$$i || exit; \