Makefile.am 7.74 KB
Newer Older
1
SUBDIRS = libegg libpanel-applet-private libpanel-util
Tom Tromey's avatar
Tom Tromey committed
2

3
4
5
6
7
bin_PROGRAMS = \
	gnome-panel 			\
	gnome-desktop-item-edit		\
	panel-test-applets
libexec_SCRIPTS = gnome-panel-add
Martin Baulig's avatar
Martin Baulig committed
8

9
10
AM_CPPFLAGS =							\
	$(PANEL_CFLAGS)						\
11
12
	-I.							\
	-I$(srcdir)						\
13
	-I$(top_builddir)/gnome-panel				\
Vincent Untz's avatar
Vincent Untz committed
14
	-I$(top_builddir)/gnome-panel/libpanel-util		\
15
	-DPANELDATADIR=\""$(datadir)/gnome-panel"\"		\
16
	-DGNOMELOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\"	\
17
	$(DISABLE_DEPRECATED_CFLAGS)
18

19
AM_CFLAGS = $(WARN_CFLAGS)
20

21
panel_sources =			\
Vincent Untz's avatar
Vincent Untz committed
22
	$(gnome_panel_BUILT_SOURCES) \
23
	main.c			\
24
25
	panel-widget.c		\
	button-widget.c		\
Martin Baulig's avatar
Martin Baulig committed
26
	xstuff.c		\
27
	panel-session.c		\
28
	panel-compatibility.c	\
29
30
31
	panel.c			\
	applet.c		\
	panel-util.c		\
32
	panel-gconf.c		\
33
	panel-properties-dialog.c	\
34
	panel-run-dialog.c	\
35
36
	menu.c			\
	panel-context-menu.c	\
37
	launcher.c		\
38
	panel-applet-frame.c	\
39
	panel-applets-manager.c	\
jacob berkman's avatar
jacob berkman committed
40
	panel-shell.c		\
41
	panel-background.c	\
42
	panel-background-monitor.c	\
43
	panel-stock-icons.c	\
44
	panel-action-button.c	\
45
	panel-menu-bar.c	\
46
	panel-menu-bar-object.c	\
47
48
	panel-menu-button.c	\
	panel-menu-items.c	\
49
	panel-separator.c	\
50
	panel-recent.c		\
51
	panel-action-protocol.c	\
52
	panel-toplevel.c	\
Mark McLoughlin's avatar
Mark McLoughlin committed
53
	panel-struts.c		\
54
55
56
57
58
	panel-frame.c		\
	panel-xutils.c		\
	panel-multiscreen.c	\
	panel-a11y.c		\
	panel-bindings.c	\
Mark McLoughlin's avatar
Mark McLoughlin committed
59
	panel-force-quit.c	\
60
	panel-lockdown.c	\
61
	panel-addto.c		\
62
	panel-ditem-editor.c	\
63
	panel-layout.c		\
64
	panel-modules.c		\
65
	panel-object-loader.c	\
Vincent Untz's avatar
Vincent Untz committed
66
	panel-user-menu.c	\
67
	panel-applet-info.c
68

69
panel_headers =			\
70
71
	panel-types.h		\
	panel-widget.h		\
72
	panel-globals.h		\
73
74
	button-widget.h		\
	xstuff.h		\
75
	panel-session.h		\
76
77
78
	panel-compatibility.h	\
	panel.h			\
	applet.h		\
79
	panel-util.h		\
80
	panel-properties-dialog.h	\
81
	panel-gconf.h		\
82
	panel-run-dialog.h	\
83
84
	menu.h			\
	panel-context-menu.h	\
85
	launcher.h		\
86
	panel-applet-frame.h	\
87
	panel-applets-manager.h	\
88
	panel-shell.h		\
89
	panel-background.h	\
90
	panel-background-monitor.h	\
91
	panel-stock-icons.h	\
92
	panel-action-button.h	\
93
	panel-menu-bar.h	\
94
	panel-menu-bar-object.h	\
95
96
	panel-menu-button.h	\
	panel-menu-items.h	\
97
	panel-separator.h	\
98
	panel-recent.h		\
99
	panel-action-protocol.h	\
100
	panel-toplevel.h	\
Mark McLoughlin's avatar
Mark McLoughlin committed
101
	panel-struts.h		\
102
103
104
105
106
107
	panel-frame.h		\
	panel-xutils.h		\
	panel-multiscreen.h	\
	panel-a11y.h		\
	panel-bindings.h	\
	panel-enums.h		\
108
	panel-enums-gsettings.h	\
Mark McLoughlin's avatar
Mark McLoughlin committed
109
	panel-force-quit.h	\
110
	panel-lockdown.h	\
111
	panel-addto.h		\
112
	panel-ditem-editor.h	\
113
	panel-icon-names.h	\
114
	panel-layout.h		\
115
	panel-modules.h		\
116
	panel-object-loader.h	\
117
	panel-schemas.h		\
Vincent Untz's avatar
Vincent Untz committed
118
	panel-user-menu.h	\
119
	panel-applet-info.h
120

121
122
gnome_panel_SOURCES =			\
	$(panel_sources)		\
123
124
125
126
	$(panel_headers)

gnome_panel_CPPFLAGS = 				\
	$(AM_CPPFLAGS)				\
127
	$(TELEPATHY_GLIB_CFLAGS)		\
128
129
	$(XRANDR_CFLAGS)			\
	-DPANEL_MODULES_DIR=\"$(modulesdir)\"	\
130
131
	-DGMENU_I_KNOW_THIS_IS_UNSTABLE		\
	-DGNOME_DESKTOP_USE_UNSTABLE_API
132

133
gnome_panel_LDADD =		\
134
135
136
137
	$(top_builddir)/gnome-panel/libegg/libegg.la					\
	$(top_builddir)/gnome-panel/libpanel-applet-private/libpanel-applet-private.la	\
	$(top_builddir)/gnome-panel/libpanel-util/libpanel-util.la			\
	$(PANEL_LIBS)									\
138
	$(TELEPATHY_GLIB_LIBS)								\
139
	$(XRANDR_LIBS)									\
140
	$(X_LIBS)
141

142
143
gnome_panel_LDFLAGS = -export-dynamic

144
145
146
147
148
gnome_desktop_item_edit_SOURCES =	\
	gnome-desktop-item-edit.c	\
	panel-ditem-editor.c		\
	panel-marshal.c			\
	panel-util.c			\
149
	xstuff.c
150
151

gnome_desktop_item_edit_LDADD = 	\
152
153
154
	$(top_builddir)/gnome-panel/libpanel-util/libpanel-util.la	\
	$(PANEL_LIBS)							\
	$(X_LIBS)
155

Vincent Untz's avatar
Vincent Untz committed
156
157
158
159
160
panel_test_applets_SOURCES =			\
	$(panel_test_applets_BUILT_SOURCES)	\
	panel-modules.c				\
	panel-applet-info.c			\
	panel-applets-manager.c			\
161
162
	panel-test-applets.c

163
164
165
166
167
panel_test_applets_CPPFLAGS =			\
	$(AM_CPPFLAGS)				\
	-DPANEL_MODULES_DIR=\"$(modulesdir)\"	\
	-DPANEL_APPLETS_DIR=\"$(appletsdir)\"

168
169
170
171
panel_test_applets_LDADD = 		\
	$(top_builddir)/gnome-panel/libpanel-applet-private/libpanel-applet-private-mini.la	\
	$(top_builddir)/gnome-panel/libpanel-util/libpanel-util.la				\
	$(PANEL_LIBS)
172

173
174
panel_test_applets_LDFLAGS = -export-dynamic

175
176
177
178
179
180
gnome-panel-add: gnome-panel-add.in Makefile
	$(AM_V_GEN)sed 						\
		-e s!\@PYTHON\@!@PYTHON@! 			\
		-e s!\@PANEL_APPLETS_DIR\@!$(appletsdir)! 	\
		< $< > $@
	$(AM_V_at)chmod a+x $@
181

182
183
184
panel_enum_headers =						\
	$(top_srcdir)/gnome-panel/panel-enums.h			\
	$(top_srcdir)/gnome-panel/panel-enums-gsettings.h	\
185
	$(top_srcdir)/gnome-panel/panel-types.h
186
187

panel-marshal.h: panel-marshal.list $(GLIB_GENMARSHAL)
188
	$(AM_V_GEN)$(GLIB_GENMARSHAL) $< --header --prefix=panel_marshal > $@
189
190

panel-marshal.c: panel-marshal.list $(GLIB_GENMARSHAL)
191
	$(AM_V_GEN)echo "#include \"panel-marshal.h\"" > $@ && \
192
193
	$(GLIB_GENMARSHAL) $< --body --prefix=panel_marshal >> $@

194
panel-typebuiltins.c: $(panel_enum_headers)
195
	$(AM_V_GEN)glib-mkenums \
196
			--fhead "#include <glib-object.h>\n" \
197
198
			--fhead "#include \"panel-typebuiltins.h\"\n\n" \
			--fprod "\n/* enumerations from \"@filename@\" */" \
Mark McLoughlin's avatar
remove.    
Mark McLoughlin committed
199
			--fprod "\n#include \"@filename@\"\n" \
200
			--vhead "static const GEnumValue _@enum_name@_values[] = {" \
201
202
203
204
205
			--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 (!type)\n" \
206
			--vtail "    type = g_enum_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
207
			--vtail "  return type;\n}\n\n" \
208
209
		$(panel_enum_headers) > $@

210
panel-typebuiltins.h: $(panel_enum_headers)
211
	$(AM_V_GEN)glib-mkenums \
212
			--fhead "#ifndef __PANEL_TYPEBUILTINS_H__\n" \
213
214
215
216
217
			--fhead "#define __PANEL_TYPEBUILTINS_H__ 1\n\n" \
			--fhead "G_BEGIN_DECLS\n\n" \
			--ftail "G_END_DECLS\n\n" \
			--ftail "#endif /* __PANEL_TYPEBUILTINS_H__ */\n" \
			--fprod "\n/* --- @filename@ --- */" \
218
			--eprod "#define PANEL_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
219
			--eprod "GType @enum_name@_get_type (void);\n" \
220
221
		$(panel_enum_headers) > $@

Vincent Untz's avatar
Vincent Untz committed
222
gnome_panel_BUILT_SOURCES = \
223
224
	panel-typebuiltins.c		\
	panel-typebuiltins.h		\
Vincent Untz's avatar
Vincent Untz committed
225
226
	panel-resources.c		\
	panel-resources.h		\
227
228
	panel-marshal.c			\
	panel-marshal.h
229

Vincent Untz's avatar
Vincent Untz committed
230
231
232
233
234
235
236
237
238
239
240
panel_test_applets_BUILT_SOURCES = 	\
	panel-test-applets-resources.c	\
	panel-test-applets-resources.h	\
	panel-marshal.c			\
	panel-marshal.h

BUILT_SOURCES = 				\
	$(gnome_panel_BUILT_SOURCES)		\
	$(panel_test_applets_BUILT_SOURCES)

ui_FILES =					\
241
	panel-properties-dialog.ui		\
Vincent Untz's avatar
Vincent Untz committed
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
	panel-run-dialog.ui

panel-resources.c: panel.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies panel.gresource.xml)
	$(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate --c-name panel $(srcdir)/$<

panel-resources.h: panel.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies panel.gresource.xml)
	$(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate --c-name panel $(srcdir)/$<

uitest_FILES = panel-test-applets.ui

panel-test-applets-resources.c: panel-test-applets.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies panel-test-applets.gresource.xml)
	$(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate --c-name panel $(srcdir)/$<

panel-test-applets-resources.h: panel-test-applets.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies panel-test-applets.gresource.xml)
	$(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate --c-name panel $(srcdir)/$<
257
258
259
260
261
262
263
264

desktopdir = $(datadir)/applications
desktop_in_files = gnome-panel.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)

@INTLTOOL_DESKTOP_RULE@

EXTRA_DIST =					\
Vincent Untz's avatar
Vincent Untz committed
265
	$(ui_FILES)				\
Vincent Untz's avatar
Vincent Untz committed
266
	panel.gresource.xml			\
Vincent Untz's avatar
Vincent Untz committed
267
	$(uitest_FILES)				\
Vincent Untz's avatar
Vincent Untz committed
268
	panel-test-applets.gresource.xml	\
269
270
271
272
273
274
	nothing.cP				\
	nothing.h				\
	panel-marshal.list			\
	$(desktop_in_files)			\
	gnome-panel-add.in

275
276
CLEANFILES = \
	$(BUILT_SOURCES) \
277
	$(sys_DATA) \
278
279
	$(desktop_DATA) \
	gnome-panel-add
280
281
282

dist-hook:
	cd $(distdir) ; rm -f $(CLEANFILES)
283
284

-include $(top_srcdir)/git.mk