Makefile.am 6.8 KB
Newer Older
Tom Tromey's avatar
Tom Tromey committed
1
## We require new-style dependency handling.
Raja R Harinath's avatar
Raja R Harinath committed
2
AUTOMAKE_OPTIONS = 1.3
Tom Tromey's avatar
Tom Tromey committed
3

Martin Baulig's avatar
Martin Baulig committed
4 5
NULL =

6
#SUBDIRS =
7

8
EXTRA_SUBDIRS = help
9

10 11 12 13 14 15
INCLUDES =							\
	-I.							\
	-I$(srcdir)						\
	-I$(top_srcdir)/gnome-desktop				\
	-I$(top_builddir)/panel					\
	-DPANEL_DEBUG						\
16
	-DG_DISABLE_DEPRECATED					\
17 18 19
	-DGDK_DISABLE_DEPRECATED				\
	-DGDK_PIXBUF_DISABLE_DEPRECATED				\
	-DGTK_DISABLE_DEPRECATED				\
20
	-DGNOME_DISABLE_DEPRECATED				\
21 22 23 24
	-DGNOME_CORE_INTERNAL					\
	-DGNOMELOCALEDIR=\""$(datadir)/locale"\"		\
	-DGNOME_DATADIR=\""$(datadir)"\"			\
	-DGLADEDIR=\""$(datadir)/gnome/panel"\"			\
25 26 27 28
	-DPREFIX=\""$(prefix)"\"				\
	-DSYSCONFDIR=\""$(sysconfdir)"\"			\
	-DDATADIR=\""$(datadir)"\"				\
	-DLIBDIR=\""$(libdir)"\"				\
29
	$(PANEL_CFLAGS)						\
Stephen Browne's avatar
Stephen Browne committed
30
	$(PANELCONFIG_CFLAGS)					\
31 32 33
	$(WARN_CFLAGS)						\
	$(NULL)

34 35 36 37
bin_PROGRAMS = \
	gnome-panel-2 			\
	gnome-panel-properties		\
	gnome-panel-screenshot
38 39

CORBA_SRCLIST =			\
jacob berkman's avatar
jacob berkman committed
40 41 42
	GNOME_Panel-stubs.c	\
	GNOME_Panel-skels.c	\
	GNOME_Panel-common.c	\
43 44
	GNOME_Panel.h		\
	$(NULL)
45

jacob berkman's avatar
jacob berkman committed
46 47
$(CORBA_SRCLIST): $(top_srcdir)/idl/GNOME_Panel.idl $(ORBIT_IDL)
	$(ORBIT_IDL) -I $(BONOBO_IDLDIR) -I $(BONOBO_ACT_IDLDIR) $(top_srcdir)/idl/GNOME_Panel.idl
48

49 50
BUILT_SOURCES = \
	$(CORBA_SRCLIST)	\
51 52
	panel-typebuiltins.c	\
	panel-typebuiltins.h	\
53 54 55
	panel-marshal.c		\
	panel-marshal.h

56
panel_sources =			\
57 58
	panel-typebuiltins.c	\
	panel-typebuiltins.h	\
59 60
	panel-marshal.c		\
	panel-marshal.h		\
61 62 63
	main.c			\
	panel-widget.c  	\
	basep-widget.c  	\
Martin Baulig's avatar
Martin Baulig committed
64 65 66 67 68
	button-widget.c  	\
	multiscreen-stuff.c	\
	xstuff.c		\
	session.c		\
	foobar-widget.c		\
69 70 71 72 73 74
	border-widget.c		\
	edge-widget.c		\
	aligned-widget.c	\
	drawer-widget.c		\
	sliding-widget.c	\
	floating-widget.c	\
75
	rgb-stuff.c		\
76 77 78 79 80
	panel.c			\
	applet.c		\
	logout.c		\
	drawer.c  		\
	panel-util.c		\
81
	panel-gconf.c		\
82
	global-keys.c		\
83
	panel-config.c  	\
84 85
	status.c  		\
	distribution.c		\
86
	gnome-run.c  		\
87 88 89 90 91 92
	menu.c  		\
	menu-util.c		\
	menu-fentry.c  		\
	swallow.c  		\
	menu-properties.c	\
	launcher.c		\
93
	panel-applet-frame.c	\
jacob berkman's avatar
jacob berkman committed
94
	panel-shell.c		\
95
	quick-desktop-reader.c	\
96 97
	$(NULL)

98
panel_headers =			\
99 100
	panel-types.h		\
	panel-widget.h		\
Mark McLoughlin's avatar
Mark McLoughlin committed
101
	panel-main.h		\
102 103 104 105 106 107 108 109 110 111 112 113 114
	basep-widget.h		\
	button-widget.h		\
	multiscreen-stuff.h	\
	xstuff.h		\
	session.h		\
	foobar-widget.h		\
	border-widget.h		\
	edge-widget.h		\
	aligned-widget.h	\
	drawer-widget.h		\
	sliding-widget.h	\
	floating-widget.h	\
	rgb-stuff.h		\
115
	panel.h         	\
116
	applet.h         	\
117 118 119 120
	logout.h		\
	drawer.h  		\
	panel-util.h		\
	global-keys.h		\
121 122
	panel-config.h		\
	panel-config-global.h  	\
123
	panel-gconf.h		\
124
	status.h  		\
125
	distribution.h		\
126
	gnome-run.h  		\
127
	menu.h  		\
128 129
	menu-util.h		\
	menu-fentry.h  		\
Martin Baulig's avatar
Martin Baulig committed
130 131
	swallow.h  		\
	menu-properties.h	\
132
	launcher.h		\
133
	panel-applet-frame.h	\
134
	quick-desktop-reader.h	\
135
	panel-shell.h		\
136 137
	$(NULL)

138
gnome_panel_2_SOURCES =		\
139 140 141 142 143
	$(CORBA_SRCLIST)	\
	$(panel_sources)	\
	$(panel_headers)	\
	$(NULL)

144
gnome_panel_2_LDADD =		\
145
	$(PANEL_LIBS)		\
146
	$(XINERAMA_LIBS)	\
147 148
	$(top_builddir)/gnome-desktop/libgnome-desktop-2.la

149
gnome_panel_2_LDFLAGS = -export-dynamic
150

151
gnome_panel_properties_SOURCES = gnome-panel-properties.c panel-util.c
152 153 154

gnome_panel_properties_LDADD = $(PANELCONFIG_LIBS)           

155 156
gnome_panel_properties_LDFLAGS = -export-dynamic

157 158 159 160 161 162 163 164 165 166

gnome_panel_screenshot_SOURCES = \
	gnome-panel-screenshot.c

gnome_panel_screenshot_LDFLAGS = -export-dynamic

gnome_panel_screenshot_LDADD = 	\
	$(PANELCONFIG_LIBS)	\
	$(PNG_LIBS)

167 168 169 170 171
EXTRA_DIST =					\
	APPLET_WRITING				\
	GNOME_Panel.server.in			\
	panel.hints				\
	gnome-panel-properties.desktop		\
172
	gnome-panel-properties			\
173 174
	$(glade_src)				\
	$(glade_DATA)				\
175
	gnome-panel-properties.glade.h		\
176
	nothing.cP				\
177
	nothing.h				\
178 179 180
	gnome-panel-screenshot.glade		\
	gnome-panel-screenshot.glade.h		\
	$(schema_DATA)				\
181
	panel-marshal.list
182

183
gladedir = $(datadir)/gnome/panel
184 185 186 187 188 189 190 191 192 193 194
glade_DATA = \
	gnome-panel-properties.glade2		\
	gnome-panel-screenshot.glade2

glade_src = \
	gnome-panel-properties.glade		\
	gnome-panel-screenshot.glade

glade_msgs = \
	gnome-panel-properties.glade.h		\
	gnome-panel-screenshot.glade.h
195 196 197 198 199

gnome-panel-properties.glade2: gnome-panel-properties.glade $(LIBGLADE_CONVERT)
	$(LIBGLADE_CONVERT) $(srcdir)/gnome-panel-properties.glade > gnome-panel-properties.glade.tmp \
	&& mv gnome-panel-properties.glade.tmp gnome-panel-properties.glade2

200 201 202
gnome-panel-screenshot.glade2: gnome-panel-screenshot.glade $(LIBGLADE_CONVERT)
	$(LIBGLADE_CONVERT) $(srcdir)/gnome-panel-screenshot.glade > gnome-panel-screenshot.glade.tmp \
	&& mv gnome-panel-screenshot.glade.tmp gnome-panel-screenshot.glade2
203

Jiri (George) Lebl's avatar
Jiri (George) Lebl committed
204 205 206
hintsdir = $(datadir)/gnome/hints
hints_DATA = panel.hints

207
sysdir = $(datadir)/control-center/Desktop/
208 209
sys_DATA = gnome-panel-properties.desktop

210
deskdir = $(datadir)/applications
Jacob Berkman's avatar
Jacob Berkman committed
211
desk_DATA = gnome-panel-properties.desktop
212

213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229
panel_enum_headers =				\
	$(top_srcdir)/panel/panel-types.h	\
	$(top_srcdir)/panel/panel-widget.h	\
	$(top_srcdir)/panel/basep-widget.h	\
	$(top_srcdir)/panel/aligned-widget.h	\
	$(top_srcdir)/panel/sliding-widget.h	\
	$(top_builddir)/panel/GNOME_Panel.h

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

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

panel-typebuiltins.c: @REBUILD@ $(panel_enum_headers)
	glib-mkenums    --fhead "#include <glib-object.h>\n" \
230 231
			--fhead "#include \"panel-typebuiltins.h\"\n\n" \
			--fprod "\n/* enumerations from \"@filename@\" */" \
Mark McLoughlin's avatar
Mark McLoughlin committed
232
			--fprod "\n#include \"@filename@\"\n" \
233 234 235 236 237 238 239 240
			--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 (!type)\n" \
			--vtail "    type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
			--vtail "  return type;\n}\n\n" \
241 242 243 244
		$(panel_enum_headers) > $@

panel-typebuiltins.h: @REBUILD@ $(panel_enum_headers)
	glib-mkenums    --fhead "#ifndef __PANEL_TYPEBUILTINS_H__\n" \
245 246 247 248 249 250 251
			--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@ --- */" \
			--eprod "#define PANEL_TYPE_@ENUMNAME@ @enum_name@_get_type()\n" \
			--eprod "GType @enum_name@_get_type (void);\n" \
252
		$(panel_enum_headers) >  $@
253

Mark McLoughlin's avatar
Mark McLoughlin committed
254
schemadir   = $(sysconfdir)/gconf/schemas
255
schema_DATA = panel-global-config.schemas panel-per-panel-config.schemas
Mark McLoughlin's avatar
Mark McLoughlin committed
256

257 258 259 260 261 262
serverdir       = $(libdir)/bonobo/servers
server_in_files = GNOME_Panel.server.in
server_DATA     = $(server_in_files:.server.in=.server)

@INTLTOOL_SERVER_RULE@

Mark McLoughlin's avatar
Mark McLoughlin committed
263 264 265 266
install-data-local:
	GCONF_CONFIG_SOURCE=$(GCONF_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(srcdir)/$(schema_DATA)

CLEANFILES = $(BUILT_SOURCES)
267 268 269

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