1 AM_CPPFLAGS = \
2 $(GLIB_CFLAGS)\
3 $(GTHREAD_CFLAGS)\
4 $(LIBLIRCCLIENT_CFLAGS) \
5 -DLOCALE_DIR=\""$(datadir)/locale"\"\
6 -DSYSCONFDIR=\""$(sysconfdir)"\"
8 ncmpc_LDADD = \
9 $(GLIB_LIBS)\
10 $(GTHREAD_LIBS) \
11 $(LIBLIRCCLIENT_LIBS)
13 ncmpc_headers = \
14 libmpdclient.h\
15 resolver.h \
16 song.h \
17 mpdclient.h\
18 playlist.h \
19 filelist.h \
20 options.h\
21 conf.h\
22 command.h\
23 ncu.h \
24 screen.h\
25 screen_list.h \
26 screen_utils.h\
27 list_window.h\
28 colors.h\
29 support.h\
30 charset.h \
31 wreadln.h\
32 strfsong.h\
33 utils.h\
34 ncmpc.h\
35 defaults.h \
36 i18n.h \
37 screen_browser.h \
38 lyrics.h \
39 str_pool.h \
40 lirc.h \
41 gcc.h
43 bin_PROGRAMS = ncmpc
45 lyr_src=${lyr_src_fixed}
47 ncmpc_SOURCES = \
48 libmpdclient.c\
49 resolver.c \
50 song.c \
51 main.c\
52 mpdclient.c\
53 playlist.c \
54 filelist.c \
55 options.c\
56 command.c\
57 ncu.c \
58 screen.c\
59 screen_list.c \
60 screen_utils.c\
61 screen_play.c\
62 screen_browser.c\
63 screen_file.c\
64 list_window.c\
65 colors.c\
66 support.c\
67 charset.c \
68 wreadln.c\
69 strfsong.c\
70 utils.c\
71 str_pool.c
73 if NCMPC_MINI
74 else
75 ncmpc_SOURCES += conf.c
76 endif
78 if ENABLE_HELP_SCREEN
79 ncmpc_SOURCES += screen_help.c
80 endif
82 if ENABLE_ARTIST_SCREEN
83 ncmpc_SOURCES += screen_artist.c
84 endif
86 if ENABLE_SEARCH_SCREEN
87 ncmpc_SOURCES += screen_search.c
88 endif
90 if ENABLE_KEYDEF_SCREEN
91 ncmpc_SOURCES += screen_keydef.c
92 endif
94 if ENABLE_LYRICS_SCREEN
95 ncmpc_SOURCES += screen_lyrics.c lyrics.c
96 endif
98 if ENABLE_LIRC
99 ncmpc_SOURCES += lirc.c
100 endif
102 ncmpc_SOURCES+=${ncmpc_headers}
105 #
106 # sparse
107 #
109 SPARSE = sparse
110 SPARSE_FLAGS = -Wdecl -Wdefault-bitfield-sign -Wdo-while -Wenum-mismatch \
111 -Wnon-pointer-null -Wptr-subtraction-blows -Wreturn-void \
112 -Wshadow -Wtypesign \
113 -D__transparent_union__=unused
115 sparse-check:
116 for i in $(ncmpc_SOURCES); \
117 do \
118 $(SPARSE) -I. -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) $(srcdir)/$$i || exit; \
119 done