Makefile.am 16.1 KB
Newer Older
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\"	\
14 15
	-I$(top_srcdir) -I../gdk			\
	-I$(top_srcdir)/gdk				\
Owen Taylor's avatar
Owen Taylor committed
16
	-I$(top_srcdir)/gdk-pixbuf -I../gdk-pixbuf	\
17 18 19
	@GTK_DEBUG_FLAGS@				\
	@GTK_XIM_FLAGS@					\
	@GTK_LOCALE_FLAGS@				\
20
	@PANGO_CFLAGS@					\
21
	@GLIB_CFLAGS@					\
22
	@more_cflags@					\
23
@STRIP_END@
24

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

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

42

43 44 45
#
# setup source file variables
#
46

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

374 375 376 377 378
# 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
379 380 381 382 383 384

# built sources that get installed with the header files
gtk_built_public_sources = @STRIP_BEGIN@ \
	gtkmarshal.h		\
	gtktypebuiltins.h	\
@STRIP_END@
385 386 387 388 389 390 391 392 393 394
# 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		\
395
	${gtk_built_public_sources} \
396 397 398 399 400 401 402 403 404 405 406 407 408 409
@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@
410

411 412 413 414

#
# setup GTK+ sources and their dependancies
#
415 416 417
gtk_target_headers = $(gtk_public_h_sources) $(gtk_built_public_sources)
gtk_target_sources = $(gtk_c_sources)
MAINTAINERCLEANFILES += $(gtk_built_sources)
418
EXTRA_HEADERS +=
419 420
EXTRA_DIST += $(gtk_private_h_sources) $(gtk_extra_sources)
EXTRA_DIST += $(gtk_built_sources)
421 422 423 424 425 426 427

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

480

481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502
# 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
libgtk_linux_fb_include_HEADERS = $gtk_target_headers)
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


503
gtkconfdir = $(sysconfdir)/gtk-2.0
504
gtkconf_DATA = gtkrc.el gtkrc.eo gtkrc.he gtkrc.hy gtkrc.ja \
505 506 507
	gtkrc.ko gtkrc.ru gtkrc.tr gtkrc.th gtkrc.uk gtkrc.iso-8859-2 \
	gtkrc.iso-8859-5 gtkrc.iso-8859-13 gtkrc.iso-8859-14 \
	gtkrc.iso-8859-15 gtkrc.zh_CN gtkrc.zh_TW.Big5 \
508
	gtkrc.ka_GE.georgianacademy gtkrc.ka_GE.georgianps \
509 510
	gtkrc.vi_VN.tcvn gtkrc.vi_VN.viscii \
	gtkrc.cp1251
Elliot Lee's avatar
Elliot Lee committed
511

512 513
# We create a dummy theme for the default GTK+ theme
install-data-local:
514
	$(mkinstalldirs) $(DESTDIR)$(datadir)/themes/Default/gtk-2.0
515
	echo "# Empty gtkrc for default theme" > $(DESTDIR)$(datadir)/themes/Default/gtk-2.0/gtkrc
516
	$(mkinstalldirs) $(DESTDIR)$(gtkconfdir)
517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539
	cd $(DESTDIR)$(gtkconfdir) \
	&& for i in cs hr hu pl ro sk sl sq sr ; do \
	     rm -f gtkrc.$$i ; \
	     ln -s gtkrc.iso-8859-2 gtkrc.$$i ; \
	   done \
	&& for i in bg_BG.iso88595 mk sp ru_RU.iso88595 ; do \
	     rm -f gtkrc.$$i ; \
	     ln -s gtkrc.iso-8859-5 gtkrc.$$i ; \
	   done \
	&& rm -f gtkrc.lt gtkrc.lv gtkrc.cy gtkrc.ga gtkrc.et gtkrc.ka \
	         gtkrc.vi_VN.viscii111 gtkrc.vi_VN.tcvn5712 gtkrc.vi \
	         gtkrc.be gtkrc.bg \
	&& ln -s gtkrc.iso-8859-13 gtkrc.lt \
	&& ln -s gtkrc.iso-8859-13 gtkrc.lv \
	&& ln -s gtkrc.iso-8859-14 gtkrc.cy \
	&& ln -s gtkrc.iso-8859-14 gtkrc.ga \
	&& ln -s gtkrc.iso-8859-15 gtkrc.et \
	&& ln -s gtkrc.ka_GE.georgianacademy gtkrc.ka \
	&& ln -s gtkrc.vi_VN.viscii gtkrc.vi_VN.viscii111 \
	&& ln -s gtkrc.vi_VN.tcvn gtkrc.vi_VN.tcvn5712 \
	&& ln -s gtkrc.vi_VN.tcvn5712 gtkrc.vi \
	&& ln -s gtkrc.cp1251 gtkrc.be \
	&& ln -s gtkrc.cp1251 gtkrc.bg
540
uninstall-local:
541
	rm -f $(DESTDIR)$(datadir)/themes/Default/gtk-2.0/gtkrc
542

543 544 545
#
# test programs, not to be installed
#
546
noinst_PROGRAMS = testgtk testcalendar testinput testselection testrgb testdnd testtext simple treestoretest testtextbuffer # testthreads
547
DEPS = @gtktargetlib@ $(top_builddir)/gdk-pixbuf/libgdk_pixbuf-1.3.la  $(top_builddir)/gdk/@gdktargetlib@
548
LDADDS = @STRIP_BEGIN@ \
Owen Taylor's avatar
Owen Taylor committed
549
	@gtktargetlib@					\
550
	$(top_builddir)/gdk-pixbuf/libgdk_pixbuf-1.3.la	\
Owen Taylor's avatar
Owen Taylor committed
551 552 553 554 555 556 557 558
	$(top_builddir)/gdk/@gdktargetlib@ 		\
	@more_ldflags@					\
	@more_libs@					\
	@GDK_WLIBS@					\
	@PANGO_LIBS@					\
	@GLIB_LIBS@					\
	@GTK_LIBS_EXTRA@				\
	-lm						\
559
@STRIP_END@
Elliot Lee's avatar
Elliot Lee committed
560
testgtk_DEPENDENCIES = $(DEPS)
561
testcalendar_DEPENDENCIES = $(DEPS)
Elliot Lee's avatar
Elliot Lee committed
562 563
testinput_DEPENDENCIES = $(DEPS)
testselection_DEPENDENCIES = $(DEPS)
564
testrgb_DEPENDENCIES = $(DEPS)
565
testtext_DEPENDENCIES = $(DEPS)
566
treestoretest_DEPENDENCIES = $(DEPS)
567
testdnd_DEPENDENCIES = $(DEPS)
Elliot Lee's avatar
Elliot Lee committed
568
simple_DEPENDENCIES = $(DEPS)
569
#testthreads_DEPENDENCIES = $(DEPS)
570
testcalendar_LDADD = $(LDADDS)
Tim Janik's avatar
Tim Janik committed
571 572 573
testgtk_LDADD = $(LDADDS)
testinput_LDADD = $(LDADDS)
testselection_LDADD = $(LDADDS)
574
testtext_LDADD = $(LDADDS)
575
treestoretest_LDADD = $(LDADDS)
576
testtextbuffer_LDADD = $(LDADDS)
577
testrgb_LDADD = $(LDADDS)
578
testdnd_LDADD = $(LDADDS)
Tim Janik's avatar
Tim Janik committed
579
simple_LDADD = $(LDADDS)
580
#testthreads_LDADD = $(LDADDS)
Tim Janik's avatar
Tim Janik committed
581

Tor Lillqvist's avatar
Tor Lillqvist committed
582 583 584
makefile.mingw: $(top_builddir)/config.status $(top_srcdir)/gtk/makefile.mingw.in
	cd $(top_builddir) && CONFIG_FILES=gtk/$@ CONFIG_HEADERS= $(SHELL) ./config.status

Tor Lillqvist's avatar
Tor Lillqvist committed
585 586 587
makefile.msc: $(top_builddir)/config.status $(top_srcdir)/gtk/makefile.msc.in
	cd $(top_builddir) && CONFIG_FILES=gtk/$@ CONFIG_HEADERS= $(SHELL) ./config.status

588
.PHONY: files test test-debug
Elliot Lee's avatar
Elliot Lee committed
589 590 591 592 593

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

test: testgtk
596 597 598
	builddir=`pwd`; cd $(top_builddir); top_builddir=`pwd`; \
	cd $$builddir; cd $(srcdir); \
	$(SHELL) $$top_builddir/libtool --mode=execute $$builddir/testgtk
599 600

test-debug: testgtk
601 602 603
	builddir=`pwd`; cd $(top_builddir); top_builddir=`pwd`; \
	cd $$builddir; cd $(srcdir); \
	$(SHELL) $$top_builddir/libtool --mode=execute gdb $$builddir/testgtk
604

605
EXTRA_DIST += @STRIP_BEGIN@ 	\
606
	oldest-source-stamp	\
607 608 609
	testgtk.1 		\
	testgtkrc 		\
	testgtkrc2 		\
Owen Taylor's avatar
Owen Taylor committed
610
	circles.xbm		\
611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626
	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		\
Owen Taylor's avatar
Owen Taylor committed
627
	gtkcompat.h.win32	\
628
	gtk.def			\
Owen Taylor's avatar
Owen Taylor committed
629
	gtk.rc			\
Tor Lillqvist's avatar
Tor Lillqvist committed
630 631
	makefile.mingw		\
	makefile.mingw.in	\
Tor Lillqvist's avatar
Tor Lillqvist committed
632 633
	makefile.msc		\
	makefile.msc.in		\
634 635
	$(gtkconf_DATA)		\
@STRIP_END@
Owen Taylor's avatar
Owen Taylor committed
636