stats: make "struct mpd_stats" and "struct mpd_search_stats" opaque
[libmpdclient/marc.git] / Makefile.am
blobfb931a008059adf24cb2643ef614aee8d9e77836
1 ACLOCAL_AMFLAGS = -I m4
2 AUTOMAKE_OPTIONS = foreign 1.9 dist-bzip2
4 doc_DATA = README
5 EXTRA_DIST = libmpdclient.ld
7 mpdincludedir = $(includedir)/mpd
8 mpdinclude_HEADERS = \
9         include/mpd/client.h \
10         include/mpd/command.h \
11         include/mpd/connection.h \
12         include/mpd/directory.h \
13         include/mpd/entity.h \
14         include/mpd/error.h \
15         include/mpd/idle.h \
16         include/mpd/protocol.h \
17         include/mpd/send.h \
18         include/mpd/status.h \
19         include/mpd/stats.h \
20         include/mpd/tag.h \
21         include/mpd/output.h \
22         include/mpd/pair.h \
23         include/mpd/song.h \
24         include/mpd/stored_playlist.h
26 AM_CPPFLAGS += -I$(srcdir)/include
28 lib_LTLIBRARIES = src/libmpdclient.la
30 src_libmpdclient_la_SOURCES = \
31         src/internal.h \
32         src/str_pool.c src/str_pool.h \
33         src/ierror.c src/ierror.h \
34         src/resolver.c src/resolver.h \
35         src/command.c \
36         src/connection.c \
37         src/directory.c \
38         src/output.c \
39         src/pair.c \
40         src/entity.c \
41         src/idle.c \
42         src/send.c \
43         src/socket.c src/socket.h \
44         src/song.c \
45         src/status.c \
46         src/stats.c \
47         src/stored_playlist.c \
48         src/tag.c \
49         src/libmpdclient.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
64 # sparse
67 SPARSE = sparse
68 SPARSE_FLAGS =
69 SPARSE_CPPFLAGS = $(DEFAULT_INCLUDES) \
70         -I$(shell $(CC) -print-file-name=include) \
71         -I$(shell $(CC) -print-file-name=include-fixed)
72 sparse-check:
73         for i in $(src_libmpdclient_la_SOURCES); \
74         do \
75                 $(SPARSE) -I. $(CFLAGS) $(AM_CPPFLAGS) $(SPARSE_FLAGS) $(SPARSE_CPPFLAGS) $(srcdir)/$$i || exit; \
76         done