File: Makefile.am

package info (click to toggle)
ncmpc 0.17-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 2,024 kB
  • ctags: 1,171
  • sloc: ansic: 11,792; sh: 1,178; makefile: 259; python: 61; ruby: 24
file content (214 lines) | stat: -rw-r--r-- 4,085 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
SUBDIRS = \
  po

ACLOCAL_AMFLAGS = -I m4
AUTOMAKE_OPTIONS = foreign 1.10 dist-bzip2 subdir-objects

AM_CPPFLAGS = \
	$(LIBMPDCLIENT_CFLAGS) \
	$(GLIB_CFLAGS) \
	$(LIBLIRCCLIENT_CFLAGS) \
	-DLOCALE_DIR=\""$(datadir)/locale"\"\
	-DSYSCONFDIR=\""$(sysconfdir)"\"

ncmpc_headers = \
	src/glib_compat.h \
	src/resolver.h \
	src/gidle.h \
	src/mpdclient.h \
	src/playlist.h \
	src/filelist.h \
	src/options.h \
	src/conf.h \
	src/command.h \
	src/ncu.h \
	src/player_command.h \
	src/window.h \
	src/title_bar.h \
	src/progress_bar.h \
	src/status_bar.h \
	src/screen.h \
	src/screen_message.h \
	src/screen_interface.h \
	src/screen_list.h \
	src/screen_find.h \
	src/screen_utils.h \
	src/screen_client.h \
	src/list_window.h \
	src/song_paint.h \
	src/colors.h \
	src/paint.h \
	src/hscroll.h \
	src/charset.h \
	src/match.h \
	src/wreadln.h \
	src/strfsong.h \
	src/utils.h \
	src/ncmpc.h \
	src/defaults.h \
	src/i18n.h \
	src/screen_help.h \
	src/screen_queue.h \
	src/screen_file.h \
	src/screen_artist.h \
	src/screen_browser.h \
	src/screen_search.h \
	src/screen_song.h \
	src/screen_keydef.h \
	src/screen_lyrics.h \
	src/screen_outputs.h \
	src/screen_text.h \
	src/plugin.h \
	src/lyrics.h \
	src/str_pool.h \
	src/lirc.h

bin_PROGRAMS = src/ncmpc

src_ncmpc_LDADD = \
	$(LIBMPDCLIENT_LIBS) \
	$(GLIB_LIBS) \
	$(LIBLIRCCLIENT_LIBS)

src_ncmpc_SOURCES = \
	$(ncmpc_headers) \
	src/resolver.c \
	src/main.c \
	src/gidle.c \
	src/mpdclient.c \
	src/playlist.c \
	src/filelist.c \
	src/options.c \
	src/command.c \
	src/ncu.c \
	src/player_command.c \
	src/title_bar.c \
	src/progress_bar.c \
	src/status_bar.c \
	src/screen.c \
	src/screen_message.c \
	src/screen_list.c \
	src/screen_find.c \
	src/screen_utils.c \
	src/screen_client.c \
	src/screen_queue.c \
	src/screen_browser.c \
	src/screen_file.c \
	src/list_window.c \
	src/song_paint.c \
	src/colors.c \
	src/charset.c \
	src/wreadln.c \
	src/strfsong.c \
	src/utils.c \
	src/str_pool.c

if NCMPC_MINI
else
src_ncmpc_SOURCES += \
	src/hscroll.c \
	src/match.c \
	src/conf.c
endif

if ENABLE_HELP_SCREEN
src_ncmpc_SOURCES += src/screen_help.c
endif

if ENABLE_ARTIST_SCREEN
src_ncmpc_SOURCES += src/screen_artist.c
endif

if ENABLE_SEARCH_SCREEN
src_ncmpc_SOURCES += src/screen_search.c
endif

if ENABLE_SONG_SCREEN
src_ncmpc_SOURCES += src/screen_song.c
endif

if ENABLE_KEYDEF_SCREEN
src_ncmpc_SOURCES += src/screen_keydef.c
endif

if ENABLE_PLUGIN_LIBRARY
src_ncmpc_SOURCES += src/plugin.c
endif

if ENABLE_SCREEN_TEXT
src_ncmpc_SOURCES += src/screen_text.c
endif

if ENABLE_LYRICS_SCREEN
src_ncmpc_SOURCES += src/screen_lyrics.c src/lyrics.c
endif

if ENABLE_OUTPUTS_SCREEN
src_ncmpc_SOURCES += src/screen_outputs.c
endif

if ENABLE_LIRC
src_ncmpc_SOURCES += src/lirc.c
endif


# build the smalles possible ncmpc binary
src/ncmpc-tiny: $(filter-out %.h,$(src_ncmpc_SOURCES))
	$(COMPILE) --combine -fwhole-program $(src_ncmpc_LDFLAGS) $(src_ncmpc_LDADD) $(LIBS) $^ -o $@
	strip --strip-all $@

CLEANFILES = src/ncmpc-tiny

#
# test suite
#

check_PROGRAMS = \
	test/run_hscroll

test_run_hscroll_SOURCES = test/run_hscroll.c src/hscroll.c src/charset.c
test_run_hscroll_CPPFLAGS = -I$(srcdir)/src $(AM_CPPFLAGS)
test_run_hscroll_LDFLAGS = $(GLIB_LIBS)

#
# sparse
#

SPARSE = sparse
SPARSE_FLAGS = -Wdecl -Wdefault-bitfield-sign -Wdo-while -Wenum-mismatch \
	-Wnon-pointer-null -Wptr-subtraction-blows -Wreturn-void \
	-Wshadow -Wtypesign \
	-D__transparent_union__=unused

sparse-check:
	$(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)

#
# lyrics plugins
#

lyrics_plugins = lyrics/10-hd.sh lyrics/15-leoslyrics.sh lyrics/20-lyricwiki.rb lyrics/30-leoslyrics.py

if ENABLE_LYRICS_SCREEN

lyricsdir = $(lyrics_plugin_dir)
lyrics_SCRIPTS = $(lyrics_plugins)

endif

#
# Documentation
#

doc_DATA = \
	doc/config.sample doc/keys.sample doc/ncmpc.lirc \
	AUTHORS NEWS README
man_MANS = doc/ncmpc.1

#
# Distribution
#

EXTRA_DIST = autogen.sh \
	$(lyrics_plugins) \
	$(man_MANS) $(doc_DATA)