Makefile.am 5.72 KB
Newer Older
1 2
NULL =

3 4 5 6
SUBDIRS = \
	libpanel-applet-private \
	libpanel-util \
	$(NULL)
Tom Tromey's avatar
Tom Tromey committed
7

8
bin_PROGRAMS = \
9 10 11
	gnome-panel \
	gnome-desktop-item-edit \
	$(NULL)
12

13
panel_sources =			\
14 15
	gp-add-applet-window.c \
	gp-add-applet-window.h \
16 17
	gp-arrow-button.c \
	gp-arrow-button.h \
18 19
	gp-module-manager.c \
	gp-module-manager.h \
20 21
	gp-properties-dialog.c \
	gp-properties-dialog.h \
22 23
	gp-theme.c \
	gp-theme.h \
24
	main.c			\
25 26
	panel-widget.c		\
	button-widget.c		\
27
	panel-session.c		\
28 29 30
	panel.c			\
	applet.c		\
	panel-util.c		\
31
	panel-run-dialog.c	\
32 33
	menu.c			\
	panel-context-menu.c	\
34
	launcher.c		\
35
	panel-applet-frame.c	\
36
	panel-applets-manager.c	\
37
	panel-stock-icons.c	\
38
	panel-action-button.c	\
39
	panel-image-menu-item.c \
40
	panel-menu-items.c	\
41
	panel-recent.c		\
42
	panel-action-protocol.c	\
43
	panel-toplevel.c	\
Mark McLoughlin's avatar
Mark McLoughlin committed
44
	panel-struts.c		\
45 46 47 48
	panel-xutils.c		\
	panel-multiscreen.c	\
	panel-a11y.c		\
	panel-bindings.c	\
Mark McLoughlin's avatar
Mark McLoughlin committed
49
	panel-force-quit.c	\
50
	panel-lockdown.c	\
51
	panel-addto-dialog.c	\
52
	panel-ditem-editor.c	\
53
	panel-layout.c		\
54
	panel-object-loader.c	\
55
	panel-applet-info.c
56

57
panel_headers =			\
58 59 60
	panel-types.h		\
	panel-widget.h		\
	button-widget.h		\
61
	panel-session.h		\
62 63
	panel.h			\
	applet.h		\
64
	panel-util.h		\
65
	panel-run-dialog.h	\
66 67
	menu.h			\
	panel-context-menu.h	\
68
	launcher.h		\
69
	panel-applet-frame.h	\
70
	panel-applets-manager.h	\
71
	panel-stock-icons.h	\
72
	panel-action-button.h	\
73
	panel-image-menu-item.h \
74
	panel-menu-items.h	\
75
	panel-recent.h		\
76
	panel-action-protocol.h	\
77
	panel-toplevel.h	\
Mark McLoughlin's avatar
Mark McLoughlin committed
78
	panel-struts.h		\
79 80 81 82 83
	panel-xutils.h		\
	panel-multiscreen.h	\
	panel-a11y.h		\
	panel-bindings.h	\
	panel-enums.h		\
84
	panel-enums-gsettings.h	\
Mark McLoughlin's avatar
Mark McLoughlin committed
85
	panel-force-quit.h	\
86
	panel-lockdown.h	\
87
	panel-addto-dialog.h	\
88
	panel-ditem-editor.h	\
89
	panel-icon-names.h	\
90
	panel-layout.h		\
91
	panel-object-loader.h	\
92
	panel-schemas.h		\
93
	panel-applet-info.h
94

95 96
gnome_panel_SOURCES =			\
	$(panel_sources)		\
97 98 99
	$(panel_headers) \
	$(BUILT_SOURCES) \
	$(NULL)
100

101 102 103 104
gnome_panel_CPPFLAGS = \
	-DG_LOG_DOMAIN=\"gnome-panel\" \
	$(NULL)

105 106 107
gnome_panel_CFLAGS = \
	-DGMENU_I_KNOW_THIS_IS_UNSTABLE \
	-DGNOME_DESKTOP_USE_UNSTABLE_API \
108
	-DMODULESDIR=\""$(libdir)/gnome-panel/modules"\" \
109
	-DPANELDATADIR=\""$(datadir)/gnome-panel"\" \
110
	-DGNOMELOCALEDIR=\""$(localedir)"\" \
111 112 113
	-I$(srcdir) \
	-I$(top_builddir)/gnome-panel \
	-I$(top_builddir)/gnome-panel/libpanel-util \
114
	-I$(top_srcdir) \
115 116 117 118 119
	$(XRANDR_CFLAGS) \
	$(PANEL_CFLAGS) \
	$(WARN_CFLAGS) \
	$(AM_CFLAGS) \
	$(NULL)
120

121
gnome_panel_LDADD =		\
122 123 124
	$(top_builddir)/gnome-panel/libpanel-applet-private/libpanel-applet-private.la	\
	$(top_builddir)/gnome-panel/libpanel-util/libpanel-util.la			\
	$(PANEL_LIBS)									\
125
	$(NULL)
126

127 128 129 130 131
gnome_panel_LDFLAGS = \
	-export-dynamic \
	$(WARN_LDFLAGS) \
	$(AM_LDFLAGS) \
	$(NULL)
132

133 134 135 136
gnome_desktop_item_edit_SOURCES =	\
	gnome-desktop-item-edit.c	\
	panel-ditem-editor.c		\
	panel-util.c			\
137
	$(NULL)
138

139 140
gnome_desktop_item_edit_CFLAGS = \
	-DPANELDATADIR=\""$(datadir)/gnome-panel"\" \
141
	-DGNOMELOCALEDIR=\""$(localedir)"\" \
142 143 144 145 146 147 148 149
	-I$(srcdir) \
	-I$(top_builddir)/gnome-panel \
	-I$(top_builddir)/gnome-panel/libpanel-util \
	$(PANEL_CFLAGS) \
	$(WARN_CFLAGS) \
	$(AM_CFLAGS) \
	$(NULL)

150
gnome_desktop_item_edit_LDADD = 	\
151 152
	$(top_builddir)/gnome-panel/libpanel-util/libpanel-util.la	\
	$(PANEL_LIBS)							\
153 154 155 156 157 158
	$(NULL)

gnome_desktop_item_edit_LDFLAGS = \
	$(WARN_LDFLAGS) \
	$(AM_LDFLAGS) \
	$(NULL)
159

160 161 162
panel_enum_headers =						\
	$(top_srcdir)/gnome-panel/panel-enums.h			\
	$(top_srcdir)/gnome-panel/panel-enums-gsettings.h	\
163
	$(top_srcdir)/gnome-panel/panel-types.h
164

165
panel-typebuiltins.c: $(panel_enum_headers)
166
	$(AM_V_GEN)glib-mkenums \
167 168
			--fhead "#include \"panel-typebuiltins.h\"\n\n" \
			--fprod "\n/* enumerations from \"@filename@\" */" \
Mark McLoughlin's avatar
Mark McLoughlin committed
169
			--fprod "\n#include \"@filename@\"\n" \
170
			--vhead "static const GEnumValue _@enum_name@_values[] = {" \
171 172 173 174 175
			--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" \
176
			--vtail "    type = g_enum_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
177
			--vtail "  return type;\n}\n\n" \
178 179
		$(panel_enum_headers) > $@

180
panel-typebuiltins.h: $(panel_enum_headers)
181
	$(AM_V_GEN)glib-mkenums \
182
			--fhead "#ifndef __PANEL_TYPEBUILTINS_H__\n" \
183
			--fhead "#define __PANEL_TYPEBUILTINS_H__ 1\n\n" \
184
			--fhead "#include <glib-object.h>\n\n" \
185 186 187 188
			--fhead "G_BEGIN_DECLS\n\n" \
			--ftail "G_END_DECLS\n\n" \
			--ftail "#endif /* __PANEL_TYPEBUILTINS_H__ */\n" \
			--fprod "\n/* --- @filename@ --- */" \
189
			--eprod "#define PANEL_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
190
			--eprod "GType @enum_name@_get_type (void);\n" \
191 192
		$(panel_enum_headers) > $@

193 194 195 196 197 198
BUILT_SOURCES = \
	panel-typebuiltins.c \
	panel-typebuiltins.h \
	panel-resources.c \
	panel-resources.h \
	$(NULL)
199 200

ui_FILES =					\
201
	gp-properties-dialog.ui \
202
	panel-addto-dialog.ui \
203 204
	panel-run-dialog.ui

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

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

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

215 216 217
%.desktop: %.desktop.in
	$(AM_V_GEN) $(MSGFMT) --desktop --template $< -o $@-t \
		-d $(top_srcdir)/po && mv $@-t $@
218 219

EXTRA_DIST =					\
220
	$(ui_FILES)				\
Vincent Untz's avatar
Vincent Untz committed
221
	panel.gresource.xml			\
222
	$(desktop_in_files) \
223
	$(NULL)
224

225 226
CLEANFILES = \
	$(BUILT_SOURCES) \
227
	$(sys_DATA) \
228 229
	$(desktop_DATA) \
	$(NULL)
230 231

-include $(top_srcdir)/git.mk