aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile.am
blob: 75a8dda6b60c8b5a927cd7671a81a93f0a64cdf7 (plain) (blame)
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
SUBDIRS = bookmarks

noinst_LTLIBRARIES = libephymain.la

bin_PROGRAMS = epiphany

CXXLD = $(CXX)
LINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@

CORBA_SOURCE = \
    EphyAutomation-common.c   \
    EphyAutomation-stubs.c    \
    EphyAutomation-skels.c    \
    EphyAutomation.h

idls = $(top_srcdir)/idl/EphyAutomation.idl

idl_flags = -I$(LIBBONOBO_IDL) -I$(BONOBO_ACTIVATION_IDL) 

$(CORBA_SOURCE): $(idls) $(ORBIT_IDL)
    $(ORBIT_IDL) $(idl_flags) $(idls)

headerdir = $(prefix)/include/epiphany-@EPIPHANY_MAJOR@/epiphany
header_DATA = \
    ephy-type-builtins.h    \
    $(INST_H_FILES)

NOINST_H_FILES = \
    ephy-automation.h       \
    ephy-encoding-dialog.h      \
    ephy-encoding-menu.h        \
    ephy-favicon-action.h       \
    ephy-go-action.h        \
    ephy-history-window.h       \
    ephy-home-action.h      \
    ephy-link.h         \
    ephy-link-action.h      \
    ephy-location-action.h      \
    ephy-navigation-action.h    \
    ephy-tabs-menu.h        \
    ephy-toolbars-model.h       \
    pdm-dialog.h            \
    popup-commands.h        \
    prefs-dialog.h          \
    ppview-toolbar.h        \
    toolbar.h           \
    window-commands.h

INST_H_FILES = \
    ephy-extension.h        \
    ephy-extensions-manager.h   \
    ephy-notebook.h         \
    ephy-session.h          \
    ephy-shell.h            \
    ephy-statusbar.h        \
    ephy-tab.h          \
    ephy-window.h

libephymain_la_SOURCES = \
    $(BUILT_SOURCES)        \
    ephy-automation.c       \
    ephy-completion-model.c     \
    ephy-completion-model.h     \
    ephy-encoding-dialog.c      \
    ephy-encoding-menu.c        \
    ephy-extension.c        \
    ephy-extensions-manager.c   \
    ephy-favicon-action.c       \
    ephy-go-action.c        \
    ephy-home-action.c      \
    ephy-history-window.c       \
    ephy-link.c         \
    ephy-link-action.c      \
    ephy-location-action.c      \
    ephy-navigation-action.c    \
    ephy-notebook.c         \
    ephy-session.c          \
    ephy-shell.c            \
    ephy-statusbar.c        \
    ephy-tab.c          \
    ephy-tab.h          \
    ephy-tabs-menu.c        \
    ephy-toolbars-model.c       \
    ephy-window.c           \
    pdm-dialog.c            \
    popup-commands.c        \
    prefs-dialog.c          \
    ppview-toolbar.c        \
    toolbar.c           \
    window-commands.c       \
    $(INST_H_FILES)         \
    $(NOINST_H_FILES)

libephymain_la_CPPFLAGS = \
    -I$(top_builddir)/lib       \
    -I$(top_builddir)/embed     \
    -I$(top_srcdir)/embed       \
    -I$(top_srcdir)/lib         \
    -I$(top_srcdir)/lib/egg     \
    -I$(top_srcdir)/lib/widgets     \
    -I$(top_srcdir)/src/bookmarks   \
    -DSHARE_DIR=\"$(pkgdatadir)\"   \
    -DEXTENSIONS_DIR=\""$(libdir)/epiphany-$(EPIPHANY_MAJOR)/extensions"\"  \
    -DLOADER_DIR=\""$(libdir)/epiphany-$(EPIPHANY_MAJOR)/loaders"\"     \
    -DDATADIR=\""$(datadir)"\"  \
    -DPIXMAP_DIR=\""$(datadir)/pixmaps"\"   \
    $(AM_CPPFLAGS)

libephymain_la_CFLAGS = \
    $(EPIPHANY_DEPENDENCY_CFLAGS)   \
    $(AM_CFLAGS)

epiphany_SOURCES = ephy-main.c

epiphany_CPPFLAGS = \
    -I$(top_builddir)/lib       \
    -I$(top_srcdir)/embed       \
    -I$(top_srcdir)/lib         \
    -I$(top_srcdir)/lib/egg     \
    -I$(top_srcdir)/lib/widgets     \
    -I$(top_srcdir)/src/bookmarks   \
    -DSHARE_DIR=\"$(pkgdatadir)\"   \
    -DEXTENSIONS_DIR=\""$(libdir)/epiphany-$(EPIPHANY_MAJOR)/extensions"\"  \
    -DDATADIR=\""$(datadir)"\"  \
    -DPIXMAP_DIR=\""$(datadir)/pixmaps"\"   \
    $(AM_CPPFLAGS)

epiphany_CFLAGS = \
    $(EPIPHANY_DEPENDENCY_CFLAGS)   \
    $(AM_CFLAGS)

epiphany_LDFLAGS = -R$(MOZILLA_HOME) -dlopen self

epiphany_LDADD = \
    $(top_builddir)/src/libephymain.la \
    $(top_builddir)/src/bookmarks/libephybookmarks.la \
    $(top_builddir)/embed/libephyembedfactory.la \
    $(top_builddir)/embed/mozilla/libephymozillaembed.la \
    $(top_builddir)/embed/libephyembed.la \
    $(top_builddir)/lib/widgets/libephywidgets.la \
    $(top_builddir)/lib/libephymisc.la \
    $(top_builddir)/lib/egg/libegg.la \
    $(MOZILLA_COMPONENT_LIBS)   \
    $(EPIPHANY_DEPENDENCY_LIBS) \
    $(INTLLIBS)

BUILT_SOURCES = \
    $(CORBA_SOURCE) \
    $(TYPES_SOURCE)

TYPES_SOURCE = \
    ephy-type-builtins.c    \
    ephy-type-builtins.h

ephy-type-builtins.c: $(INST_H_FILES) $(NOINST_H_FILES)
    ( cd $(srcdir) && $(GLIB_MKENUMS) \
        --fhead "#include \"ephy-type-builtins.h\"\n\n" \
        --fprod "\n/* enumerations from \"@filename@\" */" \
        --fprod "\n#include \"@filename@\"" \
        --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
        --vprod "  { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
        --vtail "  { 0, NULL, NULL }\n};\n\n" \
        --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
        --vtail "  static GType type = 0;\n\n" \
        --vtail "  if (G_UNLIKELY (type == 0))\n" \
        --vtail "    type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
        --vtail "  return type;\n}\n\n" \
        $(^F) ) > xgen-$(@F) \
    && ( cmp -s xgen-$(@F) $(@F) || cp xgen-$(@F) $(@F) ) \
    && rm -f xgen-$(@F)

ephy-type-builtins.h: $(INST_H_FILES) $(NOINST_H_FILES)
    ( cd $(srcdir) && $(GLIB_MKENUMS) \
        --fhead "#ifndef EPHY_TYPE_BUILTINS_H\n" \
        --fhead "#define EPHY_TYPE_BUILTINS_H 1\n\n" \
        --fhead "#include <glib-object.h>\n\n" \
        --fhead "G_BEGIN_DECLS\n\n" \
        --ftail "G_END_DECLS\n\n" \
        --ftail "#endif /* EPHY_TYPE_BUILTINS_H */\n" \
        --fprod "\n/* --- @filename@ --- */" \
        --eprod "#define EPHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
        --eprod "GType @enum_name@_get_type (void);\n" \
        $(^F) ) > xgen-$(@F) \
    && ( cmp -s xgen-$(@F) $(@F) || cp xgen-$(@F) $(@F) ) \
    && rm -f xgen-$(@F)

CLEANFILES = $(BUILT_SOURCES)
DISTCLEANFILES = $(BUILT_SOURCES)