Code

mpdclient: removed _utf8 suffix from function names
[ncmpc.git] / src / Makefile.am
index 68af70ddd3b1a671fc3b457a22eafc3d0e657e4c..bd0168f5a5fcda903f58973f47df0ecbb6ccd3a6 100644 (file)
@@ -1,14 +1,16 @@
-#SUBDIRS = 
+CLEANFILES = ncmpc-tiny
 
 AM_CPPFLAGS = \
   $(GLIB_CFLAGS)\
   $(GTHREAD_CFLAGS)\
+       $(LIBLIRCCLIENT_CFLAGS) \
   -DLOCALE_DIR=\""$(datadir)/locale"\"\
   -DSYSCONFDIR=\""$(sysconfdir)"\"
 
 ncmpc_LDADD = \
   $(GLIB_LIBS)\
-  $(GTHREAD_LIBS)
+  $(GTHREAD_LIBS) \
+       $(LIBLIRCCLIENT_LIBS)
 
 ncmpc_headers = \
   libmpdclient.h\
@@ -37,10 +39,9 @@ ncmpc_headers = \
        screen_browser.h \
        lyrics.h \
        str_pool.h \
+       lirc.h \
        gcc.h
 
-# $Id$
-
 bin_PROGRAMS = ncmpc
 
 lyr_src=${lyr_src_fixed}
@@ -54,7 +55,6 @@ ncmpc_SOURCES = \
        playlist.c \
        filelist.c \
   options.c\
-  conf.c\
   command.c\
        ncu.c \
   screen.c\
@@ -63,7 +63,6 @@ ncmpc_SOURCES = \
   screen_play.c\
        screen_browser.c\
   screen_file.c\
-  screen_help.c\
   list_window.c\
   colors.c\
   support.c\
@@ -73,6 +72,15 @@ ncmpc_SOURCES = \
   utils.c\
        str_pool.c
 
+if NCMPC_MINI
+else
+ncmpc_SOURCES += conf.c
+endif
+
+if ENABLE_HELP_SCREEN
+ncmpc_SOURCES += screen_help.c
+endif
+
 if ENABLE_ARTIST_SCREEN
 ncmpc_SOURCES += screen_artist.c
 endif
@@ -89,8 +97,16 @@ if ENABLE_LYRICS_SCREEN
 ncmpc_SOURCES += screen_lyrics.c lyrics.c
 endif
 
+if ENABLE_LIRC
+ncmpc_SOURCES += lirc.c
+endif
+
 ncmpc_SOURCES+=${ncmpc_headers}
 
+# build the smalles possible ncmpc binary
+ncmpc-tiny: $(filter-out %.h,$(ncmpc_SOURCES))
+       $(COMPILE) --combine -fwhole-program $(ncmpc_LDFLAGS) $(ncmpc_LDADD) $(LIBS) $^ -o $@
+       strip --strip-all $@
 
 #
 # sparse