Code

use g_ascii_isspace() instead of IS_WHITESPACE()
[ncmpc.git] / src / Makefile.am
index f91c2cff5ef04d493b89d0e9de4697021c978c20..68af70ddd3b1a671fc3b457a22eafc3d0e657e4c 100644 (file)
@@ -22,14 +22,18 @@ ncmpc_headers = \
   command.h\
        ncu.h \
   screen.h\
+       screen_list.h \
   screen_utils.h\
   list_window.h\
   colors.h\
   support.h\
+       charset.h \
   wreadln.h\
   strfsong.h\
   utils.h\
   ncmpc.h\
+       defaults.h \
+       i18n.h \
        screen_browser.h \
        lyrics.h \
        str_pool.h \
@@ -54,6 +58,7 @@ ncmpc_SOURCES = \
   command.c\
        ncu.c \
   screen.c\
+       screen_list.c \
   screen_utils.c\
   screen_play.c\
        screen_browser.c\
@@ -62,6 +67,7 @@ ncmpc_SOURCES = \
   list_window.c\
   colors.c\
   support.c\
+       charset.c \
   wreadln.c\
   strfsong.c\
   utils.c\
@@ -86,3 +92,18 @@ endif
 ncmpc_SOURCES+=${ncmpc_headers}
 
 
+#
+# 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:
+       for i in $(ncmpc_SOURCES); \
+       do \
+               $(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; \
+       done