Code

screen: moved code to status_bar.c
[ncmpc.git] / Makefile.am
1 SUBDIRS = \
2   po
4 ACLOCAL_AMFLAGS = -I m4
5 AUTOMAKE_OPTIONS = foreign 1.9 dist-bzip2
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/mpdclient.h \
17         src/playlist.h \
18         src/filelist.h \
19         src/options.h \
20         src/conf.h \
21         src/command.h \
22         src/ncu.h \
23         src/player_command.h \
24         src/window.h \
25         src/title_bar.h \
26         src/progress_bar.h \
27         src/status_bar.h \
28         src/screen.h \
29         src/screen_list.h \
30         src/screen_play.h \
31         src/screen_utils.h \
32         src/screen_client.h \
33         src/list_window.h \
34         src/colors.h \
35         src/hscroll.h \
36         src/charset.h \
37         src/match.h \
38         src/wreadln.h \
39         src/strfsong.h \
40         src/utils.h \
41         src/ncmpc.h \
42         src/defaults.h \
43         src/i18n.h \
44         src/screen_browser.h \
45         src/screen_text.h \
46         src/plugin.h \
47         src/lyrics.h \
48         src/str_pool.h \
49         src/lirc.h
51 bin_PROGRAMS = src/ncmpc
53 src_ncmpc_LDADD = \
54         $(LIBMPDCLIENT_LIBS) \
55         $(GLIB_LIBS) \
56         $(LIBLIRCCLIENT_LIBS)
58 src_ncmpc_SOURCES = \
59         $(ncmpc_headers) \
60         src/resolver.c \
61         src/main.c \
62         src/mpdclient.c \
63         src/playlist.c \
64         src/filelist.c \
65         src/options.c \
66         src/command.c \
67         src/ncu.c \
68         src/player_command.c \
69         src/title_bar.c \
70         src/progress_bar.c \
71         src/status_bar.c \
72         src/screen.c \
73         src/screen_list.c \
74         src/screen_utils.c \
75         src/screen_client.c \
76         src/screen_play.c \
77         src/screen_browser.c \
78         src/screen_file.c \
79         src/list_window.c \
80         src/colors.c \
81         src/charset.c \
82         src/wreadln.c \
83         src/strfsong.c \
84         src/utils.c \
85         src/str_pool.c
87 if NCMPC_MINI
88 else
89 src_ncmpc_SOURCES += \
90         src/hscroll.c \
91         src/match.c \
92         src/conf.c
93 endif
95 if ENABLE_HELP_SCREEN
96 src_ncmpc_SOURCES += src/screen_help.c
97 endif
99 if ENABLE_ARTIST_SCREEN
100 src_ncmpc_SOURCES += src/screen_artist.c
101 endif
103 if ENABLE_SEARCH_SCREEN
104 src_ncmpc_SOURCES += src/screen_search.c
105 endif
107 if ENABLE_SONG_SCREEN
108 src_ncmpc_SOURCES += src/screen_song.c
109 endif
111 if ENABLE_KEYDEF_SCREEN
112 src_ncmpc_SOURCES += src/screen_keydef.c
113 endif
115 if ENABLE_PLUGIN_LIBRARY
116 src_ncmpc_SOURCES += src/plugin.c
117 endif
119 if ENABLE_SCREEN_TEXT
120 src_ncmpc_SOURCES += src/screen_text.c
121 endif
123 if ENABLE_LYRICS_SCREEN
124 src_ncmpc_SOURCES += src/screen_lyrics.c src/lyrics.c
125 endif
127 if ENABLE_OUTPUTS_SCREEN
128 src_ncmpc_SOURCES += src/screen_outputs.c
129 endif
131 if ENABLE_LIRC
132 src_ncmpc_SOURCES += src/lirc.c
133 endif
136 # build the smalles possible ncmpc binary
137 src/ncmpc-tiny: $(filter-out %.h,$(src_ncmpc_SOURCES))
138         $(COMPILE) --combine -fwhole-program $(src_ncmpc_LDFLAGS) $(src_ncmpc_LDADD) $(LIBS) $^ -o $@
139         strip --strip-all $@
141 CLEANFILES = src/ncmpc-tiny
144 # sparse
147 SPARSE = sparse
148 SPARSE_FLAGS = -Wdecl -Wdefault-bitfield-sign -Wdo-while -Wenum-mismatch \
149         -Wnon-pointer-null -Wptr-subtraction-blows -Wreturn-void \
150         -Wshadow -Wtypesign \
151         -D__transparent_union__=unused
153 sparse-check:
154         $(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)
157 # lyrics plugins
160 lyrics_plugins = lyrics/01-hd.sh lyrics/02-lyricwiki.rb lyrics/03-leoslyrics.py
162 if ENABLE_LYRICS_SCREEN
164 lyricsdir = $(lyrics_plugin_dir)
165 lyrics_SCRIPTS = $(lyrics_plugins)
167 endif
170 # Documentation
173 doc_DATA = \
174         doc/config.sample doc/keys.sample doc/ncmpc.lirc \
175         AUTHORS NEWS README
176 man_MANS = doc/ncmpc.1
179 # Distribution
182 EXTRA_DIST = autogen.sh \
183         $(lyrics_plugins) \
184         $(man_MANS) $(doc_DATA)