screen: remove unnecessary doupdate() call from screen_init()
[ncmpc.git] / Makefile.am
blob5f1abbae1fff8761fffa86b55046303a8303aae0
1 SUBDIRS = \
2   po
4 ACLOCAL_AMFLAGS = -I m4
5 AUTOMAKE_OPTIONS = foreign 1.11 dist-xz subdir-objects
7 AM_CPPFLAGS = \
8         $(CURSES_CFLAGS) \
9         $(LIBMPDCLIENT_CFLAGS) \
10         $(GLIB_CFLAGS) \
11         $(LIBLIRCCLIENT_CFLAGS) \
12         -DLOCALE_DIR=\""$(datadir)/locale"\"\
13         -DSYSCONFDIR=\""$(sysconfdir)"\"
15 bin_PROGRAMS = src/ncmpc
17 src_ncmpc_LDADD = \
18         $(CURSES_LIBS) \
19         $(LIBMPDCLIENT_LIBS) \
20         $(GLIB_LIBS) \
21         $(LIBLIRCCLIENT_LIBS)
23 src_ncmpc_SOURCES = \
24         src/Compiler.h \
25         src/ncmpc.h \
26         src/defaults.h \
27         src/ncmpc_curses.h \
28         src/i18n.h \
29         src/main.c \
30         src/gidle.c src/gidle.h \
31         src/mpdclient.c src/mpdclient.h \
32         src/callbacks.c src/callbacks.h \
33         src/playlist.c src/playlist.h \
34         src/filelist.c src/filelist.h \
35         src/options.c src/options.h \
36         src/command.c src/command.h \
37         src/keyboard.c src/keyboard.h \
38         src/ncfix.h \
39         src/ncu.c src/ncu.h \
40         src/player_command.c src/player_command.h \
41         src/title_bar.c src/title_bar.h \
42         src/progress_bar.c src/progress_bar.h \
43         src/status_bar.c src/status_bar.h \
44         src/screen.c src/screen.h \
45         src/screen_interface.h \
46         src/screen_utils.c src/screen_utils.h \
47         src/screen_status.c src/screen_status.h \
48         src/screen_list.c src/screen_list.h \
49         src/screen_find.c src/screen_find.h \
50         src/screen_client.c src/screen_client.h \
51         src/screen_queue.c src/screen_queue.h \
52         src/screen_browser.c src/screen_browser.h \
53         src/screen_file.c src/screen_file.h \
54         src/list_window.c src/list_window.h \
55         src/paint.h \
56         src/song_paint.c src/song_paint.h \
57         src/colors.c src/colors.h \
58         src/charset.c src/charset.h \
59         src/window.h \
60         src/wreadln.c src/wreadln.h \
61         src/strfsong.c src/strfsong.h \
62         src/utils.c src/utils.h
64 if ENABLE_ASYNC_CONNECT
65 src_ncmpc_SOURCES += \
66         src/net/types.h \
67         src/net/socket.c src/net/socket.h \
68         src/net/resolver.c src/net/resolver.h \
69         src/net/async_connect.c src/net/async_connect.h \
70         src/net/async_rconnect.c src/net/async_rconnect.h \
71         src/aconnect.c src/aconnect.h
72 endif
75 # Windows resource file
78 src/win/ncmpc_win32_rc.$(OBJEXT): src/win/ncmpc_win32_rc.rc
79         $(WINDRES) -i $< -o $@
81 if HAVE_WINDOWS
82 noinst_DATA = src/win/ncmpc_win32_rc.rc
84 src_ncmpc_DEPENDENCIES = src/win/ncmpc_win32_rc.$(OBJEXT)
85 src_ncmpc_LDFLAGS = -Wl,src/win/ncmpc_win32_rc.$(OBJEXT)
86 else
87 src_ncmpc_SOURCES += src/signals.c src/signals.h
88 endif
90 if NCMPC_MINI
91 else
92 src_ncmpc_SOURCES += \
93         src/hscroll.c src/hscroll.h \
94         src/match.c src/match.h \
95         src/conf.c src/conf.h
96 endif
98 if ENABLE_HELP_SCREEN
99 src_ncmpc_SOURCES += src/screen_help.c src/screen_help.h
100 endif
102 if ENABLE_ARTIST_SCREEN
103 src_ncmpc_SOURCES += src/screen_artist.c src/screen_artist.h
104 endif
106 if ENABLE_SEARCH_SCREEN
107 src_ncmpc_SOURCES += src/screen_search.c src/screen_search.h
108 endif
110 if ENABLE_SONG_SCREEN
111 src_ncmpc_SOURCES += src/screen_song.c src/screen_song.h
112 endif
114 if ENABLE_KEYDEF_SCREEN
115 src_ncmpc_SOURCES += src/screen_keydef.c src/screen_keydef.h
116 endif
118 if ENABLE_PLUGIN_LIBRARY
119 src_ncmpc_SOURCES += src/plugin.c src/plugin.h
120 endif
122 if ENABLE_SCREEN_TEXT
123 src_ncmpc_SOURCES += src/screen_text.c src/screen_text.h
124 endif
126 if ENABLE_LYRICS_SCREEN
127 src_ncmpc_SOURCES += \
128         src/screen_lyrics.c src/screen_lyrics.h \
129         src/lyrics.c src/lyrics.h
130 endif
132 if ENABLE_OUTPUTS_SCREEN
133 src_ncmpc_SOURCES += src/screen_outputs.c src/screen_outputs.h
134 endif
136 if ENABLE_CHAT_SCREEN
137 src_ncmpc_SOURCES += src/screen_chat.c src/screen_chat.h
138 endif
140 if ENABLE_LIRC
141 src_ncmpc_SOURCES += src/lirc.c src/lirc.h
142 endif
145 # build the smallest possible ncmpc binary
146 src/ncmpc-tiny: $(filter-out %.h,$(src_ncmpc_SOURCES))
147         $(COMPILE) --combine -fwhole-program $(src_ncmpc_LDFLAGS) $(src_ncmpc_LDADD) $(LIBS) $^ -o $@
148         strip --strip-all $@
150 CLEANFILES = src/ncmpc-tiny
153 # test suite
156 check_PROGRAMS = \
157         test/run_hscroll
159 test_run_hscroll_SOURCES = test/run_hscroll.c src/hscroll.c src/charset.c
160 test_run_hscroll_CPPFLAGS = -I$(srcdir)/src $(AM_CPPFLAGS)
161 test_run_hscroll_LDADD = @CURSES_LIB@ $(GLIB_LIBS)
164 # sparse
167 SPARSE = sparse
168 SPARSE_FLAGS = -Wdecl -Wdefault-bitfield-sign -Wdo-while -Wenum-mismatch \
169         -Wnon-pointer-null -Wptr-subtraction-blows -Wreturn-void \
170         -Wshadow -Wtypesign \
171         -D__transparent_union__=unused
173 sparse-check:
174         $(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)
177 # lyrics plugins
180 lyrics_plugins = lyrics/10-hd.sh lyrics/20-lyricwiki.rb
182 if ENABLE_LYRICS_SCREEN
184 lyricsdir = $(lyrics_plugin_dir)
185 lyrics_SCRIPTS = $(lyrics_plugins)
187 endif
190 # Documentation
193 doc_DATA = \
194         doc/config.sample doc/keys.sample doc/ncmpc.lirc \
195         AUTHORS NEWS README
196 man_MANS = doc/ncmpc.1
198 if ENABLE_DOCUMENTATION
199 doc/api/html/index.html: doc/doxygen.conf
200         @mkdir -p $(@D)
201         $(DOXYGEN) $<
203 all-local: doc/api/html/index.html
205 clean-local:
206         rm -rf doc/api
208 # copied from MPD, disabled  --jn
209 #---------------------------------------
210 #install-data-local: doc/api/html/index.html
211 #       $(mkinstalldirs) $(DESTDIR)$(docdir)/api/html
212 #       $(INSTALL_DATA) -c -m 644 doc/api/html/*.* \
213 #               $(DESTDIR)$(docdir)/api/html
215 #uninstall-local:
216 #       rm -f $(DESTDIR)$(docdir)/api/html/*.*
217 #---------------------------------------
218 endif
221 # Distribution
224 EXTRA_DIST = autogen.sh \
225         $(lyrics_plugins) \
226         $(man_MANS) $(doc_DATA) doc/doxygen.conf \
227         src/win/ncmpc_win32_rc.rc.in