Makefile.am 13.9 KB
Newer Older
Owen Taylor's avatar
Owen Taylor committed
1
# Makefile.am for gtk+/gtk
Elliot Lee's avatar
Elliot Lee committed
2

3 4
SUBDIRS=stock-icons

5 6
INCLUDES = @STRIP_BEGIN@ \
	-DG_LOG_DOMAIN=\"Gtk\"				\
7
	-DGTK_LIBDIR=\"$(libdir)\"			\
8 9 10
	-DGTK_DATA_PREFIX=\"$(prefix)\"			\
	-DGTK_SYSCONFDIR=\"$(sysconfdir)\"		\
	-DGTK_LOCALEDIR=\"$(gtklocaledir)\"		\
11
	-DGTK_VERSION=\"@GTK_VERSION@\"			\
Elliot Lee's avatar
Elliot Lee committed
12
	-DTESTGTK_RCFILE=\"`pwd`/$(srcdir)/testgtkrc\"	\
13
	-DG_DISABLE_CONST_RETURNS			\
Owen Taylor's avatar
Owen Taylor committed
14
	-I$(top_builddir)/gtk				\
15 16
	-I$(top_srcdir) -I../gdk			\
	-I$(top_srcdir)/gdk				\
Owen Taylor's avatar
Owen Taylor committed
17
	-I$(top_srcdir)/gdk-pixbuf -I../gdk-pixbuf	\
18
	@GTK_DEBUG_FLAGS@				\
19
	@GTK_DEP_CFLAGS@				\
20
@STRIP_END@
21

22
gtarget=@gdktarget@
Elliot Lee's avatar
Elliot Lee committed
23

24
# libtool stuff: set version and export symbols for resolving
25 26
# since automake doesn't support conditionalized libsomething_la_LDFLAGS
# we use the general approach here
27
libgtkincludedir = $(includedir)/gtk-2.0/gtk
28
LDFLAGS = @STRIP_BEGIN@ \
29 30
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)	\
	-export-dynamic						\
31
	-rpath @prefix@/lib					\
32
	@LIBTOOL_EXPORT_OPTIONS@				\
33 34
	$(top_builddir)/gdk-pixbuf/libgdk_pixbuf-1.3.la		\
	$(top_builddir)/gdk/@gdktargetlib@			\
35
	@GTK_DEP_LIBS@						\
36
@STRIP_END@
Elliot Lee's avatar
Elliot Lee committed
37

38 39 40
#
# setup source file variables
#
41

42 43
# GTK+ header files for public installation (non-generated, or generated
# by configure)
44
gtk_public_h_sources = @STRIP_BEGIN@ \
Elliot Lee's avatar
Elliot Lee committed
45
	gtk.h			\
Tim Janik's avatar
Tim Janik committed
46 47
	gtkaccelgroup.h		\
	gtkaccellabel.h		\
48
	gtkaccessible.h		\
Elliot Lee's avatar
Elliot Lee committed
49 50 51
	gtkadjustment.h		\
	gtkalignment.h		\
	gtkarrow.h		\
52
	gtkaspectframe.h	\
Elliot Lee's avatar
Elliot Lee committed
53
	gtkbin.h		\
Tim Janik's avatar
Tim Janik committed
54
	gtkbindings.h		\
Elliot Lee's avatar
Elliot Lee committed
55 56 57
	gtkbbox.h		\
	gtkbox.h		\
	gtkbutton.h		\
58
	gtkcalendar.h		\
Elliot Lee's avatar
Elliot Lee committed
59 60
	gtkcheckbutton.h	\
	gtkcheckmenuitem.h	\
61
	gtkseparatormenuitem.h	\
62
	gtkclist.h		\
Owen Taylor's avatar
Owen Taylor committed
63
	gtkclipboard.h		\
Elliot Lee's avatar
Elliot Lee committed
64
	gtkcolorsel.h		\
Owen Taylor's avatar
Owen Taylor committed
65
	gtkcolorseldialog.h	\
66
	gtkcombo.h		\
Elliot Lee's avatar
Elliot Lee committed
67
	gtkcontainer.h		\
68
	gtkctree.h		\
Elliot Lee's avatar
Elliot Lee committed
69
	gtkcurve.h		\
70 71 72 73 74
	gtkcellrenderer.h	\
	gtkcellrenderertext.h	\
	gtkcellrenderertextpixbuf.h	\
	gtkcellrenderertoggle.h	\
	gtkcellrendererpixbuf.h	\
75
	gtkdebug.h              \
Elliot Lee's avatar
Elliot Lee committed
76
	gtkdialog.h		\
77
	gtkdnd.h		\
Elliot Lee's avatar
Elliot Lee committed
78
	gtkdrawingarea.h	\
79
	gtkeditable.h           \
Elliot Lee's avatar
Elliot Lee committed
80 81 82 83 84
	gtkentry.h		\
	gtkenums.h		\
	gtkeventbox.h		\
	gtkfilesel.h		\
	gtkfixed.h		\
85
	gtkfontsel.h		\
Elliot Lee's avatar
Elliot Lee committed
86 87 88
	gtkframe.h		\
	gtkgamma.h		\
	gtkgc.h			\
89
	gtkhandlebox.h		\
Elliot Lee's avatar
Elliot Lee committed
90 91 92 93 94 95 96
	gtkhbbox.h		\
	gtkhbox.h		\
	gtkhpaned.h		\
	gtkhruler.h		\
	gtkhscale.h		\
	gtkhscrollbar.h		\
	gtkhseparator.h		\
97
	gtkhsv.h		\
98
	gtkiconfactory.h	\
Elliot Lee's avatar
Elliot Lee committed
99
	gtkimage.h		\
100
	gtkimagemenuitem.h	\
101
	gtkimcontext.h		\
Owen Taylor's avatar
Owen Taylor committed
102
	gtkimmodule.h		\
103
	gtkimmulticontext.h	\
Elliot Lee's avatar
Elliot Lee committed
104
	gtkinputdialog.h	\
105
	gtkinvisible.h		\
Elliot Lee's avatar
Elliot Lee committed
106
	gtkitem.h		\
Tim Janik's avatar
Tim Janik committed
107
	gtkitemfactory.h	\
Elliot Lee's avatar
Elliot Lee committed
108
	gtklabel.h		\
109
	gtklayout.h             \
Elliot Lee's avatar
Elliot Lee committed
110 111
	gtklist.h		\
	gtklistitem.h		\
112
	gtkliststore.h		\
Elliot Lee's avatar
Elliot Lee committed
113 114 115 116 117
	gtkmain.h		\
	gtkmenu.h		\
	gtkmenubar.h		\
	gtkmenuitem.h		\
	gtkmenushell.h		\
118
	gtkmessagedialog.h	\
Elliot Lee's avatar
Elliot Lee committed
119 120
	gtkmisc.h		\
	gtknotebook.h		\
Owen Taylor's avatar
Owen Taylor committed
121
	gtkoldeditable.h	\
Elliot Lee's avatar
Elliot Lee committed
122 123 124 125
	gtkobject.h		\
	gtkoptionmenu.h		\
	gtkpaned.h		\
	gtkpixmap.h		\
126
	gtkplug.h		\
Elliot Lee's avatar
Elliot Lee committed
127
	gtkpreview.h		\
128
	gtkprivate.h		\
129
	gtkprogress.h		\
Elliot Lee's avatar
Elliot Lee committed
130 131 132 133 134 135 136 137 138 139 140
	gtkprogressbar.h	\
	gtkradiobutton.h	\
	gtkradiomenuitem.h	\
	gtkrange.h		\
	gtkrc.h			\
	gtkruler.h		\
	gtkscale.h		\
	gtkscrollbar.h		\
	gtkscrolledwindow.h	\
	gtkselection.h		\
	gtkseparator.h		\
141
	gtksettings.h		\
Elliot Lee's avatar
Elliot Lee committed
142
	gtksignal.h		\
143
	gtksizegroup.h		\
144
	gtksocket.h		\
145
	gtkspinbutton.h		\
Elliot Lee's avatar
Elliot Lee committed
146
	gtkstyle.h		\
Shawn Amundson's avatar
Shawn Amundson committed
147
	gtkstatusbar.h		\
148
	gtkstock.h		\
Elliot Lee's avatar
Elliot Lee committed
149
	gtktable.h		\
150
	gtktearoffmenuitem.h    \
151
	gtktextbuffer.h		\
152
	gtktextchild.h		\
153
	gtktextdisplay.h	\
154
	gtktextiter.h		\
155
	gtktextlayout.h		\
156 157 158 159
	gtktextmark.h		\
	gtktexttag.h		\
	gtktexttagtable.h	\
	gtktextview.h		\
Elliot Lee's avatar
Elliot Lee committed
160
	gtktext.h		\
161
	gtktipsquery.h		\
Elliot Lee's avatar
Elliot Lee committed
162
	gtktogglebutton.h	\
163
	gtktoolbar.h		\
Elliot Lee's avatar
Elliot Lee committed
164 165
	gtktooltips.h		\
	gtktree.h		\
Havoc Pennington's avatar
Havoc Pennington committed
166
	gtktreednd.h		\
Elliot Lee's avatar
Elliot Lee committed
167
	gtktreeitem.h		\
168
	gtktreemodel.h		\
169
	gtktreemodelsort.h	\
170
	gtktreeselection.h	\
Havoc Pennington's avatar
Havoc Pennington committed
171
	gtktreesortable.h	\
172 173 174
	gtktreestore.h		\
	gtktreeview.h		\
	gtktreeviewcolumn.h	\
Elliot Lee's avatar
Elliot Lee committed
175 176 177 178 179 180 181 182 183 184
	gtktypeutils.h		\
	gtkvbbox.h		\
	gtkvbox.h		\
	gtkviewport.h		\
	gtkvpaned.h		\
	gtkvruler.h		\
	gtkvscale.h		\
	gtkvscrollbar.h		\
	gtkvseparator.h		\
	gtkwidget.h		\
185 186 187 188
	gtkwindow.h		\
@STRIP_END@
# GTK+ header files that don't get installed
gtk_private_h_sources = @STRIP_BEGIN@ \
189
	gtkrbtree.h 		\
190
	gtktextbtree.h		\
191
	gtktextchildprivate.h   \
192 193 194 195
	gtktextsegment.h	\
	gtktexttypes.h		\
	gtktextiterprivate.h	\
	gtktextmarkprivate.h	\
196
	gtktexttagprivate.h	\
Owen Taylor's avatar
Owen Taylor committed
197
	gtkthemes.h		\
Owen Taylor's avatar
Owen Taylor committed
198
	gtktreedatalist.h	\
199
	gtktreeprivate.h	\
200
	gtkwindow-decorate.h    \
201 202
@STRIP_END@
# GTK+ C sources to build the library from
203
gtk_c_sources = @STRIP_BEGIN@   \
204 205
	gtkaccelgroup.c		\
	gtkaccellabel.c		\
206
	gtkaccessible.c		\
207 208 209 210 211 212 213 214 215 216
	gtkadjustment.c		\
	gtkalignment.c		\
	gtkarrow.c		\
	gtkaspectframe.c	\
	gtkbin.c		\
	gtkbindings.c		\
	gtkbbox.c		\
	gtkbox.c		\
	gtkbutton.c		\
	gtkcalendar.c		\
217 218 219 220 221
	gtkcellrenderer.c	\
	gtkcellrenderertext.c	\
	gtkcellrenderertextpixbuf.c	\
	gtkcellrenderertoggle.c	\
	gtkcellrendererpixbuf.c	\
222 223
	gtkcheckbutton.c	\
	gtkcheckmenuitem.c	\
224
	gtkseparatormenuitem.c	\
Owen Taylor's avatar
Owen Taylor committed
225
	gtkclipboard.c		\
226 227
	gtkclist.c		\
	gtkcolorsel.c		\
Owen Taylor's avatar
Owen Taylor committed
228
	gtkcolorseldialog.c	\
229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252
	gtkcombo.c		\
	gtkcontainer.c		\
	gtkctree.c		\
	gtkcurve.c		\
	gtkdialog.c		\
	gtkdnd.c		\
	gtkdrawingarea.c	\
	gtkeditable.c           \
	gtkentry.c		\
	gtkeventbox.c		\
	gtkfilesel.c		\
	gtkfixed.c		\
	gtkfontsel.c            \
	gtkframe.c		\
	gtkgamma.c		\
	gtkgc.c			\
	gtkhandlebox.c		\
	gtkhbbox.c		\
	gtkhbox.c		\
	gtkhpaned.c		\
	gtkhruler.c		\
	gtkhscale.c		\
	gtkhscrollbar.c		\
	gtkhseparator.c		\
Owen Taylor's avatar
Owen Taylor committed
253
	gtkhsv.c		\
254
	gtkiconfactory.c	\
255
	gtkimage.c		\
256
	gtkimagemenuitem.c	\
257 258 259
	gtkimcontext.c		\
	gtkimcontextsimple.c	\
	gtkimcontextsimple.h	\
Owen Taylor's avatar
Owen Taylor committed
260
	gtkimmodule.c		\
261
	gtkimmulticontext.c	\
262 263 264 265 266 267 268 269 270
	gtkinputdialog.c	\
	gtkintl.h		\
	gtkinvisible.c		\
	gtkitem.c		\
	gtkitemfactory.c	\
	gtklabel.c		\
	gtklayout.c		\
	gtklist.c		\
	gtklistitem.c		\
271
	gtkliststore.c		\
272 273 274 275 276
	gtkmain.c		\
	gtkmenu.c		\
	gtkmenubar.c		\
	gtkmenuitem.c		\
	gtkmenushell.c		\
277
	gtkmessagedialog.c	\
278 279 280
	gtkmisc.c		\
	gtknotebook.c		\
	gtkobject.c		\
Owen Taylor's avatar
Owen Taylor committed
281
	gtkoldeditable.c	\
282 283 284 285 286 287 288 289 290
	gtkoptionmenu.c		\
	gtkpaned.c		\
	gtkpixmap.c		\
	gtkpreview.c		\
	gtkprogress.c		\
	gtkprogressbar.c	\
	gtkradiobutton.c	\
	gtkradiomenuitem.c	\
	gtkrange.c		\
291
	gtkrbtree.c 		\
292 293 294 295 296 297 298
	gtkrc.c			\
	gtkruler.c		\
	gtkscale.c		\
	gtkscrollbar.c		\
	gtkscrolledwindow.c	\
	gtkselection.c		\
	gtkseparator.c		\
299
	gtksettings.c		\
300
	gtksignal.c		\
301
	gtksizegroup.c		\
302
	gtkspinbutton.c		\
303
	gtkstock.c		\
304 305 306 307 308
	gtkstyle.c		\
	gtkstatusbar.c		\
	gtktable.c		\
	gtktearoffmenuitem.c    \
	gtktext.c		\
309 310 311 312 313 314 315 316 317 318 319 320 321 322
	gtktextbtree.c		\
	gtktextbuffer.c		\
	gtktextchild.c		\
	gtktextdisplay.c	\
	gtktextiter.c		\
	gtktextiterprivate.h	\
	gtktextlayout.c		\
	gtktextmark.c		\
	gtktextmarkprivate.h	\
	gtktextsegment.c	\
	gtktexttag.c		\
	gtktexttagtable.c	\
	gtktexttypes.c		\
	gtktextview.c		\
323 324 325 326 327 328 329
	gtkthemes.c		\
	gtktipsquery.c		\
	gtktogglebutton.c	\
	gtktoolbar.c		\
	gtktooltips.c		\
	gtktree.c		\
	gtktreeitem.c		\
330
	gtktreedatalist.c	\
Havoc Pennington's avatar
Havoc Pennington committed
331
	gtktreednd.c		\
332
	gtktreemodel.c		\
333
	gtktreemodelsort.c	\
334
	gtktreeselection.c	\
335
	gtktreesortable.c	\
336 337 338
	gtktreestore.c		\
	gtktreeview.c		\
	gtktreeviewcolumn.c	\
339 340 341 342 343 344 345 346 347 348 349
	gtktypeutils.c		\
	gtkvbbox.c		\
	gtkvbox.c		\
	gtkviewport.c		\
	gtkvpaned.c		\
	gtkvruler.c		\
	gtkvscale.c		\
	gtkvscrollbar.c		\
	gtkvseparator.c		\
	gtkwidget.c		\
	gtkwindow.c		\
350
	gtkwindow-decorate.c    \
351 352
	fnmatch.c		\
	fnmatch.h		\
353
	xembed.h		\
354
@STRIP_END@
355

356 357 358
if USE_X11
gtk_plug_c_sources = @STRIP_BEGIN@   \
	gtkplug.c		\
359
	gtksocket.c		\
360 361 362
@STRIP_END@
endif

363 364 365 366 367
# we use our own built_sources variable rules to avoid automake's
# BUILT_SOURCES oddities
# we generate frequently rebuild files piggyback on a stamp file, so sources
# depending on them only get rebuild when the built source actually changed
# content
368 369 370 371 372 373

# built sources that get installed with the header files
gtk_built_public_sources = @STRIP_BEGIN@ \
	gtkmarshal.h		\
	gtktypebuiltins.h	\
@STRIP_END@
374 375 376 377 378 379 380 381 382 383
# built sources that don't get installed
gtk_built_sources = @STRIP_BEGIN@ \
	stamp-gtk.defs		\
	stamp-gtktypebuiltins.h	\
	stamp-gtkmarshal.h	\
	gtktypebuiltins_vars.c	\
	gtktypebuiltins_ids.c	\
	gtktypebuiltins_evals.c	\
	gtkmarshal.c		\
	gtk.defs		\
384
	${gtk_built_public_sources} \
385 386 387 388 389
@STRIP_END@
# non-header sources (headers should be specified in the above variables)
# that don't serve as direct make target sources, i.e. they don't have
# their own .lo rules and don't get publically installed
gtk_extra_sources = @STRIP_BEGIN@ \
390
	gtkversion.h.in		\
391 392 393 394 395
	maketypes.awk		\
	makeenums.h		\
	gtk-boxed.defs		\
	gtkmarshal.list		\
@STRIP_END@
396

397 398 399 400

#
# setup GTK+ sources and their dependancies
#
401
gtk_target_headers = $(gtk_public_h_sources) $(gtk_built_public_sources) gtkversion.h
402
gtk_target_sources = $(gtk_c_sources) $(gtk_plug_c_sources)
403
MAINTAINERCLEANFILES += $(gtk_built_sources)
404
EXTRA_HEADERS +=
405 406
EXTRA_DIST += $(gtk_private_h_sources) $(gtk_extra_sources)
EXTRA_DIST += $(gtk_built_sources)
407 408 409 410 411 412 413

#
# rules to generate built sources
#
# setup autogeneration dependancies
gen_sources = xgen-gdef xgen-gtbh xgen-gtbvc xgen-gtbic xgen-gtbec xgen-gmh xgen-gmc
CLEANFILES += $(gen_sources)
414 415 416
Makefile: oldest-source-stamp	# oh boy, does automake SUCK!
oldest-source-stamp: $(gtk_built_sources)
$(OBJECTS): oldest-source-stamp  ${gtk_built_public_sources} # this is our oldest file, used for implicit auto-generation deps
417 418 419 420
# initial creation of the real stamp-* files
gtk.defs gtkmarshal.h gtktypebuiltins.h:          # never add deps here
	test -f "$(srcdir)/$@" || touch $(srcdir)/$@
# normal autogeneration rules
421
# all autogenerated files need to be generated in the srcdir,
Owen Taylor's avatar
Owen Taylor committed
422 423 424 425
# so old versions get remade and are not confused with newer
# versions in the build dir. thus a development setup requires
# srcdir to be writable, passing --disable-rebuilds to
# ../configure will supress all autogeneration rules.
426
$(srcdir)/stamp-gtk.defs: @REBUILD@ gtk.defs gtk-boxed.defs $(gtk_public_h_sources)
427
	case @GLIB_MKENUMS@ in									\
Havoc Pennington's avatar
Updates  
Havoc Pennington committed
428
	   .*) glib_mkenums=`pwd`/@GLIB_MKENUMS@ ;;			\
429 430
	   *) glib_mkenums=@GLIB_MKENUMS@ ;;							\
	esac;											\
431 432
	cd $(srcdir) \
	&& $$glib_mkenums --comments ";; @comment@" \
433 434 435 436 437
			--fprod "; enumerations from \"@filename@\"\n " \
	                --vhead "(define-@type@ @EnumName@" \
	                --vprod "   (@valuenick@ @VALUENAME@)" \
	                --vtail ")" \
	                $(gtk_public_h_sources) > xgen-gdef \
438 439 440
	&& cat gtk-boxed.defs >> xgen-gdef \
	&& (cmp -s xgen-gdef gtk.defs || cp xgen-gdef gtk.defs) \
	&& rm -f xgen-gdef \
Owen Taylor's avatar
Owen Taylor committed
441
	&& echo timestamp > $(@F)
442
$(srcdir)/stamp-gtkmarshal.h: @REBUILD@ gtkmarshal.list gtkmarshal.h
443
	case @GLIB_GENMARSHAL@ in									\
Havoc Pennington's avatar
Updates  
Havoc Pennington committed
444
	   .*) glib_genmarshal=`pwd`/@GLIB_GENMARSHAL@ ;;				\
445 446
	   *) glib_genmarshal=@GLIB_GENMARSHAL@ ;;							\
	esac;												\
447 448
	cd $(srcdir) \
	&& $$glib_genmarshal --prefix=gtk_marshal gtkmarshal.list --header >> xgen-gmh \
449 450 451
	&& (cmp -s xgen-gmh gtkmarshal.h || cp xgen-gmh gtkmarshal.h) \
	&& rm -f xgen-gmh xgen-gmh~ \
	&& echo timestamp > $(@F)
452
$(srcdir)/gtkmarshal.c: @REBUILD@ $(srcdir)/stamp-gtkmarshal.h
453
	case @GLIB_GENMARSHAL@ in									\
Havoc Pennington's avatar
Updates  
Havoc Pennington committed
454
	   .*) glib_genmarshal=`pwd`/@GLIB_GENMARSHAL@ ;;				\
455 456 457
	   *) glib_genmarshal=@GLIB_GENMARSHAL@ ;;							\
	esac;												\
	cd $(srcdir) \
458
	&& $$glib_genmarshal --prefix=gtk_marshal gtkmarshal.list --body >> xgen-gmc \
Owen Taylor's avatar
Owen Taylor committed
459
	&& cp xgen-gmc gtkmarshal.c \
460
	&& rm -f xgen-gmc xgen-gmc~
461
$(srcdir)/stamp-gtktypebuiltins.h: @REBUILD@ maketypes.awk $(srcdir)/stamp-gtk.defs gtktypebuiltins.h
462
	cd $(srcdir) \
463
	&& LC_ALL=C $(AWK) -f maketypes.awk gtk.defs macros > xgen-gtbh \
464 465
	&& (cmp -s xgen-gtbh gtktypebuiltins.h || cp xgen-gtbh gtktypebuiltins.h) \
	&& rm -f xgen-gtbh \
Owen Taylor's avatar
Owen Taylor committed
466
	&& echo timestamp > $(@F)
467
$(srcdir)/gtktypebuiltins_vars.c: @REBUILD@ maketypes.awk $(srcdir)/stamp-gtk.defs
468
	cd $(srcdir) \
469
	&& LC_ALL=C $(AWK) -f maketypes.awk gtk.defs variables > xgen-gtbvc \
Owen Taylor's avatar
Owen Taylor committed
470
	&& cp xgen-gtbvc $(@F) \
471
	&& rm -f xgen-gtbvc
472
$(srcdir)/gtktypebuiltins_ids.c: @REBUILD@ maketypes.awk $(srcdir)/stamp-gtk.defs
473
	cd $(srcdir) \
474
	&& LC_ALL=C $(AWK) -f maketypes.awk gtk.defs entries > xgen-gtbic \
Owen Taylor's avatar
Owen Taylor committed
475
	&& cp xgen-gtbic $(@F) \
476
	&& rm -f xgen-gtbic
477
$(srcdir)/gtktypebuiltins_evals.c: @REBUILD@ $(gtk_public_h_sources)
478
	case @GLIB_MKENUMS@ in									\
Havoc Pennington's avatar
Updates  
Havoc Pennington committed
479
	   .*) glib_mkenums=`pwd`/@GLIB_MKENUMS@ ;;			\
480 481
	   *) glib_mkenums=@GLIB_MKENUMS@ ;;							\
	esac;											\
482 483
	cd $(srcdir) \
	&& $$glib_mkenums \
484 485 486 487 488
			--fprod "\n/* enumerations from \"@filename@\" */" \
			--vhead "static const GtkEnumValue _@enum_name@_values[] = {" \
			--vprod "  { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
			--vtail "  { 0, NULL, NULL }\n};" \
			$(gtk_public_h_sources) > xgen-gtbec \
Owen Taylor's avatar
Owen Taylor committed
489
	&& cp xgen-gtbec $(@F) \
490
	&& rm -f xgen-gtbec
491

492

493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508
# target platform:
lib_ltlibraries = @gtktargetlib@
# now define the real one to workaround automake's mishandling
lib_LTLIBRARIES = $(lib_ltlibraries)
if USE_X11
libgtk_x11_includedir = $(includedir)/gtk-2.0/gtk
libgtk_x11_include_HEADERS = $(gtk_target_headers)
libgtk_x11_1_3_la_SOURCES = $(gtk_target_sources)
endif
if USE_NANOX
libgtk_nanox_includedir = $(includedir)/gtk-2.0/gtk
libgtk_nanox_include_HEADERS = $(gtk_target_headers)
libgtk_nanox_1_3_la_SOURCES = $(gtk_target_sources)
endif
if USE_LINUX_FB
libgtk_linux_fb_includedir = $(includedir)/gtk-2.0/gtk
509
libgtk_linux_fb_include_HEADERS = $(gtk_target_headers)
510 511 512 513 514
libgtk_linux_fb_1_3_la_SOURCES = $(gtk_target_sources)
endif
EXTRA_LTLIBRARIES = libgtk-x11-1.3.la libgtk-nanox-1.3.la libgtk-linux-fb-1.3.la


515 516
# We create a dummy theme for the default GTK+ theme
install-data-local:
517
	$(mkinstalldirs) $(DESTDIR)$(datadir)/themes/Default/gtk-2.0
518
	echo "# Empty gtkrc for default theme" > $(DESTDIR)$(datadir)/themes/Default/gtk-2.0/gtkrc
519
	rm -f $(DESTDIR)$(datadir)/themes/Default/gtk-2.0/gtkrc
520

Owen Taylor's avatar
Owen Taylor committed
521 522 523
DEPS = @gtktargetlib@ $(top_builddir)/gdk-pixbuf/libgdk_pixbuf-1.3.la $(top_builddir)/gdk/@gdktargetlib@
TEST_DEPS = $(DEPS) gtk.immodules

524
LDADDS = @STRIP_BEGIN@ \
Owen Taylor's avatar
Owen Taylor committed
525
	@gtktargetlib@					\
526
	$(top_builddir)/gdk-pixbuf/libgdk_pixbuf-1.3.la	\
Owen Taylor's avatar
Owen Taylor committed
527
	$(top_builddir)/gdk/@gdktargetlib@ 		\
528
@STRIP_END@
529

Owen Taylor's avatar
Owen Taylor committed
530 531 532 533 534 535 536 537 538 539
#
# Installed tools
#
bin_PROGRAMS = gtk-query-immodules-2.0

gtk_query_immodules_2_0_DEPENDENCIES = $(DEPS)
gtk_query_immodules_2_0_LDADD = $(LDADDS)

gtk_query_immodules_2_0_SOURCES = queryimmodules.c

540
.PHONY: files test test-debug
Elliot Lee's avatar
Elliot Lee committed
541 542 543 544 545

files:
	@files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
	  echo $$p; \
	done
546

547
EXTRA_DIST += @STRIP_BEGIN@ 	\
548
	oldest-source-stamp	\
549 550 551 552 553 554 555
	line-arrow.xbm 		\
	line-wrap.xbm 		\
	tree_plus.xbm		\
	tree_minus.xbm          \
	tree_minus.xpm		\
	tree_plus.xpm		\
	gtk.def			\
556 557
	gtk-win32.rc		\
	gtk-win32.rc.in		\
Tor Lillqvist's avatar
Tor Lillqvist committed
558 559
	makefile.mingw		\
	makefile.mingw.in	\
Tor Lillqvist's avatar
Tor Lillqvist committed
560 561
	makefile.msc		\
	makefile.msc.in		\
562
@STRIP_END@
Owen Taylor's avatar
Owen Taylor committed
563

564 565
install-data-local: