summaryrefslogtreecommitdiff
path: root/src/gnome2/Makefile.am
blob: 923544594dcd607f9f31759eb32fdfc1427df491 (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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
bin_PROGRAMS = xiphos

bin_SCRIPTS = gnomesword2

BUILT_SOURCES = ipc-interface.h marshal.h locale_set.c

xiphos_SOURCES =  \
    about_modules.c \
    about_sword.c \
    about_trans.c \
    about_xiphos.c \
    bibletext.c \
    bibletext_dialog.c \
    bookmark_dialog.c \
    bookmarks_menu.c \
    bookmarks_treeview.c \
    cipher_key_dialog.c \
    commentary.c \
    commentary_dialog.c \
    dialog.c \
    dictlex.c \
    dictlex_dialog.c \
    display_info.c \
    dummy.cpp \
    export_bookmarks.c \
    export_dialog.c \
    find_dialog.c \
    font_dialog.c \
    gbs.c \
    gbs_dialog.c \
    gui.c \
    html.c \
    ipc.c \
    main_menu.c \
    main_window.c \
    marshal.c \
    menu_popup.c \
    mod_mgr.c \
    navbar_book.c \
    navbar_book_dialog.c \
    navbar_versekey.c \
    navbar_versekey_dialog.c \
    navbar_versekey_editor.c \
    navbar_versekey_parallel.c \
    parallel_dialog.c \
    parallel_tab.c \
    parallel_view.c \
    preferences_dialog.c \
    search_dialog.c \
    search_sidebar.c \
    sidebar.c \
    sidebar_dialog.c \
    splash.c \
    tabbed_browser.c \
    treekey-editor.c \
    utilities.c \
    xiphos.c

locale_set.c: ../../po/LINGUAS make-locale-set.sh
	sh ./make-locale-set.sh > locale_set.c

xiphos-locale_set.o: locale_set.c
	$(CC) $< -c -o $@

marshal.c:
	glib-genmarshal --body --prefix=ipc_marshal marshal.list \
	$< > $@
	sed -i -e 's;<glib-object.h>;"marshal.h";' $@

marshal.h:
	glib-genmarshal --header --prefix=ipc_marshal marshal.list \
	$< > $@

ipc-interface.h:
	dbus-binding-tool --prefix=ipc_object --mode=glib-server ipc-interface.xml \
	$< > $@

xiphos_CPPFLAGS =  \
	-DGECKO_HOME=\""$(GECKO_HOME)\""  \
	-DPREFIX=\""$(prefix)"\" \
	-DSYSCONFDIR=\""$(sysconfdir)"\" \
	-DDATADIR=\""$(datadir)"\" \
	-DPACKAGE_LOCALE_DIR="\"$(datadir)/locale\"" \
	-DPACKAGE_PIXMAPS_DIR="\"$(datadir)/pixmaps/$(PACKAGE)\"" \
	-DLIBDIR=\""$(libdir)"\" \
	-DSHARE_DIR=\"$(pkgdatadir)\" \
	$(DISABLE_DEPRECATED) \
	$(AM_CPPFLAGS)

xiphos_CFLAGS = \
	-I$(top_srcdir)/src \
	$(XIPHOS_CFLAGS) \
	$(GECKO_CFLAGS) \
	$(GECKO_COMPONENT_CFLAGS) \
	$(WARN_CFLAGS) \
	$(DBUS_CFLAGS) \
	$(DBUS_GLIB_CFLAGS)

xiphos_CXXFLAGS = \
	-I$(top_srcdir)/src \
	$(GECKO_CFLAGS) \
	$(GECKO_COMPONENT_CFLAGS) \
	$(XIPHOS_CFLAGS) \
	$(WARN_CXXFLAGS) \
	$(DBUS_CXXFLAGS)

if HAVE_GECKO
LIB_GECKO=$(top_builddir)/src/gecko/libgecko.a
endif

if HAVE_GECKO_1_9_1
else
if HAVE_GECKO_1_9
else
if HAVE_GECKO
    xiphos_LDFLAGS = -R$(GECKO_HOME)
endif
endif
endif


xiphos_LDADD = \
	$(LIB_GECKO) \
	$(top_builddir)/src/main/libmain.a \
	$(top_builddir)/src/backend/libbackend.a \
	$(top_builddir)/src/editor/libeditor.a\
	$(XIPHOS_LIBS) \
	$(GNOME_SPELL_LIBS) \
	$(GECKO_COMPONENT_LIBS) \
	$(GECKO_LIBS) \
	$(DBUS_LIBS) \
	./xiphos-locale_set.o

EXTRA_DIST = \
    $(top_builddir)/src/gui/*.h \
    gnomesword2 \
    ipc-interface.xml \
    make-locale-set.sh \
    marshal.list \
    wscript