Makefile.am 37.4 KB
Newer Older
Owen Taylor's avatar
Owen Taylor committed
1
# Makefile.am for gtk+/gtk
2
include $(top_srcdir)/Makefile.decl
3
-include $(INTROSPECTION_MAKEFILE)
Johan Dahlin's avatar
Johan Dahlin committed
4 5 6 7 8 9 10
INTROSPECTION_GIRS =
INTROSPECTION_SCANNER_ARGS = \
	--add-include-path=../gdk
INTROSPECTION_COMPILER_ARGS = \
	--includedir=$(srcdir) \
    --includedir=. \
    --includedir=../gdk
Elliot Lee's avatar
Elliot Lee committed
11

12
if USE_QUARTZ
13
GTK_PRINT_PREVIEW_COMMAND="open -a /Applications/Preview.app %f"
14
else
15
GTK_PRINT_PREVIEW_COMMAND="evince --unlink-tempfile --preview --print-settings %s %f"
16 17
endif

Matthias Clasen's avatar
Matthias Clasen committed
18
SUBDIRS = theme-bits . tests
Emmanuele Bassi's avatar
Emmanuele Bassi committed
19
DIST_SUBDIRS = theme-bits tests
20

gheet's avatar
gheet committed
21 22 23
if HAVE_PAPI_CUPS
GTK_PRINT_BACKENDS=file,papi,cups
else
24
if HAVE_CUPS
25
GTK_PRINT_BACKENDS=file,cups
26
else
gheet's avatar
gheet committed
27 28 29
if HAVE_PAPI
GTK_PRINT_BACKENDS=file,papi
else
30
GTK_PRINT_BACKENDS=file,lpr
31
endif
gheet's avatar
gheet committed
32 33
endif
endif
34

35
INCLUDES =						\
36
	-DG_LOG_DOMAIN=\"Gtk\"				\
37
	-DGTK_LIBDIR=\"$(libdir)\"			\
38
	-DGTK_DATADIR=\"$(datadir)\"			\
39 40
	-DGTK_DATA_PREFIX=\"$(prefix)\"			\
	-DGTK_SYSCONFDIR=\"$(sysconfdir)\"		\
41 42 43
	-DGTK_VERSION=\"$(GTK_VERSION)\"		\
	-DGTK_BINARY_VERSION=\"$(GTK_BINARY_VERSION)\"	\
	-DGTK_HOST=\"$(host)\"				\
Tor Lillqvist's avatar
Tor Lillqvist committed
44
	-DGTK_COMPILATION				\
45
	-DGTK_PRINT_BACKENDS=\"$(GTK_PRINT_BACKENDS)\"	\
46
	-DGTK_PRINT_PREVIEW_COMMAND=\"$(GTK_PRINT_PREVIEW_COMMAND)\"	\
47
	-I$(top_builddir)				\
Owen Taylor's avatar
Owen Taylor committed
48
	-I$(top_builddir)/gtk				\
49 50
	-I$(top_srcdir) -I../gdk			\
	-I$(top_srcdir)/gdk				\
Manish Singh's avatar
Manish Singh committed
51
	-DGDK_DISABLE_DEPRECATED			\
52
	-DGTK_DISABLE_DEPRECATED			\
53
	-DGTK_FILE_SYSTEM_ENABLE_UNSUPPORTED		\
54
	-DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED		\
55
	$(GTK_DEBUG_FLAGS)				\
56
	$(GTK_DEP_CFLAGS)				\
57 58
	$(gtk_clipboard_dnd_c_sources_CFLAGS)		\
	$(INCLUDED_IMMODULE_DEFINE)
59

60
gtarget=$(gdktarget)
Elliot Lee's avatar
Elliot Lee committed
61

Tor Lillqvist's avatar
Tor Lillqvist committed
62 63 64 65 66 67
if PLATFORM_WIN32
no_undefined = -no-undefined
endif

if OS_WIN32
gtk_def = gtk.def
68
gtk_win32_symbols = -export-symbols $(srcdir)/gtk.def
Tor Lillqvist's avatar
Tor Lillqvist committed
69

Tor Lillqvist's avatar
Tor Lillqvist committed
70
gtk_win32_res = gtk-win32-res.o
71
gtk_win32_res_ldflag = -Wl,gtk-win32-res.o
Tor Lillqvist's avatar
Tor Lillqvist committed
72

Tor Lillqvist's avatar
Tor Lillqvist committed
73 74
gtk-win32-res.o : gtk-win32.rc
	$(WINDRES) gtk-win32.rc $@
Tor Lillqvist's avatar
Tor Lillqvist committed
75

76
install-def-file: gtk.def
77
	$(INSTALL) $(srcdir)/gtk.def $(DESTDIR)$(libdir)/gtk-win32-3.0.def
78
uninstall-def-file:
79
	-rm $(DESTDIR)$(libdir)/gtk-win32-3.0.def
Tor Lillqvist's avatar
Tor Lillqvist committed
80
else
81 82
install-def-file:
uninstall-def-file:
Tor Lillqvist's avatar
Tor Lillqvist committed
83 84 85
endif

if MS_LIB_AVAILABLE
Owen Taylor's avatar
Owen Taylor committed
86
noinst_DATA = gtk-win32-$(GTK_API_VERSION).lib
Tor Lillqvist's avatar
Tor Lillqvist committed
87

Owen Taylor's avatar
Owen Taylor committed
88
gtk-win32-$(GTK_API_VERSION).lib: libgtk-win32-$(GTK_API_VERSION).la gtk.def
89
	lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgtk-win32-$(GTK_API_VERSION)-@LT_CURRENT_MINUS_AGE@.dll -def:gtk.def -out:$@
Tor Lillqvist's avatar
Tor Lillqvist committed
90 91

install-ms-lib:
Owen Taylor's avatar
Owen Taylor committed
92
	$(INSTALL) gtk-win32-$(GTK_API_VERSION).lib $(DESTDIR)$(libdir)
Tor Lillqvist's avatar
Tor Lillqvist committed
93 94

uninstall-ms-lib:
Owen Taylor's avatar
Owen Taylor committed
95
	-rm $(DESTDIR)$(libdir)/gtk-win32-$(GTK_API_VERSION).lib
Tor Lillqvist's avatar
Tor Lillqvist committed
96 97 98 99 100
else
install-ms-lib:
uninstall-ms-lib:
endif

101 102
# This places the generated .def file in srcdir, since it is expected to be there.
# (The one from a tarball is)
103
gtk.def: gtk.symbols
Matthias Clasen's avatar
Matthias Clasen committed
104
	(echo -e EXPORTS; $(CPP) -P -DINCLUDE_VARIABLES -DG_OS_WIN32 -DALL_FILES - <$(srcdir)/gtk.symbols | $(SED) -e '/^$$/d' -e 's/^/	/' -e 's/G_GNUC_[^ ]*//g') > $(srcdir)/gtk.def
105

106
TESTS_ENVIRONMENT = srcdir="$(srcdir)" gtk_all_c_sources="$(gtk_all_c_sources)"
107
if OS_LINUX
108
TESTS = abicheck.sh
109 110
endif

111
libgtkincludedir = $(includedir)/gtk-3.0/gtk
112 113 114
libadd =								\
	$(top_builddir)/gdk/$(gdktargetlib)				\
	$(GTK_DEP_LIBS)
115
deps =
116

117 118 119
# libtool stuff: set version and export symbols for resolving
# since automake doesn't support conditionalized libsomething_la_LDFLAGS
# we use the general approach here
120
libtool_opts =							\
121
  $(GTK_LINK_FLAGS)						\
122 123 124 125
  -version-info $(LT_VERSION_INFO)				\
  -export-dynamic $(no_undefined) $(LIBTOOL_EXPORT_OPTIONS)	\
  -rpath $(libdir) $(libgtk_target_ldflags)

126

127 128 129 130 131 132 133 134 135 136 137 138 139
included-modules:
if HAVE_INCLUDED_IMMMODULES
	@cd $(top_builddir)/modules/input && $(MAKE) $(AM_MAKEFLAGS) included-modules

libadd += $(INCLUDED_IMMODULE_OBJ)
deps += $(INCLUDED_IMMODULE_OBJ)

$(INCLUDED_IMMODULE_OBJ): included-modules
	@true
endif

.PHONY: included-modules

140 141 142
#
# setup source file variables
#
143

144 145
# GTK+ header files for public installation (non-generated, or generated
# by configure)
146
gtk_public_h_sources =          \
Elliot Lee's avatar
Elliot Lee committed
147
	gtk.h			\
148
	gtkaboutdialog.h	\
Tim Janik's avatar
Tim Janik committed
149 150
	gtkaccelgroup.h		\
	gtkaccellabel.h		\
151
	gtkaccelmap.h		\
152
	gtkaccessible.h		\
153 154
	gtkaction.h		\
	gtkactiongroup.h	\
155
	gtkaccelgroupprivate.h	\
156
	gtkactivatable.h	\
Elliot Lee's avatar
Elliot Lee committed
157 158
	gtkadjustment.h		\
	gtkalignment.h		\
Matthias Clasen's avatar
Matthias Clasen committed
159
	gtkapplication.h    \
Elliot Lee's avatar
Elliot Lee committed
160
	gtkarrow.h		\
161
	gtkaspectframe.h	\
162
	gtkassistant.h		\
163
	gtkbbox.h		\
Elliot Lee's avatar
Elliot Lee committed
164
	gtkbin.h		\
Tim Janik's avatar
Tim Janik committed
165
	gtkbindings.h		\
Elliot Lee's avatar
Elliot Lee committed
166
	gtkbox.h		\
Johan Dahlin's avatar
Johan Dahlin committed
167 168
	gtkbuilder.h		\
	gtkbuildable.h		\
Elliot Lee's avatar
Elliot Lee committed
169
	gtkbutton.h		\
170
	gtkcalendar.h		\
171
	gtkcellarea.h		\
172
	gtkcellareabox.h	\
173 174
	gtkcellareaboxcontext.h	\
	gtkcellareacontext.h	\
175
	gtkcelleditable.h	\
176
	gtkcelllayout.h		\
177
	gtkcellrenderer.h	\
178
	gtkcellrendereraccel.h	\
179
	gtkcellrenderercombo.h	\
180
	gtkcellrendererpixbuf.h	\
181
	gtkcellrendererprogress.h \
182
	gtkcellrendererspin.h   \
183
	gtkcellrendererspinner.h\
184 185
	gtkcellrenderertext.h	\
	gtkcellrenderertoggle.h	\
186
	gtkcellview.h		\
Elliot Lee's avatar
Elliot Lee committed
187 188
	gtkcheckbutton.h	\
	gtkcheckmenuitem.h	\
Owen Taylor's avatar
Owen Taylor committed
189
	gtkclipboard.h		\
190
	gtkcolorbutton.h	\
Elliot Lee's avatar
Elliot Lee committed
191
	gtkcolorsel.h		\
192
	gtkcolorseldialog.h	\
193
	gtkcombobox.h		\
Christian Dywan's avatar
Christian Dywan committed
194
	gtkcomboboxtext.h	\
Elliot Lee's avatar
Elliot Lee committed
195
	gtkcontainer.h		\
196
	gtkdebug.h              \
Elliot Lee's avatar
Elliot Lee committed
197
	gtkdialog.h		\
198
	gtkdnd.h		\
Elliot Lee's avatar
Elliot Lee committed
199
	gtkdrawingarea.h	\
200
	gtkeditable.h           \
Elliot Lee's avatar
Elliot Lee committed
201
	gtkentry.h		\
202
	gtkentrybuffer.h	\
203
	gtkentrycompletion.h	\
Elliot Lee's avatar
Elliot Lee committed
204 205
	gtkenums.h		\
	gtkeventbox.h		\
206
	gtkexpander.h		\
207
	gtkfilechooser.h        \
208
	gtkfilechooserbutton.h  \
209 210 211
	gtkfilechooserdialog.h  \
	gtkfilechooserwidget.h  \
	gtkfilefilter.h		\
Elliot Lee's avatar
Elliot Lee committed
212
	gtkfixed.h		\
213
	gtkfontbutton.h		\
214
	gtkfontsel.h		\
Elliot Lee's avatar
Elliot Lee committed
215
	gtkframe.h		\
Matthias Clasen's avatar
Matthias Clasen committed
216
	gtkgrid.h		\
217
	gtkhandlebox.h		\
Elliot Lee's avatar
Elliot Lee committed
218 219 220 221 222 223 224
	gtkhbbox.h		\
	gtkhbox.h		\
	gtkhpaned.h		\
	gtkhruler.h		\
	gtkhscale.h		\
	gtkhscrollbar.h		\
	gtkhseparator.h		\
225
	gtkhsv.h		\
226
	gtkiconfactory.h	\
227
	gtkicontheme.h		\
228
	gtkiconview.h		\
Elliot Lee's avatar
Elliot Lee committed
229
	gtkimage.h		\
230
	gtkimagemenuitem.h	\
231
	gtkimcontext.h		\
232
	gtkimcontextsimple.h	\
Owen Taylor's avatar
Owen Taylor committed
233
	gtkimmodule.h		\
234
	gtkimmulticontext.h	\
Matthias Clasen's avatar
Matthias Clasen committed
235
	gtkinfobar.h		\
236
	gtkinvisible.h		\
Elliot Lee's avatar
Elliot Lee committed
237
	gtklabel.h		\
238
	gtklayout.h             \
239
	gtklinkbutton.h		\
240
	gtkliststore.h		\
Elliot Lee's avatar
Elliot Lee committed
241 242 243 244 245
	gtkmain.h		\
	gtkmenu.h		\
	gtkmenubar.h		\
	gtkmenuitem.h		\
	gtkmenushell.h		\
246
	gtkmenutoolbutton.h	\
247
	gtkmessagedialog.h	\
Elliot Lee's avatar
Elliot Lee committed
248
	gtkmisc.h		\
249
	gtkmodules.h		\
250
	gtkmountoperation.h     \
Elliot Lee's avatar
Elliot Lee committed
251
	gtknotebook.h		\
252
	gtkoffscreenwindow.h	\
253
	gtkorientable.h		\
254
	gtkpagesetup.h		\
Elliot Lee's avatar
Elliot Lee committed
255
	gtkpaned.h		\
256
	gtkpapersize.h		\
257
	gtkplug.h		\
258 259
	gtkprintcontext.h	\
	gtkprintoperation.h	\
260
	gtkprintoperationpreview.h	\
261
	gtkprintsettings.h	\
Elliot Lee's avatar
Elliot Lee committed
262
	gtkprogressbar.h	\
263
	gtkradioaction.h	\
Elliot Lee's avatar
Elliot Lee committed
264 265
	gtkradiobutton.h	\
	gtkradiomenuitem.h	\
266
	gtkradiotoolbutton.h	\
Elliot Lee's avatar
Elliot Lee committed
267 268
	gtkrange.h		\
	gtkrc.h			\
269
	gtkrecentaction.h	\
270 271 272 273 274 275
	gtkrecentchooser.h 	\
	gtkrecentchooserdialog.h \
	gtkrecentchoosermenu.h 	\
	gtkrecentchooserwidget.h \
	gtkrecentfilter.h 	\
	gtkrecentmanager.h 	\
Elliot Lee's avatar
Elliot Lee committed
276 277
	gtkruler.h		\
	gtkscale.h		\
278
	gtkscalebutton.h	\
279
	gtkscrollable.h         \
Elliot Lee's avatar
Elliot Lee committed
280 281 282 283
	gtkscrollbar.h		\
	gtkscrolledwindow.h	\
	gtkselection.h		\
	gtkseparator.h		\
284 285
	gtkseparatormenuitem.h	\
	gtkseparatortoolitem.h	\
286
	gtkshow.h		\
287
	gtksettings.h		\
288
	gtksizegroup.h		\
289
	gtksizerequest.h	\
290
	gtksocket.h		\
291
	gtkspinbutton.h		\
292
	gtkspinner.h		\
Shawn Amundson's avatar
Shawn Amundson committed
293
	gtkstatusbar.h		\
294
	gtkstatusicon.h		\
295
	gtkstock.h		\
296
	gtkstyle.h		\
Elliot Lee's avatar
Elliot Lee committed
297
	gtktable.h		\
298
	gtktearoffmenuitem.h    \
Tim Janik's avatar
Tim Janik committed
299
	gtktestutils.h		\
300
	gtktextbuffer.h		\
301
	gtktextbufferrichtext.h	\
302
	gtktextchild.h		\
303
	gtktextdisplay.h	\
304 305 306 307 308
	gtktextiter.h		\
	gtktextmark.h		\
	gtktexttag.h		\
	gtktexttagtable.h	\
	gtktextview.h		\
309
	gtktoggleaction.h	\
Elliot Lee's avatar
Elliot Lee committed
310
	gtktogglebutton.h	\
311
	gtktoggletoolbutton.h	\
312
	gtktoolbar.h		\
313 314
	gtktoolbutton.h		\
	gtktoolitem.h		\
Matthias Clasen's avatar
Matthias Clasen committed
315 316
	gtktoolitemgroup.h	\
	gtktoolpalette.h	\
317
	gtktoolshell.h		\
Kristian Rietveld's avatar
Kristian Rietveld committed
318
	gtktooltip.h		\
319
	gtktreednd.h		\
320
	gtktreemodel.h		\
321
	gtktreemodelfilter.h	\
322
	gtktreemodelsort.h	\
323
	gtktreeselection.h	\
Havoc Pennington's avatar
Havoc Pennington committed
324
	gtktreesortable.h	\
325 326 327
	gtktreestore.h		\
	gtktreeview.h		\
	gtktreeviewcolumn.h	\
Elliot Lee's avatar
Elliot Lee committed
328
	gtktypeutils.h		\
329
	gtkuimanager.h		\
Elliot Lee's avatar
Elliot Lee committed
330 331 332
	gtkvbbox.h		\
	gtkvbox.h		\
	gtkviewport.h		\
333
	gtkvolumebutton.h	\
Elliot Lee's avatar
Elliot Lee committed
334 335 336 337 338 339
	gtkvpaned.h		\
	gtkvruler.h		\
	gtkvscale.h		\
	gtkvscrollbar.h		\
	gtkvseparator.h		\
	gtkwidget.h		\
340
	gtkwindow.h
341

342
if OS_UNIX
343 344
gtk_unix_print_public_h_sources =    \
	gtkpagesetupunixdialog.h	\
345
	gtkprintunixdialog.h		\
346
	gtkprinter.h			\
347 348
	gtkprintjob.h			\
	gtkunixprint.h
349
endif
350

351
# Installed header files without compatibility guarantees
352
# that are not included in gtk/gtk.h
353
gtk_semi_private_h_sources =    \
354
	gtktextlayout.h
355

356
# GTK+ header files that don't get installed
Soeren Sandmann's avatar
Soeren Sandmann committed
357
gtk_private_h_sources =		\
358 359 360
	gtkquery.h		\
	gtksearchengine.h	\
	gtksearchenginesimple.h	\
Matthias Clasen's avatar
Matthias Clasen committed
361
	gtkdndcursors.h		\
362
	gtkentryprivate.h	\
363
	gtkbuilderprivate.h 	\
364
	gtkcustompaperunixdialog.h\
365
	gtkfilechooserdefault.h	\
366
	gtkfilechooserembed.h	\
367 368 369
	gtkfilechooserentry.h	\
	gtkfilechooserprivate.h	\
	gtkfilechooserutils.h	\
370
	gtkfilesystem.h		\
371
	gtkfilesystemmodel.h	\
372
	gtkiconcache.h		\
Claudio Saavedra's avatar
Claudio Saavedra committed
373
	gtkimcontextsimpleseqs.h   \
374 375
	gtkintl.h		\
	gtkkeyhash.h		\
376
	gtkmenuprivate.h	\
377
	gtkmnemonichash.h	\
Matthias Clasen's avatar
Matthias Clasen committed
378
	gtkmountoperationprivate.h \
379
	gtkpango.h		\
380
	gtkpathbar.h		\
381
	gtkplugprivate.h	\
382
	gtkprintoperation-private.h\
Matthias Clasen's avatar
Matthias Clasen committed
383
	gtkprintutils.h		\
384
	gtkprivate.h		\
Soeren Sandmann's avatar
Soeren Sandmann committed
385
	gtkrbtree.h		\
386 387 388
	gtkrecentchooserdefault.h \
	gtkrecentchooserprivate.h \
	gtkrecentchooserutils.h \
389
	gtksizegroup-private.h	\
390
	gtksocketprivate.h	\
391
	gtktextbtree.h		\
392
	gtktextbufferserialize.h\
Soeren Sandmann's avatar
Soeren Sandmann committed
393
	gtktextchildprivate.h	\
394 395
	gtktextiterprivate.h	\
	gtktextmarkprivate.h	\
396
	gtktextsegment.h	\
397
	gtktexttagprivate.h	\
398 399
	gtktexttypes.h		\
	gtktextutil.h		\
Owen Taylor's avatar
Owen Taylor committed
400
	gtkthemes.h		\
Matthias Clasen's avatar
Matthias Clasen committed
401
	gtktoolpaletteprivate.h	\
Owen Taylor's avatar
Owen Taylor committed
402
	gtktreedatalist.h	\
403
	gtktreeprivate.h	\
404
	gtkwindow-decorate.h	\
Emmanuele Bassi's avatar
Emmanuele Bassi committed
405
	gtkwidgetprivate.h	\
406
	$(gtk_clipboard_dnd_h_sources)
407

408
# GTK+ C sources to build the library from
409
gtk_base_c_sources =            \
410 411 412
	gtkquery.c		\
	gtksearchengine.c	\
	gtksearchenginesimple.c	\
Soeren Sandmann's avatar
Soeren Sandmann committed
413
	fnmatch.c		\
414
	gtkaboutdialog.c	\
415 416
	gtkaccelgroup.c		\
	gtkaccellabel.c		\
Soeren Sandmann's avatar
Soeren Sandmann committed
417 418
	gtkaccelmap.c		\
	gtkaccessible.c		\
419 420
	gtkaction.c		\
	gtkactiongroup.c	\
421
	gtkactivatable.c	\
422 423
	gtkadjustment.c		\
	gtkalignment.c		\
Matthias Clasen's avatar
Matthias Clasen committed
424
	gtkapplication.c \
425 426
	gtkarrow.c		\
	gtkaspectframe.c	\
427
	gtkassistant.c		\
Soeren Sandmann's avatar
Soeren Sandmann committed
428
	gtkbbox.c		\
429 430 431
	gtkbin.c		\
	gtkbindings.c		\
	gtkbox.c		\
Johan Dahlin's avatar
Johan Dahlin committed
432 433 434
	gtkbuildable.c		\
	gtkbuilder.c		\
	gtkbuilderparser.c	\
435 436
	gtkbutton.c		\
	gtkcalendar.c		\
437
	gtkcellarea.c		\
438
	gtkcellareabox.c	\
439 440
	gtkcellareaboxcontext.c	\
	gtkcellareacontext.c	\
Soeren Sandmann's avatar
Soeren Sandmann committed
441
	gtkcelleditable.c	\
442
	gtkcelllayout.c		\
443
	gtkcellrenderer.c	\
444
	gtkcellrendereraccel.c	\
445
	gtkcellrenderercombo.c	\
Soeren Sandmann's avatar
Soeren Sandmann committed
446
	gtkcellrendererpixbuf.c	\
447
	gtkcellrendererprogress.c \
448
	gtkcellrendererspin.c   \
449
	gtkcellrendererspinner.c\
450 451
	gtkcellrenderertext.c	\
	gtkcellrenderertoggle.c	\
452
	gtkcellview.c		\
453 454
	gtkcheckbutton.c	\
	gtkcheckmenuitem.c	\
455
	gtkcolorbutton.c	\
456
	gtkcolorsel.c		\
457
	gtkcolorseldialog.c	\
458
	gtkcombobox.c		\
Christian Dywan's avatar
Christian Dywan committed
459
	gtkcomboboxtext.c 	\
460 461 462 463 464
	gtkcontainer.c		\
	gtkdialog.c		\
	gtkdrawingarea.c	\
	gtkeditable.c           \
	gtkentry.c		\
465
	gtkentrybuffer.c	\
466
	gtkentrycompletion.c	\
467
	gtkeventbox.c		\
468
	gtkexpander.c		\
469
	gtkfilechooser.c	\
470
	gtkfilechooserbutton.c	\
471
	gtkfilechooserdefault.c	\
472
	gtkfilechooserdialog.c	\
473
	gtkfilechooserembed.c	\
474 475 476 477 478 479
	gtkfilechooserentry.c	\
	gtkfilechooserutils.c	\
	gtkfilechooserwidget.c	\
	gtkfilefilter.c		\
	gtkfilesystem.c		\
	gtkfilesystemmodel.c	\
480
	gtkfixed.c		\
481
	gtkfontbutton.c         \
482 483
	gtkfontsel.c            \
	gtkframe.c		\
Matthias Clasen's avatar
Matthias Clasen committed
484
	gtkgrid.c		\
485 486 487 488 489 490 491 492
	gtkhandlebox.c		\
	gtkhbbox.c		\
	gtkhbox.c		\
	gtkhpaned.c		\
	gtkhruler.c		\
	gtkhscale.c		\
	gtkhscrollbar.c		\
	gtkhseparator.c		\
493
	gtkhsv.c		\
494
	gtkiconcache.c		\
495
	gtkiconcachevalidator.c	\
496
	gtkiconfactory.c	\
497
	gtkicontheme.c		\
498
	gtkiconview.c		\
499
	gtkimage.c		\
500
	gtkimagemenuitem.c	\
501 502
	gtkimcontext.c		\
	gtkimcontextsimple.c	\
Owen Taylor's avatar
Owen Taylor committed
503
	gtkimmodule.c		\
504
	gtkimmulticontext.c	\
Matthias Clasen's avatar
Matthias Clasen committed
505
	gtkinfobar.c		\
506
	gtkinvisible.c		\
507
	gtkkeyhash.c		\
508 509
	gtklabel.c		\
	gtklayout.c		\
510
	gtklinkbutton.c		\
511
	gtkliststore.c		\
512
	gtkmain.c		\
Soeren Sandmann's avatar
Soeren Sandmann committed
513
	gtkmarshalers.c		\
514 515 516 517
	gtkmenu.c		\
	gtkmenubar.c		\
	gtkmenuitem.c		\
	gtkmenushell.c		\
518
	gtkmenutoolbutton.c	\
519
	gtkmessagedialog.c	\
520
	gtkmisc.c		\
521
	gtkmnemonichash.c	\
522
	gtkmodules.c		\
523
	gtkmountoperation.c     \
524
	gtknotebook.c		\
525
	gtkoffscreenwindow.c	\
526
	gtkorientable.c		\
527
	gtkpagesetup.c		\
528
	gtkpaned.c		\
529
	gtkpango.c		\
530
	gtkpapersize.c		\
531
	gtkpathbar.c		\
532
	gtkplug.c		\
533 534
	gtkprintcontext.c	\
	gtkprintoperation.c	\
535
	gtkprintoperationpreview.c	\
536
	gtkprintsettings.c	\
Matthias Clasen's avatar
Matthias Clasen committed
537
	gtkprintutils.c		\
538
	gtkprogressbar.c	\
539
	gtkradioaction.c	\
540 541
	gtkradiobutton.c	\
	gtkradiomenuitem.c	\
Soeren Sandmann's avatar
Soeren Sandmann committed
542
	gtkradiotoolbutton.c	\
543
	gtkrange.c		\
544
	gtkrbtree.c 		\
545
	gtkrc.c			\
546
	gtkrecentaction.c	\
547 548 549 550 551 552 553 554
	gtkrecentchooserdefault.c \
	gtkrecentchooserdialog.c \
	gtkrecentchoosermenu.c 	\
	gtkrecentchooserwidget.c \
	gtkrecentchooserutils.c \
	gtkrecentchooser.c 	\
	gtkrecentfilter.c 	\
	gtkrecentmanager.c 	\
555 556
	gtkruler.c		\
	gtkscale.c		\
557
	gtkscalebutton.c	\
558
	gtkscrollable.c         \
559 560 561 562
	gtkscrollbar.c		\
	gtkscrolledwindow.c	\
	gtkselection.c		\
	gtkseparator.c		\
Soeren Sandmann's avatar
Soeren Sandmann committed
563 564
	gtkseparatormenuitem.c	\
	gtkseparatortoolitem.c	\
565
	gtksettings.c		\
566
	gtksizegroup.c		\
567
	gtksizerequest.c	\
568
	gtkshow.c		\
569
	gtksocket.c		\
570
	gtkspinbutton.c		\
571
	gtkspinner.c		\
Soeren Sandmann's avatar
Soeren Sandmann committed
572
	gtkstatusbar.c		\
573
	gtkstatusicon.c		\
574
	gtkstock.c		\
575 576 577
	gtkstyle.c		\
	gtktable.c		\
	gtktearoffmenuitem.c    \
Tim Janik's avatar
Tim Janik committed
578
	gtktestutils.c		\
579 580
	gtktextbtree.c		\
	gtktextbuffer.c		\
581 582
	gtktextbufferrichtext.c	\
	gtktextbufferserialize.c\
583 584 585 586 587 588 589 590 591
	gtktextchild.c		\
	gtktextdisplay.c	\
	gtktextiter.c		\
	gtktextlayout.c		\
	gtktextmark.c		\
	gtktextsegment.c	\
	gtktexttag.c		\
	gtktexttagtable.c	\
	gtktexttypes.c		\
592
	gtktextutil.c		\
593
	gtktextview.c		\
594
	gtkthemes.c		\
595
	gtktoggleaction.c	\
596
	gtktogglebutton.c	\
Soeren Sandmann's avatar
Soeren Sandmann committed
597 598 599 600
	gtktoggletoolbutton.c	\
	gtktoolbar.c		\
	gtktoolbutton.c		\
	gtktoolitem.c		\
Johannes Schmid's avatar
Johannes Schmid committed
601 602
	gtktoolitemgroup.c		\
	gtktoolpalette.c	\
603
	gtktoolshell.c		\
Kristian Rietveld's avatar
Kristian Rietveld committed
604
	gtktooltip.c		\
605
	gtktreedatalist.c	\
606
	gtktreednd.c		\
607
	gtktreemodel.c		\
608
	gtktreemodelfilter.c	\
609
	gtktreemodelsort.c	\
610
	gtktreeselection.c	\
611
	gtktreesortable.c	\
612 613 614
	gtktreestore.c		\
	gtktreeview.c		\
	gtktreeviewcolumn.c	\
615
	gtktypebuiltins.c	\
616
	gtktypeutils.c		\
617
	gtkuimanager.c		\
618 619
	gtkvbbox.c		\
	gtkvbox.c		\
620
	gtkvolumebutton.c	\
621 622 623 624 625 626 627
	gtkviewport.c		\
	gtkvpaned.c		\
	gtkvruler.c		\
	gtkvscale.c		\
	gtkvscrollbar.c		\
	gtkvseparator.c		\
	gtkwidget.c		\
628
	gtkwindow-decorate.c    \
Soeren Sandmann's avatar
Soeren Sandmann committed
629
	gtkwindow.c		\
Anders Carlsson's avatar
Anders Carlsson committed
630
	$(gtk_clipboard_dnd_c_sources)
631

632 633
gtk_c_sources = $(gtk_base_c_sources)
gtk_all_c_sources = $(gtk_base_c_sources)
634

635
gtk_os_unix_c_sources = \
636
	gtkcustompaperunixdialog.c	\
637 638 639 640 641 642 643 644
	gtkpagesetupunixdialog.c	\
	gtkprinter.c			\
	gtkprinteroption.c		\
	gtkprinteroptionset.c		\
	gtkprinteroptionwidget.c	\
	gtkprintjob.c			\
	gtkprintoperation-unix.c	\
	gtkprintunixdialog.c		\
645 646 647
        gtkprintbackend.c		\
	gtksearchenginebeagle.c		\
	gtksearchenginetracker.c
648 649 650
gtk_all_c_sources += $(gtk_os_unix_c_sources)
if OS_UNIX
gtk_private_h_sources += \
651
	gtkiconcachevalidator.h		\
652 653 654 655
	gtkprintbackend.h		\
	gtkprinter-private.h		\
	gtkprinteroption.h		\
	gtkprinteroptionset.h		\
656 657 658
	gtkprinteroptionwidget.h	\
	gtksearchenginebeagle.h		\
	gtksearchenginetracker.h
659
gtk_c_sources += $(gtk_os_unix_c_sources)
660 661
endif

662
gtk_os_win32_c_sources = \
663 664
	gtkprint-win32.c		\
	gtkprintoperation-win32.c
665 666
gtk_all_c_sources += $(gtk_os_win32_c_sources)
if OS_WIN32
667
gtk_private_h_sources += gtkprint-win32.h
668
gtk_c_sources += $(gtk_os_win32_c_sources)
669 670
endif

671
gtk_use_x11_c_sources = \
672 673 674
	gtkplug-x11.c   \
	gtksocket-x11.c \
	gtkxembed.c     \
675 676
	gtktrayicon-x11.c \
	gtkmountoperation-x11.c
677 678 679 680
gtk_use_win32_c_sources = \
	gtkplug-win32.c   \
	gtksocket-win32.c \
	gtkwin32embed.c   \
681 682
	gtkwin32embedwidget.c \
	gtkmountoperation-stub.c
683 684 685
gtk_use_quartz_c_sources =	\
	gtksearchenginequartz.c	\
	gtkplug-stub.c		\
686 687
	gtksocket-stub.c	\
	gtkmountoperation-stub.c
Michael David Emmel's avatar
Michael David Emmel committed
688
gtk_use_stub_c_sources = \
689
	gtkplug-stub.c   \
690 691
	gtksocket-stub.c \
	gtkmountoperation-stub.c
692
gtk_all_c_sources += $(gtk_use_x11_c_sources) $(gtk_use_win32_c_sources) $(gtk_use_quartz_c_sources) $(gtk_use_stub_c_sources)
693 694 695
if USE_X11
gtk_private_h_sources += gtkxembed.h gtktrayicon.h xembed.h
gtk_c_sources += $(gtk_use_x11_c_sources)
696 697
else
if USE_WIN32
698
gtk_private_h_sources += gtkwin32embed.h gtkwin32embedwidget.h
699
gtk_c_sources += $(gtk_use_win32_c_sources)
700
else
701 702 703 704 705
if USE_QUARTZ
gtk_private_h_sources += gtksearchenginequartz.h
gtk_c_sources += $(gtk_use_quartz_c_sources)
gtk_use_quartz_c_sources_CFLAGS = "-xobjective-c"
else
706
gtk_c_sources += $(gtk_use_stub_c_sources)
707 708
endif
endif
709
endif
710

Anders Carlsson's avatar
Anders Carlsson committed
711
if USE_QUARTZ
712 713
gtk_clipboard_dnd_c_sources = gtkclipboard-quartz.c gtkdnd-quartz.c gtkquartz.c
gtk_clipboard_dnd_h_sources = gtkquartz.h
Anders Carlsson's avatar
Anders Carlsson committed
714 715 716
gtk_clipboard_dnd_c_sources_CFLAGS = "-xobjective-c"
else
gtk_clipboard_dnd_c_sources = gtkclipboard.c gtkdnd.c
717
gtk_clipboard_dnd_c_sources_CFLAGS =
Anders Carlsson's avatar
Anders Carlsson committed
718
endif
719
EXTRA_DIST += gtkquartz.h
Anders Carlsson's avatar
Anders Carlsson committed
720

721 722 723 724 725
# 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
726 727

# built sources that get installed with the header files
728 729 730
gtk_built_public_sources =			\
	gtktypebuiltins.h

731
# built headers that don't get installed
732
gtk_built_private_headers =			\
733
	gtkmarshalers.h				\
Claudio Saavedra's avatar
Claudio Saavedra committed
734
	gtkbuiltincache.h
735 736

gtk_built_sources =				\
737
	gtktypebuiltins.c			\
Tim Janik's avatar
Tim Janik committed
738
	gtktypefuncs.c				\
739 740
	gtkmarshalers.c				\
	${gtk_built_private_headers}		\
741 742 743 744
	${gtk_built_public_sources}

stamp_files =					\
	stamp-gtkmarshalers.h			\
Matthias Clasen's avatar
2.9.0  
Matthias Clasen committed
745 746
	stamp-gtktypebuiltins.h			\
	stamp-icons
747

748 749 750
# 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
751
gtk_extra_sources =				\
752
	paper_names.c				\
753
	paper_names_offsets.c			\
754
	gen-paper-names.c			\
755
	gtkstatusicon-quartz.c                  \
756
	gtk.symbols				\
757
	gtkversion.h.in				\
758
	gtkmarshalers.list
759

760
#
Kristian Rietveld's avatar
Kristian Rietveld committed
761
# setup GTK+ sources and their dependencies
762
#
763
MAINTAINERCLEANFILES = $(gtk_built_sources) $(stamp_files) $(GENERATED_ICONS) stock-icons/icon-theme.cache
Matt Wilson's avatar
Matt Wilson committed
764
EXTRA_HEADERS =
765
EXTRA_DIST += $(gtk_private_h_sources) $(gtk_extra_sources)
766
EXTRA_DIST += $(gtk_built_sources)
767
EXTRA_DIST += $(STOCK_ICONS)
768 769 770 771

#
# rules to generate built sources
#
Kristian Rietveld's avatar
Kristian Rietveld committed
772
# setup autogeneration dependencies
Tim Janik's avatar
Tim Janik committed
773
gen_sources = xgen-gdef xgen-gtbh xgen-gtic xgen-gmh xgen-gmc xgen-gmlh xgen-gmlc xgen-gtfsrc.c xgen-gtf
Matt Wilson's avatar
Matt Wilson committed
774
CLEANFILES = $(gen_sources)
775

776
BUILT_SOURCES = $(gtk_built_sources)
777

778
# all autogenerated files need to be generated in the srcdir,
Owen Taylor's avatar
Owen Taylor committed
779 780 781 782
# 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.
783
gtkmarshalers.h: stamp-gtkmarshalers.h
784 785
	@true
stamp-gtkmarshalers.h: @REBUILD@ gtkmarshalers.list
786 787 788
	$(GLIB_GENMARSHAL) --prefix=_gtk_marshal $(srcdir)/gtkmarshalers.list --header >> xgen-gmlh \
	&& (cmp -s xgen-gmlh gtkmarshalers.h || cp xgen-gmlh gtkmarshalers.h) \
	&& rm -f xgen-gmlh \
789
	&& echo timestamp > $(@F)	
790
gtkmarshalers.c: @REBUILD@ gtkmarshalers.list
791 792
	(echo "#include \"gtkmarshalers.h\""; \
	 $(GLIB_GENMARSHAL) --prefix=_gtk_marshal $(srcdir)/gtkmarshalers.list --body) >> xgen-gmlc \
793
	&& cp xgen-gmlc gtkmarshalers.c \
794 795
	&& rm -f xgen-gmlc

796
gtktypebuiltins.h: stamp-gtktypebuiltins.h
797
	@true
798 799
stamp-gtktypebuiltins.h: @REBUILD@ $(gtk_public_h_sources) gtktypebuiltins.h.template
	( cd $(srcdir) && $(GLIB_MKENUMS) --template gtktypebuiltins.h.template \
800
		$(gtk_public_h_sources) ) >> xgen-gtbh \
801
	&& (cmp -s xgen-gtbh gtktypebuiltins.h || cp xgen-gtbh gtktypebuiltins.h ) \
802
	&& rm -f xgen-gtbh \
Owen Taylor's avatar
Owen Taylor committed
803
	&& echo timestamp > $(@F)
804 805
gtktypebuiltins.c: @REBUILD@ $(gtk_public_h_sources) gtktypebuiltins.c.template
	( cd $(srcdir) && $(GLIB_MKENUMS) --template gtktypebuiltins.c.template \
806
		$(gtk_public_h_sources) ) > xgen-gtbc \
807
	&& cp xgen-gtbc gtktypebuiltins.c  \
808
	&& rm -f xgen-gtbc
809

Tim Janik's avatar
Tim Janik committed
810 811
gtktypefuncs.c: @REBUILD@ $(top_srcdir)/gtk/*.h $(top_srcdir)/gdk/*.h Makefile
	echo '#include <gtk/gtk.h>' > xgen-gtfsrc.c && \
812
	  ${CPP} $(DEFS) $(INCLUDES) -DGTK_ENABLE_BROKEN $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) xgen-gtfsrc.c | \
Matthias Clasen's avatar
Matthias Clasen committed
813
	  $(GREP) -o '\bg[td]k_[a-zA-Z0-9_]*_get_type\b' | \
814
	  sort | uniq | \
Matthias Clasen's avatar
Matthias Clasen committed
815
	  $(SED) '{ s/^/*tp++ = /; s/$$/();/; }' > xgen-gtf \
Tim Janik's avatar
Tim Janik committed
816 817 818
	&& cp xgen-gtf $@ && rm -f xgen-gtf
gtktestutils.c: gtktypefuncs.c

819
# target platform:
820 821
lib_LTLIBRARIES = $(gtktargetlib)

822
gtkincludedir = $(includedir)/gtk-3.0/gtk
823
gtkinclude_HEADERS = $(gtk_public_h_sources) $(gtk_semi_private_h_sources) $(gtk_built_public_sources) gtkversion.h
824

825
gtkunixprintincludedir = $(includedir)/gtk-3.0/unix-print/gtk
826 827
gtkunixprintinclude_HEADERS = $(gtk_unix_print_public_h_sources)

828 829 830
libgtk_x11_3_0_la_SOURCES = $(gtk_c_sources)
libgtk_win32_3_0_la_SOURCES = $(gtk_c_sources)
libgtk_quartz_3_0_la_SOURCES = $(gtk_c_sources)
831

832 833 834
libgtk_x11_3_0_la_LDFLAGS = $(libtool_opts)
libgtk_win32_3_0_la_LDFLAGS = $(libtool_opts) -Wl,-luuid
libgtk_quartz_3_0_la_LDFLAGS = $(libtool_opts)
835

836 837 838
libgtk_x11_3_0_la_LIBADD = $(libadd)
libgtk_win32_3_0_la_LIBADD = $(libadd) -lole32 -lgdi32 -lcomdlg32 -lwinspool -lcomctl32
libgtk_quartz_3_0_la_LIBADD = $(libadd)
839

840 841 842
libgtk_x11_3_0_la_DEPENDENCIES = $(deps)
libgtk_win32_3_0_la_DEPENDENCIES = $