5
noinst_LTLIBRARIES = libephymain.la
7
bin_PROGRAMS = epiphany
11
headerdir = $(prefix)/include/epiphany/$(EPIPHANY_MAJOR)/epiphany
13
ephy-type-builtins.h \
17
ephy-action-helper.h \
19
ephy-encoding-dialog.h \
20
ephy-encoding-menu.h \
22
ephy-fullscreen-popup.h \
24
ephy-history-window.h \
28
ephy-location-action.h \
29
ephy-navigation-action.h \
30
ephy-navigation-history-action.h \
31
ephy-navigation-up-action.h \
32
ephy-password-info.h \
34
ephy-toolbars-model.h \
36
ephy-toolbar-editor.h \
46
ephy-extensions-manager.h \
56
libephymain_la_SOURCES = \
58
ephy-action-helper.c \
59
ephy-completion-model.c \
60
ephy-completion-model.h \
63
ephy-encoding-dialog.c \
64
ephy-encoding-menu.c \
66
ephy-extensions-manager.c \
68
ephy-fullscreen-popup.c \
71
ephy-history-window.c \
74
ephy-location-action.c \
76
ephy-navigation-action.c \
77
ephy-navigation-history-action.c \
78
ephy-navigation-up-action.c \
80
ephy-password-info.c \
85
ephy-toolbars-model.c \
87
ephy-toolbar-editor.c \
97
nodist_libephymain_la_SOURCES = \
100
libephymain_la_CPPFLAGS = \
101
-I$(top_builddir)/lib \
102
-I$(top_builddir)/lib/egg \
103
-I$(top_builddir)/embed \
104
-I$(top_srcdir)/embed \
105
-I$(top_srcdir)/lib \
106
-I$(top_srcdir)/lib/egg \
107
-I$(top_srcdir)/lib/widgets \
108
-I$(top_srcdir)/src/bookmarks \
109
-DEXTENSIONS_DIR=\""$(libdir)/epiphany/$(EPIPHANY_API_VERSION)/extensions"\" \
110
-DLOADER_DIR=\""$(libdir)/epiphany/$(EPIPHANY_MAJOR)/loaders"\" \
111
-DDATADIR=\""$(pkgdatadir)"\" \
112
-DGNOMELOCALEDIR=\"$(datadir)/locale\" \
115
libephymain_la_CFLAGS = \
116
$(DEPENDENCIES_CFLAGS) \
121
if ENABLE_NETWORK_MANAGER
122
libephymain_la_SOURCES += \
126
libephymain_la_CFLAGS += $(NETWORK_MANAGER_CFLAGS)
131
ephy-seed-extension.h \
135
libephymain_la_SOURCES += \
137
ephy-seed-extension.c \
140
libephymain_la_CFLAGS += $(SEED_CFLAGS)
143
epiphany_SOURCES = ephy-main.c
145
epiphany_CPPFLAGS = \
146
-I$(top_builddir)/lib \
147
-I$(top_srcdir)/embed \
148
-I$(top_srcdir)/lib \
149
-I$(top_srcdir)/lib/egg \
150
-I$(top_srcdir)/src/bookmarks \
151
-DDATADIR=\""$(datadir)"\" \
152
-DGNOMELOCALEDIR=\"$(datadir)/locale\" \
157
$(DEPENDENCIES_CFLAGS) \
162
epiphany_LDFLAGS = -dlopen self
166
$(top_builddir)/src/bookmarks/libephybookmarks.la \
167
$(top_builddir)/embed/libephyembed.la \
168
$(top_builddir)/lib/widgets/libephywidgets.la \
169
$(top_builddir)/lib/libephymisc.la \
170
$(top_builddir)/lib/egg/libegg.la \
171
$(DEPENDENCIES_LIBS) \
175
if HAVE_INTROSPECTION
176
epiphany_CFLAGS += $(INTROSPECTION_CFLAGS)
177
epiphany_LDADD += $(INTROSPECTION_LIBS)
181
epiphany_LDADD += $(SEED_LIBS)
185
epiphany_LDADD += $(NSS_LIBS)
188
if ENABLE_NETWORK_MANAGER
190
$(NETWORK_MANAGER_LIBS)
195
ephy-dbus-client-bindings.h \
196
ephy-dbus-server-bindings.h
200
ephy-type-builtins.c \
204
stamp-ephy-type-builtins.c \
205
stamp-ephy-type-builtins.h \
206
stamp-ephy-dbus-server-bindings.h \
207
stamp-ephy-dbus-client-bindings.h
209
ephy-type-builtins.c: stamp-ephy-type-builtins.c Makefile
211
stamp-ephy-type-builtins.c: Makefile $(INST_H_FILES) $(NOINST_H_FILES)
212
$(AM_V_GEN) $(GLIB_MKENUMS) \
213
--fhead "#include <config.h>\n\n" \
214
--fhead "#include \"ephy-type-builtins.h\"\n\n" \
215
--fprod "\n/* enumerations from \"@filename@\" */" \
216
--fprod "\n#include \"@filename@\"" \
217
--vhead "GType\n@enum_name@_get_type (void)\n{\n" \
218
--vhead " static GType type = 0;\n\n" \
219
--vhead " if (G_UNLIKELY (type == 0))\n {\n" \
220
--vhead " static const G@Type@Value _@enum_name@_values[] = {" \
221
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
222
--vtail " { 0, NULL, NULL }\n };\n\n" \
223
--vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n }\n\n" \
224
--vtail " return type;\n}\n\n" \
225
$(filter-out $<,$^) > xgen-$(@F) \
226
&& ( cmp -s xgen-$(@F) $(@F:stamp-%=%) || cp xgen-$(@F) $(@F:stamp-%=%) ) \
227
&& rm -f xgen-$(@F) \
228
&& echo timestamp > $(@F)
230
ephy-type-builtins.h: stamp-ephy-type-builtins.h Makefile
232
stamp-ephy-type-builtins.h: Makefile $(INST_H_FILES) $(NOINST_H_FILES)
233
$(AM_V_GEN) $(GLIB_MKENUMS) \
234
--fhead "#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION)\n" \
235
--fhead "#error Only <epiphany/epiphany.h> can be included directly.\n" \
236
--fhead "#endif\n\n" \
237
--fhead "#ifndef EPHY_TYPE_BUILTINS_H\n" \
238
--fhead "#define EPHY_TYPE_BUILTINS_H 1\n\n" \
239
--fhead "#include <glib-object.h>\n\n" \
240
--fhead "G_BEGIN_DECLS\n\n" \
241
--ftail "G_END_DECLS\n\n" \
242
--ftail "#endif /* EPHY_TYPE_BUILTINS_H */\n" \
243
--fprod "\n/* --- @filename@ --- */" \
244
--eprod "#define EPHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
245
--eprod "GType @enum_name@_get_type (void);\n" \
246
$(filter-out $<,$^) > xgen-$(@F) \
247
&& ( cmp -s xgen-$(@F) $(@F:stamp-%=%) || cp xgen-$(@F) $(@F:stamp-%=%) ) \
248
&& rm -f xgen-$(@F) \
249
&& echo timestamp > $(@F)
251
ephy-dbus-server-bindings.h: stamp-ephy-dbus-server-bindings.h
253
stamp-ephy-dbus-server-bindings.h: $(top_srcdir)/data/epiphany-service.xml Makefile
254
$(AM_V_GEN) $(DBUS_BINDING_TOOL) --prefix=ephy_activation --mode=glib-server $< > xgen-$(@F) \
255
&& ( cmp -s xgen-$(@F) $(@F:stamp-%=%) || cp xgen-$(@F) $(@F:stamp-%=%) ) \
256
&& rm -f xgen-$(@F) \
257
&& echo timestamp > $(@F)
259
ephy-dbus-client-bindings.h: stamp-ephy-dbus-client-bindings.h
261
stamp-ephy-dbus-client-bindings.h: $(top_srcdir)/data/epiphany-service.xml Makefile
262
$(AM_V_GEN) $(DBUS_BINDING_TOOL) --prefix=ephy_activation --mode=glib-client $< > xgen-$(@F) \
263
&& ( cmp -s xgen-$(@F) $(@F:stamp-%=%) || cp xgen-$(@F) $(@F:stamp-%=%) ) \
264
&& rm -f xgen-$(@F) \
265
&& echo timestamp > $(@F)
267
CLEANFILES = $(stamp_files) $(BUILT_SOURCES)
268
DISTCLEANFILES = $(stamp_files) $(BUILT_SOURCES)
269
MAINTAINERCLEANFILES = $(stamp_files) $(BUILT_SOURCES)
271
if HAVE_INTROSPECTION
273
$(top_srcdir)/embed/ephy-embed.h \
274
$(top_srcdir)/embed/ephy-embed-container.h \
275
$(top_srcdir)/embed/ephy-embed-event.h \
276
$(top_srcdir)/embed/ephy-embed-persist.h \
277
$(top_srcdir)/embed/ephy-embed-shell.h \
278
$(top_srcdir)/embed/ephy-embed-single.h \
279
$(top_srcdir)/embed/ephy-favicon-cache.h \
280
$(top_srcdir)/embed/ephy-history.h \
281
$(top_srcdir)/embed/ephy-permission-manager.h \
282
$(top_srcdir)/embed/ephy-web-view.h \
283
$(top_srcdir)/lib/ephy-dialog.h \
284
$(top_srcdir)/lib/ephy-node-db.h \
285
$(top_srcdir)/lib/ephy-node.h \
286
$(top_srcdir)/lib/ephy-state.h \
287
$(top_srcdir)/lib/egg/egg-editable-toolbar.h \
288
$(top_srcdir)/lib/egg/egg-toolbars-model.h \
289
$(top_srcdir)/lib/widgets/ephy-search-entry.h \
290
$(top_srcdir)/lib/widgets/ephy-spinner.h \
291
$(top_srcdir)/src/bookmarks/ephy-bookmarks.h \
292
$(top_srcdir)/src/ephy-extension.h \
293
$(top_srcdir)/src/ephy-extensions-manager.h \
294
$(top_srcdir)/src/ephy-find-toolbar.h \
295
$(top_srcdir)/src/ephy-link-action.h \
296
$(top_srcdir)/src/ephy-link.h \
297
$(top_srcdir)/src/ephy-location-action.h \
298
$(top_srcdir)/src/ephy-notebook.h \
299
$(top_srcdir)/src/ephy-session.h \
300
$(top_srcdir)/src/ephy-shell.h \
301
$(top_srcdir)/src/ephy-statusbar.h \
302
$(top_srcdir)/src/ephy-toolbar.h \
303
$(top_srcdir)/src/ephy-window.h \
307
$(top_srcdir)/embed/ephy-embed.c \
308
$(top_srcdir)/embed/ephy-embed-container.c \
309
$(top_srcdir)/embed/ephy-embed-event.c \
310
$(top_srcdir)/embed/ephy-embed-persist.c \
311
$(top_srcdir)/embed/ephy-embed-shell.c \
312
$(top_srcdir)/embed/ephy-embed-single.c \
313
$(top_srcdir)/embed/ephy-favicon-cache.c \
314
$(top_srcdir)/embed/ephy-history.c \
315
$(top_srcdir)/embed/ephy-permission-manager.c \
316
$(top_srcdir)/embed/ephy-web-view.c \
317
$(top_srcdir)/lib/ephy-dialog.c \
318
$(top_srcdir)/lib/ephy-node-db.c \
319
$(top_srcdir)/lib/ephy-node.c \
320
$(top_srcdir)/lib/ephy-state.c \
321
$(top_srcdir)/lib/egg/egg-editable-toolbar.c \
322
$(top_srcdir)/lib/egg/egg-toolbars-model.c \
323
$(top_srcdir)/lib/widgets/ephy-search-entry.c \
324
$(top_srcdir)/lib/widgets/ephy-spinner.c \
325
$(top_srcdir)/src/bookmarks/ephy-bookmarks.c \
326
$(top_srcdir)/src/ephy-extension.c \
327
$(top_srcdir)/src/ephy-extensions-manager.c \
328
$(top_srcdir)/src/ephy-find-toolbar.c \
329
$(top_srcdir)/src/ephy-link-action.c \
330
$(top_srcdir)/src/ephy-link.c \
331
$(top_srcdir)/src/ephy-location-action.c \
332
$(top_srcdir)/src/ephy-notebook.c \
333
$(top_srcdir)/src/ephy-session.c \
334
$(top_srcdir)/src/ephy-shell.c \
335
$(top_srcdir)/src/ephy-statusbar.c \
336
$(top_srcdir)/src/ephy-toolbar.c \
337
$(top_srcdir)/src/ephy-window.c \
340
Epiphany-$(EPIPHANY_API_VERSION).gir: $(INTROSPECTION_SCANNER) $(EPHY_GIR_H_FILES) \
341
$(EPHY_GIR_C_FILES) epiphany
342
$(AM_V_GEN) PKG_CONFIG_PATH=$(top_builddir)/data:$$PKG_CONFIG_PATH \
343
$(INTROSPECTION_SCANNER) -v \
344
--namespace Epiphany \
345
--nsversion=$(EPIPHANY_API_VERSION) \
346
--add-include-path=. \
347
--add-include-path=$(srcdir) \
349
--include=libxml2-2.0 \
350
--include=WebKit-1.0 \
351
--program=./epiphany \
353
--pkg epiphany-$(EPIPHANY_API_VERSION) \
354
-DEPIPHANY_COMPILATION \
355
-I$(top_srcdir)/embed \
356
-I$(top_srcdir)/lib \
357
-I$(top_srcdir)/lib/egg \
358
-I$(top_srcdir)/src \
359
-I$(top_srcdir)/src/bookmarks \
360
$(EPHY_GIR_H_FILES) \
363
girdir = $(datadir)/gir-1.0
364
gir_DATA = Epiphany-$(EPIPHANY_API_VERSION).gir
366
typelibsdir = $(libdir)/girepository-1.0
367
typelibs_DATA = Epiphany-$(EPIPHANY_API_VERSION).typelib
369
Epiphany-$(EPIPHANY_API_VERSION).typelib: Epiphany-$(EPIPHANY_API_VERSION).gir $(INTROSPECTION_COMPILER)
370
$(AM_V_GEN) $(INTROSPECTION_COMPILER) Epiphany-$(EPIPHANY_API_VERSION).gir -o Epiphany-$(EPIPHANY_API_VERSION).typelib
372
CLEANFILES += $(gir_DATA) $(typelibs_DATA)
374
endif # HAVE_INTROSPECTION