Remove unused macros
[libmpdclient/marc.git] / Makefile.am
blob80aadb2281f3d2ed29ab13eeffde10cbf7acf727
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/search.h \
24         include/mpd/song.h \
25         include/mpd/stored_playlist.h
27 AM_CPPFLAGS += -I$(srcdir)/include
29 lib_LTLIBRARIES = src/libmpdclient.la
31 src_libmpdclient_la_SOURCES = \
32         src/internal.h \
33         src/str_pool.c src/str_pool.h \
34         src/ierror.c src/ierror.h \
35         src/resolver.c src/resolver.h \
36         src/command.c \
37         src/connection.c \
38         src/directory.c \
39         src/output.c \
40         src/pair.c \
41         src/entity.c \
42         src/idle.c \
43         src/search.c \
44         src/send.c \
45         src/socket.c src/socket.h \
46         src/song.c \
47         src/status.c \
48         src/stats.c \
49         src/stored_playlist.c \
50         src/tag.c \
51         src/libmpdclient.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
66 # sparse
69 SPARSE = sparse
70 SPARSE_FLAGS =
71 SPARSE_CPPFLAGS = $(DEFAULT_INCLUDES) \
72         -I$(shell $(CC) -print-file-name=include) \
73         -I$(shell $(CC) -print-file-name=include-fixed)
74 sparse-check:
75         for i in $(src_libmpdclient_la_SOURCES); \
76         do \
77                 $(SPARSE) -I. $(CFLAGS) $(AM_CPPFLAGS) $(SPARSE_FLAGS) $(SPARSE_CPPFLAGS) $(srcdir)/$$i || exit; \
78         done