summaryrefslogtreecommitdiffstats
path: root/src/gui-wizard-gtk/Makefile.am
blob: a44de58c2819919db0fadf3d445efd60f4fe1cc0 (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
# bug-reporting-wizard binary
bin_PROGRAMS = bug-reporting-wizard

bug_reporting_wizard_SOURCES = \
    wizard.h wizard.c \
    main.c \
    wizard_glade.c

# Required for gtk_builder_connect_signals() to work correctly:
# -g
# -Wl,--export-dynamic
bug_reporting_wizard_CFLAGS = \
    -I$(srcdir)/../include/report -I$(srcdir)/../include \
    -I$(srcdir)/../lib \
    -DBIN_DIR=\"$(bindir)\" \
    -DVAR_RUN=\"$(VAR_RUN)\" \
    -DCONF_DIR=\"$(CONF_DIR)\" \
    -DDATA_DIR=\"$(datadir)\" \
    -DDEBUG_DUMPS_DIR=\"$(DEBUG_DUMPS_DIR)\" \
    -DPLUGINS_LIB_DIR=\"$(PLUGINS_LIB_DIR)\" \
    -DPLUGINS_CONF_DIR=\"$(PLUGINS_CONF_DIR)\" \
    -DICON_DIR=\"${datadir}/abrt/icons/hicolor/48x48/status\" \
    $(GLIB_CFLAGS) \
    $(GTK_CFLAGS) \
    $(DBUS_CFLAGS) \
    -D_GNU_SOURCE \
    -Wall -Wwrite-strings -Werror

# Required for gtk_builder_connect_signals() to work correctly:
# -lgmodule-2.0
# -lgthread-2.0
bug_reporting_wizard_LDADD = \
    ../lib/libreport.la \
    ../lib/libabrt_dbus.la \
    $(GLIB_LIBS) \
    $(GTK_LIBS) \
    $(DBUS_LIBS)


# we don't want to install it, just make it part of tarball
# created by make dist
GLADE_FILES = wizard.glade
#pkgdata_DATA = $(GLADE_FILES)
EXTRA_DIST = $(GLADE_FILES)


# For internal glade file storage in the binary:
wizard.c: wizard_glade.c

wizard_glade.c: wizard.glade
	{ \
	  echo '#define WIZARD_GLADE_CONTENTS "\'; \
	  cat $(srcdir)/wizard.glade | sed -e 's/"/\\"/g' -e 's/?/\\?/g' -e 's/$$/\\/g'; \
	  echo '"'; \
	} >wizard_glade.c


DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@

@INTLTOOL_DESKTOP_RULE@