Code

screen_browse: removed unnecessary color selection
[ncmpc.git] / Makefile.am
1 SUBDIRS = \
2   po
4 ACLOCAL_AMFLAGS = -I m4
5 AUTOMAKE_OPTIONS = foreign 1.10 dist-bzip2 subdir-objects
7 AM_CPPFLAGS = \
8         $(LIBMPDCLIENT_CFLAGS) \
9         $(GLIB_CFLAGS) \
10         $(LIBLIRCCLIENT_CFLAGS) \
11         -DLOCALE_DIR=\""$(datadir)/locale"\"\
12         -DSYSCONFDIR=\""$(sysconfdir)"\"
14 ncmpc_headers = \
15         src/resolver.h \
16         src/gidle.h \
17         src/mpdclient.h \
18         src/playlist.h \
19         src/filelist.h \
20         src/options.h \
21         src/conf.h \
22         src/command.h \
23         src/ncu.h \
24         src/player_command.h \
25         src/window.h \
26         src/title_bar.h \
27         src/progress_bar.h \
28         src/status_bar.h \
29         src/screen.h \
30         src/screen_message.h \
31         src/screen_interface.h \
32         src/screen_list.h \
33         src/screen_find.h \
34         src/screen_utils.h \
35         src/screen_client.h \
36         src/list_window.h \
37         src/song_paint.h \
38         src/colors.h \
39         src/paint.h \
40         src/hscroll.h \
41         src/charset.h \
42         src/match.h \
43         src/wreadln.h \
44         src/strfsong.h \
45         src/utils.h \
46         src/ncmpc.h \
47         src/defaults.h \
48         src/i18n.h \
49         src/screen_help.h \
50         src/screen_queue.h \
51         src/screen_file.h \
52         src/screen_artist.h \
53         src/screen_browser.h \
54         src/screen_search.h \
55         src/screen_song.h \
56         src/screen_keydef.h \
57         src/screen_lyrics.h \
58         src/screen_outputs.h \
59         src/screen_text.h \
60         src/plugin.h \
61         src/lyrics.h \
62         src/str_pool.h \
63         src/lirc.h
65 bin_PROGRAMS = src/ncmpc
67 src_ncmpc_LDADD = \
68         $(LIBMPDCLIENT_LIBS) \
69         $(GLIB_LIBS) \
70         $(LIBLIRCCLIENT_LIBS)
72 src_ncmpc_SOURCES = \
73         $(ncmpc_headers) \
74         src/resolver.c \
75         src/main.c \
76         src/gidle.c \
77         src/mpdclient.c \
78         src/playlist.c \
79         src/filelist.c \
80         src/options.c \
81         src/command.c \
82         src/ncu.c \
83         src/player_command.c \
84         src/title_bar.c \
85         src/progress_bar.c \
86         src/status_bar.c \
87         src/screen.c \
88         src/screen_message.c \
89         src/screen_list.c \
90         src/screen_find.c \
91         src/screen_utils.c \
92         src/screen_client.c \
93         src/screen_queue.c \
94         src/screen_browser.c \
95         src/screen_file.c \
96         src/list_window.c \
97         src/song_paint.c \
98         src/colors.c \
99         src/charset.c \
100         src/wreadln.c \
101         src/strfsong.c \
102         src/utils.c \
103         src/str_pool.c
105 if NCMPC_MINI
106 else
107 src_ncmpc_SOURCES += \
108         src/hscroll.c \
109         src/match.c \
110         src/conf.c
111 endif
113 if ENABLE_HELP_SCREEN
114 src_ncmpc_SOURCES += src/screen_help.c
115 endif
117 if ENABLE_ARTIST_SCREEN
118 src_ncmpc_SOURCES += src/screen_artist.c
119 endif
121 if ENABLE_SEARCH_SCREEN
122 src_ncmpc_SOURCES += src/screen_search.c
123 endif
125 if ENABLE_SONG_SCREEN
126 src_ncmpc_SOURCES += src/screen_song.c
127 endif
129 if ENABLE_KEYDEF_SCREEN
130 src_ncmpc_SOURCES += src/screen_keydef.c
131 endif
133 if ENABLE_PLUGIN_LIBRARY
134 src_ncmpc_SOURCES += src/plugin.c
135 endif
137 if ENABLE_SCREEN_TEXT
138 src_ncmpc_SOURCES += src/screen_text.c
139 endif
141 if ENABLE_LYRICS_SCREEN
142 src_ncmpc_SOURCES += src/screen_lyrics.c src/lyrics.c
143 endif
145 if ENABLE_OUTPUTS_SCREEN
146 src_ncmpc_SOURCES += src/screen_outputs.c
147 endif
149 if ENABLE_LIRC
150 src_ncmpc_SOURCES += src/lirc.c
151 endif
154 # build the smalles possible ncmpc binary
155 src/ncmpc-tiny: $(filter-out %.h,$(src_ncmpc_SOURCES))
156         $(COMPILE) --combine -fwhole-program $(src_ncmpc_LDFLAGS) $(src_ncmpc_LDADD) $(LIBS) $^ -o $@
157         strip --strip-all $@
159 CLEANFILES = src/ncmpc-tiny
162 # test suite
165 check_PROGRAMS = \
166         test/run_hscroll
168 test_run_hscroll_SOURCES = test/run_hscroll.c src/hscroll.c src/charset.c
169 test_run_hscroll_CPPFLAGS = -Isrc $(AM_CPPFLAGS)
170 test_run_hscroll_LDFLAGS = $(GLIB_LIBS)
173 # sparse
176 SPARSE = sparse
177 SPARSE_FLAGS = -Wdecl -Wdefault-bitfield-sign -Wdo-while -Wenum-mismatch \
178         -Wnon-pointer-null -Wptr-subtraction-blows -Wreturn-void \
179         -Wshadow -Wtypesign \
180         -D__transparent_union__=unused
182 sparse-check:
183         $(SPARSE) -I. -I/usr/lib/gcc/$(shell gcc -dumpmachine)/4.3/include -I/usr/lib/gcc/$(shell gcc -dumpmachine)/4.3/include-fixed $(AM_CPPFLAGS) $(SPARSE_FLAGS) $(src_ncmpc_SOURCES)
186 # lyrics plugins
189 lyrics_plugins = lyrics/01-hd.sh lyrics/02-lyricwiki.rb lyrics/03-leoslyrics.py
191 if ENABLE_LYRICS_SCREEN
193 lyricsdir = $(lyrics_plugin_dir)
194 lyrics_SCRIPTS = $(lyrics_plugins)
196 endif
199 # Documentation
202 doc_DATA = \
203         doc/config.sample doc/keys.sample doc/ncmpc.lirc \
204         AUTHORS NEWS README
205 man_MANS = doc/ncmpc.1
208 # Distribution
211 EXTRA_DIST = autogen.sh \
212         $(lyrics_plugins) \
213         $(man_MANS) $(doc_DATA)