summaryrefslogtreecommitdiffstats
path: root/lib/utils/Makefile.am
blob: 79df31e507859bc7f2a14d75011351317de315cc (plain)
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
# 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
lib_LTLIBRARIES = libABRTUtils.la libABRTdUtils.la
HEADER_DIR = $(srcdir)/../../inc
AM_CPPFLAGS = -I$(HEADER_DIR)

# Not used just yet:
# time.cpp
# xconnect.cpp

libABRTUtils_la_SOURCES = \
    xfuncs.c \
    concat_path_file.c \
    append_to_malloced_string.c \
    encbase64.c \
    read_write.c read_write.h \
    logging.c logging.h \
    copyfd.c \
    daemon.c \
    skip_whitespace.c \
    xatonum.c numtoa.cpp \
    spawn.c \
    stringops.cpp \
    dirsize.c \
    dump_dir.c \
    abrt_dbus.c abrt_dbus.h \
    CrashTypes.cpp \
    ABRTException.cpp \
    strbuf.c strbuf.h \
    abrt_packages.c abrt_packages.h \
    hooklib.c hooklib.h \
    sha1.c sha1.h \
    database.c \
    parse_options.c parse_options.h
libABRTUtils_la_CPPFLAGS = \
    -Wall -Werror \
    -I$(srcdir)/../../inc \
    -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) \
    $(DBUS_CFLAGS) \
    -D_GNU_SOURCE
libABRTUtils_la_LDFLAGS = \
    -version-info 0:1:0
libABRTUtils_la_LIBADD = \
    $(GLIB_LIBS) \
    $(DBUS_LIBS) \
    -ldl

libABRTdUtils_la_SOURCES = \
    parse_release.cpp \
    make_descr.cpp \
    $(HEADER_DIR)/comm_layer_inner.h CommLayerInner.cpp \
    $(HEADER_DIR)/abrt_xmlrpc.h abrt_xmlrpc.cpp \
    abrt_rh_support.h abrt_rh_support.c \
    abrt_curl.h abrt_curl.c \
    $(HEADER_DIR)/plugin.h Plugin.cpp \
    Polkit.h Polkit.cpp

libABRTdUtils_la_CPPFLAGS = \
    -Wall -Werror \
    -I$(srcdir)/../../inc \
    -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)\" \
    $(XMLRPC_CFLAGS) $(XMLRPC_CLIENT_CFLAGS) \
    $(POLKIT_CFLAGS) \
    $(LIBXML_CFLAGS) \
    -D_GNU_SOURCE
libABRTdUtils_la_LDFLAGS = \
    -version-info 0:1:0
libABRTdUtils_la_LIBADD = \
    $(XMLRPC_LIBS) $(XMLRPC_CLIENT_LIBS) \
    $(POLKIT_LIBS) \
    $(LIBXML_LIBS) \
    -ldl

$(DESTDIR)/$(DEBUG_DUMPS_DIR):
	$(mkdir_p) '$@'
# no need to chmod it here
#chmod 1777 '$@'
install-data-local: $(DESTDIR)/$(DEBUG_DUMPS_DIR)