0a12f3ae49bc5a4c876ea376777eb55e4e3a3074
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/screen.h \
28 src/screen_list.h \
29 src/screen_play.h \
30 src/screen_utils.h \
31 src/screen_client.h \
32 src/list_window.h \
33 src/colors.h \
34 src/hscroll.h \
35 src/charset.h \
36 src/match.h \
37 src/wreadln.h \
38 src/strfsong.h \
39 src/utils.h \
40 src/ncmpc.h \
41 src/defaults.h \
42 src/i18n.h \
43 src/screen_browser.h \
44 src/screen_text.h \
45 src/plugin.h \
46 src/lyrics.h \
47 src/str_pool.h \
48 src/lirc.h
50 bin_PROGRAMS = src/ncmpc
52 src_ncmpc_LDADD = \
53 $(LIBMPDCLIENT_LIBS) \
54 $(GLIB_LIBS) \
55 $(LIBLIRCCLIENT_LIBS)
57 src_ncmpc_SOURCES = \
58 $(ncmpc_headers) \
59 src/resolver.c \
60 src/main.c \
61 src/mpdclient.c \
62 src/playlist.c \
63 src/filelist.c \
64 src/options.c \
65 src/command.c \
66 src/ncu.c \
67 src/player_command.c \
68 src/title_bar.c \
69 src/progress_bar.c \
70 src/screen.c \
71 src/screen_list.c \
72 src/screen_utils.c \
73 src/screen_client.c \
74 src/screen_play.c \
75 src/screen_browser.c \
76 src/screen_file.c \
77 src/list_window.c \
78 src/colors.c \
79 src/charset.c \
80 src/wreadln.c \
81 src/strfsong.c \
82 src/utils.c \
83 src/str_pool.c
85 if NCMPC_MINI
86 else
87 src_ncmpc_SOURCES += \
88 src/hscroll.c \
89 src/match.c \
90 src/conf.c
91 endif
93 if ENABLE_HELP_SCREEN
94 src_ncmpc_SOURCES += src/screen_help.c
95 endif
97 if ENABLE_ARTIST_SCREEN
98 src_ncmpc_SOURCES += src/screen_artist.c
99 endif
101 if ENABLE_SEARCH_SCREEN
102 src_ncmpc_SOURCES += src/screen_search.c
103 endif
105 if ENABLE_SONG_SCREEN
106 src_ncmpc_SOURCES += src/screen_song.c
107 endif
109 if ENABLE_KEYDEF_SCREEN
110 src_ncmpc_SOURCES += src/screen_keydef.c
111 endif
113 if ENABLE_PLUGIN_LIBRARY
114 src_ncmpc_SOURCES += src/plugin.c
115 endif
117 if ENABLE_SCREEN_TEXT
118 src_ncmpc_SOURCES += src/screen_text.c
119 endif
121 if ENABLE_LYRICS_SCREEN
122 src_ncmpc_SOURCES += src/screen_lyrics.c src/lyrics.c
123 endif
125 if ENABLE_OUTPUTS_SCREEN
126 src_ncmpc_SOURCES += src/screen_outputs.c
127 endif
129 if ENABLE_LIRC
130 src_ncmpc_SOURCES += src/lirc.c
131 endif
134 # build the smalles possible ncmpc binary
135 src/ncmpc-tiny: $(filter-out %.h,$(src_ncmpc_SOURCES))
136 $(COMPILE) --combine -fwhole-program $(src_ncmpc_LDFLAGS) $(src_ncmpc_LDADD) $(LIBS) $^ -o $@
137 strip --strip-all $@
139 CLEANFILES = src/ncmpc-tiny
141 #
142 # sparse
143 #
145 SPARSE = sparse
146 SPARSE_FLAGS = -Wdecl -Wdefault-bitfield-sign -Wdo-while -Wenum-mismatch \
147 -Wnon-pointer-null -Wptr-subtraction-blows -Wreturn-void \
148 -Wshadow -Wtypesign \
149 -D__transparent_union__=unused
151 sparse-check:
152 $(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)
154 #
155 # lyrics plugins
156 #
158 lyrics_plugins = lyrics/01-hd.sh lyrics/02-lyricwiki.rb lyrics/03-leoslyrics.py
160 if ENABLE_LYRICS_SCREEN
162 lyricsdir = $(lyrics_plugin_dir)
163 lyrics_SCRIPTS = $(lyrics_plugins)
165 endif
167 #
168 # Documentation
169 #
171 doc_DATA = \
172 doc/config.sample doc/keys.sample doc/ncmpc.lirc \
173 AUTHORS NEWS README
174 man_MANS = doc/ncmpc.1
176 #
177 # Distribution
178 #
180 EXTRA_DIST = autogen.sh \
181 $(lyrics_plugins) \
182 $(man_MANS) $(doc_DATA)