diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2010-11-26 13:21:07 +0100 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2010-11-26 13:21:07 +0100 |
commit | 7ca9930ec1fc0aef059a2d8e81f7db6b3c1085ce (patch) | |
tree | f08ad3a408d5ae61b8ea6e483016cf45d722a491 /src/lib/Makefile.am | |
parent | 286312ff8017b4d0c0521a3f7c595c85b6f57c52 (diff) | |
download | abrt-7ca9930ec1fc0aef059a2d8e81f7db6b3c1085ce.tar.gz abrt-7ca9930ec1fc0aef059a2d8e81f7db6b3c1085ce.tar.xz abrt-7ca9930ec1fc0aef059a2d8e81f7db6b3c1085ce.zip |
reorganize libraries
This patch does not change any code per se,
it renames libABRTfoo -> libabrt_bar and moves a few functions around.
After the patch, we are left with the following libs:
libabrt - the stuff shared among most of abrt (like xmalloc, logging)
libabrt_daemon - only daemon-related things are here
(should probably be just moved into daemon - later)
libabrt_dbus - daemon, cli and applet use this
libabrt_web - abrt-action-foo where foo deals with network/web/ftp/...
As a result, we have following reductions in dependent libs:
/usr/libexec/abrt-hook-ccpp:
linux-vdso.so.1 => ()
- libABRTUtils.so.0 => /usr/lib64/libABRTUtils.so.0 ()
+ libabrt.so.0 => /usr/lib64/libabrt.so.0 ()
libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 ()
- libdbus-1.so.3 => /lib64/libdbus-1.so.3 ()
- libpthread.so.0 => /lib64/libpthread.so.0 ()
- librt.so.1 => /lib64/librt.so.1 ()
- libdl.so.2 => /lib64/libdl.so.2 ()
/usr/libexec/abrt-action-upload:
linux-vdso.so.1 => ()
libtar.so.1 => /usr/lib64/libtar.so.1 ()
libcurl.so.4 => /usr/lib64/libcurl.so.4 ()
- libABRTdUtils.so.0 => /usr/lib64/libABRTdUtils.so.0 ()
- libABRTUtils.so.0 => /usr/lib64/libABRTUtils.so.0 ()
+ libabrt.so.0 => /usr/lib64/libabrt.so.0 ()
libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 ()
- libdbus-1.so.3 => /lib64/libdbus-1.so.3 ()
Similar savings are in almost every abrt-action-foo.
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'src/lib/Makefile.am')
-rw-r--r-- | src/lib/Makefile.am | 81 |
1 files changed, 50 insertions, 31 deletions
diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am index 0561e316..92f5e645 100644 --- a/src/lib/Makefile.am +++ b/src/lib/Makefile.am @@ -1,10 +1,13 @@ -# ABRTUtils has small set of deps. This reduces deps of smaller abrt binaries -# ABRTdUtils has much more. It is used by daemon and plugins only -# ABRT_web_utils is used only by some abrt-action-foo programs, not by daemon +# libabrt - the stuff shared among most of abrt (like xmalloc, logging) +# libabrt_daemon - only daemon/server/dbus related things are here +# libabrt_dbus - daemon, cli and applet use this +# libabrt_web - abrt-action-foo where foo deals with network/web/ftp/... lib_LTLIBRARIES = \ - libABRTUtils.la \ - libABRTdUtils.la \ - libABRT_web_utils.la + libabrt.la \ + libabrt_daemon.la \ + libabrt_dbus.la \ + libabrt_web.la + HEADER_DIR = $(srcdir)/../include AM_CPPFLAGS = -I$(HEADER_DIR) @@ -12,11 +15,8 @@ AM_CPPFLAGS = -I$(HEADER_DIR) # time.cpp # xconnect.cpp -libABRTUtils_la_SOURCES = \ +libabrt_la_SOURCES = \ xfuncs.c \ - concat_path_file.c \ - append_to_malloced_string.c \ - overlapping_strcpy.c \ encbase64.c \ stdio_helpers.c \ hash_md5.c hash_md5.h \ @@ -24,22 +24,44 @@ libABRTUtils_la_SOURCES = \ read_write.c read_write.h \ logging.c logging.h \ copyfd.c \ - daemon.c \ + concat_path_file.c \ + append_to_malloced_string.c \ + overlapping_strcpy.c \ skip_whitespace.c \ + stringops.cpp \ + strbuf.c strbuf.h \ xatonum.c numtoa.cpp \ spawn.c \ - stringops.cpp \ dirsize.c \ dump_dir.c \ - strbuf.c strbuf.h \ - abrt_dbus.c abrt_dbus.h \ + get_cmdline.c \ + daemon_is_ok.c \ + load_plugin_settings.cpp \ + make_descr.cpp \ + run_event.c \ CrashTypes.cpp \ ABRTException.cpp \ - run_event.c \ - abrt_packages.c abrt_packages.h \ hooklib.c hooklib.h \ + parse_release.cpp \ parse_options.c parse_options.h -libABRTUtils_la_CPPFLAGS = \ +libabrt_la_CPPFLAGS = \ + -Wall -Werror \ + -I$(srcdir)/../include \ + -DDEBUG_DUMPS_DIR=\"$(DEBUG_DUMPS_DIR)\" \ + -DPLUGINS_LIB_DIR=\"$(PLUGINS_LIB_DIR)\" \ + -DPLUGINS_CONF_DIR=\"$(PLUGINS_CONF_DIR)\" \ + -DCONF_DIR=\"$(CONF_DIR)\" \ + -DVAR_RUN=\"$(VAR_RUN)\" \ + $(GLIB_CFLAGS) \ + -D_GNU_SOURCE +libabrt_la_LDFLAGS = \ + -version-info 0:1:0 +libabrt_la_LIBADD = \ + $(GLIB_LIBS) + +libabrt_dbus_la_SOURCES = \ + abrt_dbus.c abrt_dbus.h +libabrt_dbus_la_CPPFLAGS = \ -Wall -Werror \ -I$(srcdir)/../include \ -DDEBUG_DUMPS_DIR=\"$(DEBUG_DUMPS_DIR)\" \ @@ -50,19 +72,16 @@ libABRTUtils_la_CPPFLAGS = \ $(GLIB_CFLAGS) \ $(DBUS_CFLAGS) \ -D_GNU_SOURCE -libABRTUtils_la_LDFLAGS = \ +libabrt_dbus_la_LDFLAGS = \ -version-info 0:1:0 -libABRTUtils_la_LIBADD = \ +libabrt_dbus_la_LIBADD = \ $(GLIB_LIBS) \ - $(DBUS_LIBS) \ - -ldl + $(DBUS_LIBS) -libABRTdUtils_la_SOURCES = \ - parse_release.cpp \ - make_descr.cpp \ +libabrt_daemon_la_SOURCES = \ $(HEADER_DIR)/comm_layer_inner.h CommLayerInner.cpp \ $(HEADER_DIR)/plugin.h Plugin.cpp -libABRTdUtils_la_CPPFLAGS = \ +libabrt_daemon_la_CPPFLAGS = \ -Wall \ -I$(srcdir)/../include \ -DDEBUG_DUMPS_DIR=\"$(DEBUG_DUMPS_DIR)\" \ @@ -71,15 +90,15 @@ libABRTdUtils_la_CPPFLAGS = \ -DCONF_DIR=\"$(CONF_DIR)\" \ -DVAR_RUN=\"$(VAR_RUN)\" \ -D_GNU_SOURCE -libABRTdUtils_la_LDFLAGS = \ +libabrt_daemon_la_LDFLAGS = \ -version-info 0:1:0 -libABRTdUtils_la_LIBADD = \ +libabrt_daemon_la_LIBADD = \ -ldl -libABRT_web_utils_la_SOURCES = \ +libabrt_web_la_SOURCES = \ abrt_curl.h abrt_curl.c \ abrt_xmlrpc.h abrt_xmlrpc.cpp -libABRT_web_utils_la_CPPFLAGS = \ +libabrt_web_la_CPPFLAGS = \ -Wall -Werror \ -I$(srcdir)/../include \ -DDEBUG_DUMPS_DIR=\"$(DEBUG_DUMPS_DIR)\" \ @@ -91,9 +110,9 @@ libABRT_web_utils_la_CPPFLAGS = \ $(LIBXML_CFLAGS) \ $(XMLRPC_CFLAGS) $(XMLRPC_CLIENT_CFLAGS) \ -D_GNU_SOURCE -libABRT_web_utils_la_LDFLAGS = \ +libabrt_web_la_LDFLAGS = \ -version-info 0:1:0 -libABRT_web_utils_la_LIBADD = \ +libabrt_web_la_LIBADD = \ $(CURL_LIBS) \ $(LIBXML_LIBS) \ $(XMLRPC_LIBS) $(XMLRPC_CLIENT_LIBS) |