Makefile.am 15.3 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 7 8 9 10 11
INCLUDES = @STRIP_BEGIN@ \
	-DG_LOG_DOMAIN=\"Gtk\"				\
	-DGTK_DISABLE_COMPAT_H				\
	-DGTK_EXE_PREFIX=\"$(exec_prefix)\"		\
	-DGTK_DATA_PREFIX=\"$(prefix)\"			\
	-DGTK_SYSCONFDIR=\"$(sysconfdir)\"		\
	-DGTK_LOCALEDIR=\"$(gtklocaledir)\"		\
12
	-DGTK_VERSION=\"@GTK_VERSION@\"			\
Elliot Lee's avatar
Elliot Lee committed
13
	-DTESTGTK_RCFILE=\"`pwd`/$(srcdir)/testgtkrc\"	\
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 19 20
	@GTK_DEBUG_FLAGS@				\
	@GTK_XIM_FLAGS@					\
	@GTK_LOCALE_FLAGS@				\
21
	@PANGO_CFLAGS@					\
22
	@GLIB_CFLAGS@					\
23
	@more_cflags@					\
24
@STRIP_END@
25

26
gtarget=@gdktarget@
Elliot Lee's avatar
Elliot Lee committed
27

28
# libtool stuff: set version and export symbols for resolving
29 30
# since automake doesn't support conditionalized libsomething_la_LDFLAGS
# we use the general approach here
31
libgtkincludedir = $(includedir)/gtk-2.0/gtk
32
LDFLAGS = @STRIP_BEGIN@ \
33 34
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)	\
	-export-dynamic						\
35
	-rpath @prefix@/lib					\
36
	@LIBTOOL_EXPORT_OPTIONS@				\
37
	@PANGO_LIBS@						\
38
	@GLIB_DEPLIBS@ 						\
39 40
	@more_ldflags@						\
	@more_libs@ 						\
41 42
	-lm							\
@STRIP_END@
Elliot Lee's avatar
Elliot Lee committed
43

44

45 46 47
#
# setup source file variables
#
48

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

385 386 387 388 389
# 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
390 391 392 393 394 395

# built sources that get installed with the header files
gtk_built_public_sources = @STRIP_BEGIN@ \
	gtkmarshal.h		\
	gtktypebuiltins.h	\
@STRIP_END@
396 397 398 399 400 401 402 403 404 405
# 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		\
406
	${gtk_built_public_sources} \
407 408 409 410 411 412 413 414 415 416 417 418 419 420
@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@ \
	gtkcompat.h.in		\
	makeenums.pl		\
	makeenums.awk		\
	maketypes.awk		\
	makeenums.h		\
	gtkargcollector.c	\
	gtk-boxed.defs		\
	gtkmarshal.list		\
@STRIP_END@
421

422 423 424 425

#
# setup GTK+ sources and their dependancies
#
426 427 428
gtk_target_headers = $(gtk_public_h_sources) $(gtk_built_public_sources)
gtk_target_sources = $(gtk_c_sources)
MAINTAINERCLEANFILES += $(gtk_built_sources)
429
EXTRA_HEADERS +=
430 431
EXTRA_DIST += $(gtk_private_h_sources) $(gtk_extra_sources)
EXTRA_DIST += $(gtk_built_sources)
432 433 434 435 436 437 438

#
# 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)
439 440 441
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
442 443 444 445
# 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
446
# all autogenerated files need to be generated in the srcdir,
Owen Taylor's avatar
Owen Taylor committed
447 448 449 450 451
# 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.
$(srcdir)/stamp-gtk.defs: @REBUILD@ makeenums.pl gtk.defs gtk-boxed.defs $(gtk_public_h_sources) $(gdk_headers)
452
	cd $(srcdir) \
453 454 455 456
	&& $(PERL) makeenums.pl defs $(gtk_public_h_sources) $(gdk_headers) > xgen-gdef \
	&& 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
457
	&& echo timestamp > $(@F)
458 459 460 461 462 463
$(srcdir)/stamp-gtkmarshal.h: @REBUILD@ gtkmarshal.list gtkmarshal.h
	cd $(srcdir) \
	&& glib-genmarshal --prefix=gtk_marshal gtkmarshal.list --header >> xgen-gmh \
	&& (cmp -s xgen-gmh gtkmarshal.h || cp xgen-gmh gtkmarshal.h) \
	&& rm -f xgen-gmh xgen-gmh~ \
	&& echo timestamp > $(@F)
464
$(srcdir)/gtkmarshal.c: @REBUILD@ $(srcdir)/stamp-gtkmarshal.h
465
	cd $(srcdir) \
466
	&& glib-genmarshal --prefix=gtk_marshal gtkmarshal.list --body >> xgen-gmc \
467
	&& cp xgen-gmc gtkmarshal.c \
468
	&& rm -f xgen-gmc xgen-gmc~
Owen Taylor's avatar
Owen Taylor committed
469
$(srcdir)/stamp-gtktypebuiltins.h: @REBUILD@ maketypes.awk stamp-gtk.defs gtktypebuiltins.h
470
	cd $(srcdir) \
471
	&& LC_ALL=C $(AWK) -f maketypes.awk gtk.defs macros > xgen-gtbh \
472 473
	&& (cmp -s xgen-gtbh gtktypebuiltins.h || cp xgen-gtbh gtktypebuiltins.h) \
	&& rm -f xgen-gtbh \
Owen Taylor's avatar
Owen Taylor committed
474 475
	&& echo timestamp > $(@F)
$(srcdir)/gtktypebuiltins_vars.c: @REBUILD@ maketypes.awk stamp-gtk.defs
476
	cd $(srcdir) \
477
	&& LC_ALL=C $(AWK) -f maketypes.awk gtk.defs variables > xgen-gtbvc \
Owen Taylor's avatar
Owen Taylor committed
478
	&& cp xgen-gtbvc $(@F) \
479
	&& rm -f xgen-gtbvc
Owen Taylor's avatar
Owen Taylor committed
480
$(srcdir)/gtktypebuiltins_ids.c: @REBUILD@ maketypes.awk stamp-gtk.defs
481
	cd $(srcdir) \
482
	&& LC_ALL=C $(AWK) -f maketypes.awk gtk.defs entries > xgen-gtbic \
Owen Taylor's avatar
Owen Taylor committed
483
	&& cp xgen-gtbic $(@F) \
484
	&& rm -f xgen-gtbic
Owen Taylor's avatar
Owen Taylor committed
485
$(srcdir)/gtktypebuiltins_evals.c: @REBUILD@ makeenums.pl $(gtk_public_h_sources) $(gdk_headers)
486 487
	cd $(srcdir) \
	&& $(PERL) makeenums.pl arrays $(gtk_public_h_sources) $(gdk_headers) > xgen-gtbec \
Owen Taylor's avatar
Owen Taylor committed
488
	&& cp xgen-gtbec $(@F) \
489
	&& rm -f xgen-gtbec
490

491

492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507
# 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
508
libgtk_linux_fb_include_HEADERS = $(gtk_target_headers)
509 510 511 512 513
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


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

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

526
LDADDS = @STRIP_BEGIN@ \
Owen Taylor's avatar
Owen Taylor committed
527
	@gtktargetlib@					\
528
	$(top_builddir)/gdk-pixbuf/libgdk_pixbuf-1.3.la	\
Owen Taylor's avatar
Owen Taylor committed
529 530 531 532 533 534 535 536
	$(top_builddir)/gdk/@gdktargetlib@ 		\
	@more_ldflags@					\
	@more_libs@					\
	@GDK_WLIBS@					\
	@PANGO_LIBS@					\
	@GLIB_LIBS@					\
	@GTK_LIBS_EXTRA@				\
	-lm						\
537
@STRIP_END@
538

Owen Taylor's avatar
Owen Taylor committed
539 540 541 542 543 544 545 546 547 548
#
# 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

549
gtk.immodules: gtk-query-immodules-2.0 ../modules/input/Makefile.am
Owen Taylor's avatar
Owen Taylor committed
550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568
	./gtk-query-immodules-2.0 ../modules/input/.libs/*.so > gtk.immodules

#
# test programs, not to be installed
#
noinst_PROGRAMS = testgtk testcalendar testinput testselection testrgb testdnd testtext simple treestoretest testtextbuffer # testthreads

testcalendar_DEPENDENCIES = $(TEST_DEPS)
testgtk_DEPENDENCIES = $(TEST_DEPS)
testinput_DEPENDENCIES = $(TEST_DEPS)
testrgb_DEPENDENCIES = $(TEST_DEPS)
testselection_DEPENDENCIES = $(TEST_DEPS)
testtext_DEPENDENCIES = $(TEST_DEPS)
testtextbuffer_DEPENDENCIES = $(TEST_DEPS)
treestoretest_DEPENDENCIES = $(TEST_DEPS)
testdnd_DEPENDENCIES = $(TEST_DEPS)
simple_DEPENDENCIES = $(TEST_DEPS)
#testthreads_DEPENDENCIES = $(TEST_DEPS)

569
testcalendar_LDADD = $(LDADDS)
Tim Janik's avatar
Tim Janik committed
570 571
testgtk_LDADD = $(LDADDS)
testinput_LDADD = $(LDADDS)
Owen Taylor's avatar
Owen Taylor committed
572
testrgb_LDADD = $(LDADDS)
Tim Janik's avatar
Tim Janik committed
573
testselection_LDADD = $(LDADDS)
574
testtext_LDADD = $(LDADDS)
575
testtextbuffer_LDADD = $(LDADDS)
Owen Taylor's avatar
Owen Taylor committed
576
treestoretest_LDADD = $(LDADDS)
577
testdnd_LDADD = $(LDADDS)
Tim Janik's avatar
Tim Janik committed
578
simple_LDADD = $(LDADDS)
579
#testthreads_LDADD = $(LDADDS)
Tim Janik's avatar
Tim Janik committed
580

581
.PHONY: files test test-debug
Elliot Lee's avatar
Elliot Lee committed
582 583 584 585 586

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

test: testgtk
589 590 591
	builddir=`pwd`; cd $(top_builddir); top_builddir=`pwd`; \
	cd $$builddir; cd $(srcdir); \
	$(SHELL) $$top_builddir/libtool --mode=execute $$builddir/testgtk
592 593

test-debug: testgtk
594 595 596
	builddir=`pwd`; cd $(top_builddir); top_builddir=`pwd`; \
	cd $$builddir; cd $(srcdir); \
	$(SHELL) $$top_builddir/libtool --mode=execute gdb $$builddir/testgtk
597

598
EXTRA_DIST += @STRIP_BEGIN@ 	\
599
	oldest-source-stamp	\
600 601 602
	testgtk.1 		\
	testgtkrc 		\
	testgtkrc2 		\
Owen Taylor's avatar
Owen Taylor committed
603
	circles.xbm		\
604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620
	line-arrow.xbm 		\
	line-wrap.xbm 		\
	tree_plus.xbm		\
	tree_minus.xbm          \
	3DRings.xpm		\
	FilesQueue.xpm		\
	Modeller.xpm		\
	check-y.xpm		\
	check-n.xpm		\
	marble.xpm		\
	tree_minus.xpm		\
	tree_plus.xpm		\
	test.xpm		\
	check-y.xpm		\
	check-n.xpm		\
	test.xpm		\
	gtk.def			\
621 622
	gtk-win32.rc		\
	gtk-win32.rc.in		\
Tor Lillqvist's avatar
Tor Lillqvist committed
623 624
	makefile.mingw		\
	makefile.mingw.in	\
Tor Lillqvist's avatar
Tor Lillqvist committed
625 626
	makefile.msc		\
	makefile.msc.in		\
627
@STRIP_END@
Owen Taylor's avatar
Owen Taylor committed
628

629 630
install-data-local: