1 | ## We require new-style dependency handling. |
---|
2 | AUTOMAKE_OPTIONS = 1.3 |
---|
3 | |
---|
4 | NULL = |
---|
5 | |
---|
6 | INCLUDES = \ |
---|
7 | -I. \ |
---|
8 | -I$(srcdir) \ |
---|
9 | -I$(top_builddir)/gnome-panel \ |
---|
10 | -DPANEL_DEBUG \ |
---|
11 | -DGNOMELOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \ |
---|
12 | -DGLADEDIR=\""$(datadir)/gnome/panel"\" \ |
---|
13 | $(DISABLE_DEPRECATED_CFLAGS) \ |
---|
14 | $(STANDARD_PROPERTIES_CFLAGS) \ |
---|
15 | $(ALLOW_CRACKPOT_MENU_CODE) \ |
---|
16 | $(PANEL_CFLAGS) \ |
---|
17 | $(PANELCONFIG_CFLAGS) \ |
---|
18 | $(WARN_CFLAGS) \ |
---|
19 | $(NULL) |
---|
20 | |
---|
21 | # FIXME: |
---|
22 | # this define is to allow menu.c to continue |
---|
23 | # using deprecated gtk+ internals |
---|
24 | ALLOW_CRACKPOT_MENU_CODE=-DGTK_MENU_INTERNALS |
---|
25 | |
---|
26 | # Flags to make sure we're not using any deprecated functions |
---|
27 | DISABLE_DEPRECATED_CFLAGS = \ |
---|
28 | -DG_DISABLE_DEPRECATED \ |
---|
29 | -DGDK_DISABLE_DEPRECATED \ |
---|
30 | -DGTK_DISABLE_DEPRECATED \ |
---|
31 | -DGDK_PIXBUF_DISABLE_DEPRECATED \ |
---|
32 | -DGNOME_DISABLE_DEPRECATED \ |
---|
33 | $(NULL) |
---|
34 | |
---|
35 | # Used by the GNOME_PROGRAM_STANDARD_PROPERTIES macros |
---|
36 | STANDARD_PROPERTIES_CFLAGS = \ |
---|
37 | -DPREFIX=\""$(prefix)"\" \ |
---|
38 | -DSYSCONFDIR=\""$(sysconfdir)"\" \ |
---|
39 | -DLIBDIR=\""$(libdir)"\" \ |
---|
40 | -DDATADIR=\""$(datadir)"\" \ |
---|
41 | $(NULL) |
---|
42 | |
---|
43 | bin_PROGRAMS = \ |
---|
44 | gnome-panel \ |
---|
45 | gnome-panel-preferences \ |
---|
46 | gnome-panel-screenshot \ |
---|
47 | gnome-desktop-item-edit |
---|
48 | |
---|
49 | $(gnome_panel_OBJECTS) $(gnome_panel_properties_OBJECTS) $(gnome_panel_screenshot_OBJECTS): $(BUILT_SOURCES) |
---|
50 | |
---|
51 | CORBA_SRCLIST = \ |
---|
52 | GNOME_Panel-stubs.c \ |
---|
53 | GNOME_Panel-skels.c \ |
---|
54 | GNOME_Panel-common.c \ |
---|
55 | GNOME_Panel.h \ |
---|
56 | $(NULL) |
---|
57 | |
---|
58 | $(CORBA_SRCLIST): $(top_srcdir)/idl/GNOME_Panel.idl $(ORBIT_IDL) |
---|
59 | $(ORBIT_IDL) -I $(BONOBO_IDLDIR) -I $(BONOBO_ACT_IDLDIR) $(top_srcdir)/idl/GNOME_Panel.idl |
---|
60 | |
---|
61 | EGG_RECENT_FILES_C = \ |
---|
62 | egg-recent-model.c \ |
---|
63 | egg-recent-item.c \ |
---|
64 | egg-recent-view.c \ |
---|
65 | egg-recent-view-gtk.c \ |
---|
66 | egg-recent-util.c |
---|
67 | |
---|
68 | EGG_RECENT_FILES_H = \ |
---|
69 | egg-recent-model.h \ |
---|
70 | egg-recent-item.h \ |
---|
71 | egg-recent-view.h \ |
---|
72 | egg-recent-view-gtk.h \ |
---|
73 | egg-recent-util.h |
---|
74 | |
---|
75 | EGG_SCREEN_EXEC_FILES = \ |
---|
76 | egg-screen-exec.h \ |
---|
77 | egg-screen-exec.c \ |
---|
78 | egg-screen-help.h \ |
---|
79 | egg-screen-help.c \ |
---|
80 | egg-screen-url.h \ |
---|
81 | egg-screen-url.c \ |
---|
82 | $(NULL) |
---|
83 | |
---|
84 | EGG_ACCELERATORS_FILES = \ |
---|
85 | eggaccelerators.c \ |
---|
86 | eggaccelerators.h \ |
---|
87 | $(NULL) |
---|
88 | |
---|
89 | BUILT_SOURCES = \ |
---|
90 | $(CORBA_SRCLIST) \ |
---|
91 | panel-typebuiltins.c \ |
---|
92 | panel-typebuiltins.h \ |
---|
93 | panel-marshal.c \ |
---|
94 | panel-marshal.h |
---|
95 | |
---|
96 | panel_sources = \ |
---|
97 | panel-typebuiltins.c \ |
---|
98 | panel-typebuiltins.h \ |
---|
99 | panel-marshal.c \ |
---|
100 | panel-marshal.h \ |
---|
101 | main.c \ |
---|
102 | panel-widget.c \ |
---|
103 | basep-widget.c \ |
---|
104 | button-widget.c \ |
---|
105 | multiscreen-stuff.c \ |
---|
106 | xstuff.c \ |
---|
107 | session.c \ |
---|
108 | foobar-widget.c \ |
---|
109 | border-widget.c \ |
---|
110 | edge-widget.c \ |
---|
111 | aligned-widget.c \ |
---|
112 | drawer-widget.c \ |
---|
113 | sliding-widget.c \ |
---|
114 | floating-widget.c \ |
---|
115 | disclosure-widget.c \ |
---|
116 | panel.c \ |
---|
117 | applet.c \ |
---|
118 | drawer.c \ |
---|
119 | panel-config-global.c \ |
---|
120 | panel-util.c \ |
---|
121 | panel-gconf.c \ |
---|
122 | global-keys.c \ |
---|
123 | panel-config.c \ |
---|
124 | distribution.c \ |
---|
125 | gnome-run.c \ |
---|
126 | menu.c \ |
---|
127 | menu-util.c \ |
---|
128 | menu-ditem.c \ |
---|
129 | menu-fentry.c \ |
---|
130 | launcher.c \ |
---|
131 | panel-applet-frame.c \ |
---|
132 | panel-shell.c \ |
---|
133 | quick-desktop-reader.c \ |
---|
134 | panel-access.c \ |
---|
135 | panel-background.c \ |
---|
136 | panel-background-monitor.c \ |
---|
137 | panel-stock-icons.c \ |
---|
138 | panel-action-button.c \ |
---|
139 | panel-recent.c \ |
---|
140 | panel-gdk-pixbuf-extensions.c \ |
---|
141 | $(EGG_RECENT_FILES_C) \ |
---|
142 | $(NULL) |
---|
143 | |
---|
144 | panel_headers = \ |
---|
145 | panel-types.h \ |
---|
146 | panel-widget.h \ |
---|
147 | panel-main.h \ |
---|
148 | basep-widget.h \ |
---|
149 | button-widget.h \ |
---|
150 | multiscreen-stuff.h \ |
---|
151 | xstuff.h \ |
---|
152 | session.h \ |
---|
153 | foobar-widget.h \ |
---|
154 | border-widget.h \ |
---|
155 | edge-widget.h \ |
---|
156 | aligned-widget.h \ |
---|
157 | drawer-widget.h \ |
---|
158 | sliding-widget.h \ |
---|
159 | floating-widget.h \ |
---|
160 | disclosure-widget.h \ |
---|
161 | panel.h \ |
---|
162 | applet.h \ |
---|
163 | drawer.h \ |
---|
164 | panel-util.h \ |
---|
165 | global-keys.h \ |
---|
166 | panel-config.h \ |
---|
167 | panel-config-global.h \ |
---|
168 | panel-gconf.h \ |
---|
169 | distribution.h \ |
---|
170 | gnome-run.h \ |
---|
171 | menu.h \ |
---|
172 | menu-util.h \ |
---|
173 | menu-ditem.h \ |
---|
174 | menu-fentry.h \ |
---|
175 | launcher.h \ |
---|
176 | panel-applet-frame.h \ |
---|
177 | quick-desktop-reader.h \ |
---|
178 | panel-shell.h \ |
---|
179 | panel-background.h \ |
---|
180 | panel-background-monitor.h \ |
---|
181 | panel-stock-icons.h \ |
---|
182 | panel-action-button.h \ |
---|
183 | panel-recent.h \ |
---|
184 | panel-gdk-pixbuf-extensions.h \ |
---|
185 | $(EGG_RECENT_FILES_H) \ |
---|
186 | $(NULL) |
---|
187 | |
---|
188 | gnome_panel_SOURCES = \ |
---|
189 | $(CORBA_SRCLIST) \ |
---|
190 | $(EGG_SCREEN_EXEC_FILES) \ |
---|
191 | $(EGG_ACCELERATORS_FILES) \ |
---|
192 | $(panel_sources) \ |
---|
193 | $(panel_headers) \ |
---|
194 | $(NULL) |
---|
195 | |
---|
196 | gnome_panel_LDADD = \ |
---|
197 | $(X_LIBS) \ |
---|
198 | $(PANEL_LIBS) \ |
---|
199 | $(XINERAMA_LIBS) \ |
---|
200 | -lpopt |
---|
201 | |
---|
202 | gnome_panel_LDFLAGS = -export-dynamic |
---|
203 | |
---|
204 | gnome_panel_preferences_SOURCES = \ |
---|
205 | gnome-panel-preferences.c \ |
---|
206 | panel-gconf.c \ |
---|
207 | panel-access.c |
---|
208 | |
---|
209 | gnome_panel_preferences_LDADD = \ |
---|
210 | $(X_LIBS) \ |
---|
211 | $(PANELCONFIG_LIBS) |
---|
212 | |
---|
213 | gnome_panel_preferences_LDFLAGS = \ |
---|
214 | -export-dynamic |
---|
215 | |
---|
216 | gnome_desktop_item_edit_SOURCES = \ |
---|
217 | gnome-desktop-item-edit.c \ |
---|
218 | menu-ditem.c \ |
---|
219 | panel-util.c \ |
---|
220 | panel-access.c \ |
---|
221 | egg-screen-exec.c \ |
---|
222 | egg-screen-help.c \ |
---|
223 | egg-screen-url.c |
---|
224 | |
---|
225 | gnome_desktop_item_edit_LDFLAGS = -export-dynamic |
---|
226 | |
---|
227 | gnome_desktop_item_edit_LDADD = \ |
---|
228 | $(X_LIBS) \ |
---|
229 | $(PANEL_LIBS) \ |
---|
230 | -lpopt |
---|
231 | |
---|
232 | gnome_panel_screenshot_SOURCES = \ |
---|
233 | gnome-panel-screenshot.c |
---|
234 | |
---|
235 | gnome_panel_screenshot_LDFLAGS = -export-dynamic |
---|
236 | |
---|
237 | gnome_panel_screenshot_LDADD = \ |
---|
238 | $(XSHAPE_LIBS) \ |
---|
239 | $(X_LIBS) \ |
---|
240 | $(PANELCONFIG_LIBS) \ |
---|
241 | $(PNG_LIBS) |
---|
242 | |
---|
243 | gladedir = $(datadir)/gnome/panel |
---|
244 | glade_DATA = \ |
---|
245 | gnome-panel-preferences.glade \ |
---|
246 | gnome-panel-screenshot.glade |
---|
247 | |
---|
248 | EXTRA_DIST = \ |
---|
249 | GNOME_Panel.server.in \ |
---|
250 | gnome-panel-preferences.desktop.in \ |
---|
251 | $(glade_DATA) \ |
---|
252 | nothing.cP \ |
---|
253 | nothing.h \ |
---|
254 | $(schemas_in_files) \ |
---|
255 | $(ui_DATA) \ |
---|
256 | panel-marshal.list \ |
---|
257 | update-from-egg.sh \ |
---|
258 | gnome-panelrc |
---|
259 | |
---|
260 | sysdir = $(datadir)/control-center-2.0/capplets |
---|
261 | sys_in_files = gnome-panel-preferences.desktop.in |
---|
262 | sys_DATA = $(sys_in_files:.desktop.in=.desktop) |
---|
263 | |
---|
264 | @INTLTOOL_DESKTOP_RULE@ |
---|
265 | |
---|
266 | panel_enum_headers = \ |
---|
267 | $(top_srcdir)/gnome-panel/panel-types.h \ |
---|
268 | $(top_srcdir)/gnome-panel/panel-widget.h \ |
---|
269 | $(top_srcdir)/gnome-panel/basep-widget.h \ |
---|
270 | $(top_srcdir)/gnome-panel/aligned-widget.h \ |
---|
271 | $(top_srcdir)/gnome-panel/sliding-widget.h \ |
---|
272 | $(top_srcdir)/gnome-panel/panel-action-button.h \ |
---|
273 | $(top_builddir)/gnome-panel/GNOME_Panel.h |
---|
274 | |
---|
275 | panel-marshal.h: panel-marshal.list $(GLIB_GENMARSHAL) |
---|
276 | $(GLIB_GENMARSHAL) $< --header --prefix=panel_marshal > $@ |
---|
277 | |
---|
278 | panel-marshal.c: panel-marshal.list $(GLIB_GENMARSHAL) |
---|
279 | echo "#include \"panel-marshal.h\"" > $@ && \ |
---|
280 | $(GLIB_GENMARSHAL) $< --body --prefix=panel_marshal >> $@ |
---|
281 | |
---|
282 | panel-typebuiltins.c: @REBUILD@ $(panel_enum_headers) |
---|
283 | glib-mkenums --fhead "#include <glib-object.h>\n" \ |
---|
284 | --fhead "#include \"panel-typebuiltins.h\"\n\n" \ |
---|
285 | --fprod "\n/* enumerations from \"@filename@\" */" \ |
---|
286 | --fprod "\n#include \"@filename@\"\n" \ |
---|
287 | --vhead "static const G@Type@Value _@enum_name@_values[] = {" \ |
---|
288 | --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \ |
---|
289 | --vtail " { 0, NULL, NULL }\n};\n\n" \ |
---|
290 | --vtail "GType\n@enum_name@_get_type (void)\n{\n" \ |
---|
291 | --vtail " static GType type = 0;\n\n" \ |
---|
292 | --vtail " if (!type)\n" \ |
---|
293 | --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \ |
---|
294 | --vtail " return type;\n}\n\n" \ |
---|
295 | $(panel_enum_headers) > $@ |
---|
296 | |
---|
297 | panel-typebuiltins.h: @REBUILD@ $(panel_enum_headers) |
---|
298 | glib-mkenums --fhead "#ifndef __PANEL_TYPEBUILTINS_H__\n" \ |
---|
299 | --fhead "#define __PANEL_TYPEBUILTINS_H__ 1\n\n" \ |
---|
300 | --fhead "G_BEGIN_DECLS\n\n" \ |
---|
301 | --ftail "G_END_DECLS\n\n" \ |
---|
302 | --ftail "#endif /* __PANEL_TYPEBUILTINS_H__ */\n" \ |
---|
303 | --fprod "\n/* --- @filename@ --- */" \ |
---|
304 | --eprod "#define PANEL_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \ |
---|
305 | --eprod "GType @enum_name@_get_type (void);\n" \ |
---|
306 | $(panel_enum_headers) > $@ |
---|
307 | |
---|
308 | uidir = $(datadir)/gnome-2.0/ui |
---|
309 | ui_DATA = GNOME_Panel_Popup.xml |
---|
310 | |
---|
311 | serverdir = $(libdir)/bonobo/servers |
---|
312 | server_in_files = GNOME_Panel.server.in |
---|
313 | server_DATA = $(server_in_files:.server.in=.server) |
---|
314 | |
---|
315 | rcdir = $(datadir) |
---|
316 | rc_DATA = gnome-panelrc |
---|
317 | |
---|
318 | @INTLTOOL_SERVER_RULE@ |
---|
319 | |
---|
320 | schemasdir = $(sysconfdir)/gconf/schemas |
---|
321 | schemas_in_files = \ |
---|
322 | panel-global-config.schemas.in \ |
---|
323 | panel-per-panel-config.schemas.in \ |
---|
324 | gnome-panel-screenshot.schemas.in \ |
---|
325 | $(NULL) |
---|
326 | schemas_DATA = $(schemas_in_files:.schemas.in=.schemas) |
---|
327 | |
---|
328 | @INTLTOOL_SCHEMAS_RULE@ |
---|
329 | |
---|
330 | install-data-local: |
---|
331 | if test -z "$(DESTDIR)" ; then \ |
---|
332 | for p in $(schemas_DATA) ; do \ |
---|
333 | GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(top_builddir)/gnome-panel/$$p ; \ |
---|
334 | done \ |
---|
335 | fi |
---|
336 | |
---|
337 | CLEANFILES = $(BUILT_SOURCES) |
---|
338 | |
---|
339 | dist-hook: |
---|
340 | cd $(distdir) ; rm -f $(CLEANFILES) |
---|
341 | |
---|
342 | EGG_SCREEN_EXEC_DIR = $(srcdir)/../../libegg/libegg/screen-exec |
---|
343 | EGG_ACCELERATORS_DIR = $(srcdir)/../../libegg/libegg/treeviewutils |
---|
344 | EGG_RECENT_DIR = $(srcdir)/../../libegg/libegg/recent-files |
---|
345 | |
---|
346 | regenerate-built-sources: |
---|
347 | EGGFILES="$(EGG_SCREEN_EXEC_FILES)" EGGDIR="$(EGG_SCREEN_EXEC_DIR)" $(srcdir)/update-from-egg.sh |
---|
348 | EGGFILES="$(EGG_ACCELERATORS_FILES)" EGGDIR="$(EGG_ACCELERATORS_DIR)" $(srcdir)/update-from-egg.sh |
---|
349 | EGGFILES="$(EGG_RECENT_FILES_C)" EGGDIR="$(EGG_RECENT_DIR)" $(srcdir)/update-from-egg.sh |
---|
350 | EGGFILES="$(EGG_RECENT_FILES_H)" EGGDIR="$(EGG_RECENT_DIR)" $(srcdir)/update-from-egg.sh |
---|