Makefile.am 38.1 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
104
	(echo -e EXPORTS; $(CPP) -P -DG_OS_WIN32 - <$(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)"
Matthias Clasen's avatar
Matthias Clasen committed
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)

Elliot Lee's avatar
Elliot Lee committed
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			\
Matthias Clasen's avatar
Matthias Clasen committed
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		\
159
160
161
162
163
	gtkappchooser.h		\
	gtkappchooserdialog.h	\
	gtkappchooserbutton.h   \
	gtkappchooserwidget.h	\
	gtkapplication.h    	\
Elliot Lee's avatar
Elliot Lee committed
164
	gtkarrow.h		\
165
	gtkaspectframe.h	\
166
	gtkassistant.h		\
167
	gtkbbox.h		\
Elliot Lee's avatar
Elliot Lee committed
168
	gtkbin.h		\
Tim Janik's avatar
Tim Janik committed
169
	gtkbindings.h		\
Elliot Lee's avatar
Elliot Lee committed
170
	gtkbox.h		\
Johan Dahlin's avatar
Johan Dahlin committed
171
172
	gtkbuilder.h		\
	gtkbuildable.h		\
Elliot Lee's avatar
Elliot Lee committed
173
	gtkbutton.h		\
174
	gtkcalendar.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		\
Owen Taylor's avatar
Owen Taylor committed
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		\
Carlos Garnacho's avatar
Carlos Garnacho committed
196
	gtkcssprovider.h	\
197
	gtkdebug.h              \
Elliot Lee's avatar
Elliot Lee committed
198
	gtkdialog.h		\
199
	gtkdnd.h		\
Elliot Lee's avatar
Elliot Lee committed
200
	gtkdrawingarea.h	\
201
	gtkeditable.h           \
Elliot Lee's avatar
Elliot Lee committed
202
	gtkentry.h		\
203
	gtkentrybuffer.h	\
204
	gtkentrycompletion.h	\
Elliot Lee's avatar
Elliot Lee committed
205
206
	gtkenums.h		\
	gtkeventbox.h		\
207
	gtkexpander.h		\
208
	gtkfilechooser.h        \
209
	gtkfilechooserbutton.h  \
210
211
212
	gtkfilechooserdialog.h  \
	gtkfilechooserwidget.h  \
	gtkfilefilter.h		\
Elliot Lee's avatar
Elliot Lee committed
213
	gtkfixed.h		\
214
	gtkfontbutton.h		\
215
	gtkfontsel.h		\
Elliot Lee's avatar
Elliot Lee committed
216
	gtkframe.h		\
Matthias Clasen's avatar
Matthias Clasen committed
217
	gtkgrid.h		\
218
	gtkhandlebox.h		\
Elliot Lee's avatar
Elliot Lee committed
219
220
221
222
223
224
	gtkhbbox.h		\
	gtkhbox.h		\
	gtkhpaned.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
	gtkscale.h		\
277
	gtkscalebutton.h	\
Tadej Borovšak's avatar
Tadej Borovšak committed
278
	gtkscrollable.h         \
Elliot Lee's avatar
Elliot Lee committed
279
280
281
282
	gtkscrollbar.h		\
	gtkscrolledwindow.h	\
	gtkselection.h		\
	gtkseparator.h		\
283
284
	gtkseparatormenuitem.h	\
	gtkseparatortoolitem.h	\
285
	gtkshow.h		\
286
	gtksettings.h		\
287
	gtksizegroup.h		\
288
	gtksizerequest.h	\
289
	gtksocket.h		\
290
	gtkspinbutton.h		\
291
	gtkspinner.h		\
Shawn Amundson's avatar
Shawn Amundson committed
292
	gtkstatusbar.h		\
293
	gtkstatusicon.h		\
294
	gtkstock.h		\
Carlos Garnacho's avatar
Carlos Garnacho committed
295
	gtkstylecontext.h	\
296
	gtkstyleprovider.h	\
297
	gtkstyleset.h		\
298
	gtkstyle.h		\
299
	gtkswitch.h		\
Carlos Garnacho's avatar
Carlos Garnacho committed
300
	gtksymboliccolor.h	\
Elliot Lee's avatar
Elliot Lee committed
301
	gtktable.h		\
302
	gtktearoffmenuitem.h    \
Tim Janik's avatar
Tim Janik committed
303
	gtktestutils.h		\
304
	gtktextbuffer.h		\
305
	gtktextbufferrichtext.h	\
306
	gtktextchild.h		\
307
	gtktextdisplay.h	\
308
309
310
311
312
	gtktextiter.h		\
	gtktextmark.h		\
	gtktexttag.h		\
	gtktexttagtable.h	\
	gtktextview.h		\
Carlos Garnacho's avatar
Carlos Garnacho committed
313
	gtkthemingengine.h	\
314
	gtktoggleaction.h	\
Elliot Lee's avatar
Elliot Lee committed
315
	gtktogglebutton.h	\
316
	gtktoggletoolbutton.h	\
317
	gtktoolbar.h		\
318
319
	gtktoolbutton.h		\
	gtktoolitem.h		\
Matthias Clasen's avatar
Matthias Clasen committed
320
321
	gtktoolitemgroup.h	\
	gtktoolpalette.h	\
322
	gtktoolshell.h		\
Kristian Rietveld's avatar
Kristian Rietveld committed
323
	gtktooltip.h		\
Havoc Pennington's avatar
Havoc Pennington committed
324
	gtktreednd.h		\
325
	gtktreemodel.h		\
326
	gtktreemodelfilter.h	\
327
	gtktreemodelsort.h	\
328
	gtktreeselection.h	\
Havoc Pennington's avatar
Havoc Pennington committed
329
	gtktreesortable.h	\
330
331
332
	gtktreestore.h		\
	gtktreeview.h		\
	gtktreeviewcolumn.h	\
Elliot Lee's avatar
Elliot Lee committed
333
	gtktypeutils.h		\
334
	gtkuimanager.h		\
Elliot Lee's avatar
Elliot Lee committed
335
336
337
	gtkvbbox.h		\
	gtkvbox.h		\
	gtkviewport.h		\
338
	gtkvolumebutton.h	\
Elliot Lee's avatar
Elliot Lee committed
339
340
341
342
343
	gtkvpaned.h		\
	gtkvscale.h		\
	gtkvscrollbar.h		\
	gtkvseparator.h		\
	gtkwidget.h		\
Carlos Garnacho's avatar
Carlos Garnacho committed
344
	gtkwidgetpath.h		\
345
	gtkwindow.h
346

347
if OS_UNIX
348
349
gtk_unix_print_public_h_sources =    \
	gtkpagesetupunixdialog.h	\
350
	gtkprintunixdialog.h		\
351
	gtkprinter.h			\
352
353
	gtkprintjob.h			\
	gtkunixprint.h
354
endif
355

356
# Installed header files without compatibility guarantees
357
# that are not included in gtk/gtk.h
358
gtk_semi_private_h_sources =    \
359
	gtktextlayout.h
360

361
if ENABLE_PACKAGEKIT
362
363
gtk_appchooser_impl_h_sources = \
	gtkappchooseronlinepk.h \
364
365
366
367
	$(NULL)
endif

if ENABLE_PACKAGEKIT
368
369
gtk_appchooser_impl_c_sources = \
	gtkappchooseronlinepk.c \
370
371
372
	$(NULL)
endif

373
# GTK+ header files that don't get installed
Soeren Sandmann's avatar
Soeren Sandmann committed
374
gtk_private_h_sources =		\
Carlos Garnacho's avatar
Carlos Garnacho committed
375
	gtk9slice.h 		\
376
	gtkbuttonprivate.h	\
377
378
379
	gtkquery.h		\
	gtksearchengine.h	\
	gtksearchenginesimple.h	\
Matthias Clasen's avatar
Matthias Clasen committed
380
	gtkdndcursors.h		\
381
	gtkentryprivate.h	\
382
	gtkanimationdescription.h \
383
	gtkbuilderprivate.h 	\
384
	gtkcustompaperunixdialog.h\
385
	gtkfilechooserdefault.h	\
386
	gtkfilechooserembed.h	\
387
388
389
	gtkfilechooserentry.h	\
	gtkfilechooserprivate.h	\
	gtkfilechooserutils.h	\
390
	gtkfilesystem.h		\
391
	gtkfilesystemmodel.h	\
392
	gtkiconcache.h		\
Claudio Saavedra's avatar
Claudio Saavedra committed
393
	gtkimcontextsimpleseqs.h   \
394
395
	gtkintl.h		\
	gtkkeyhash.h		\
396
	gtkmenuprivate.h	\
397
	gtkmnemonichash.h	\
Matthias Clasen's avatar
Matthias Clasen committed
398
	gtkmountoperationprivate.h \
399
400
	gtkappchooserprivate.h	\
	gtkappchoosermodule.h 	\
401
	gtkappchooseronline.h	\
402
	gtkpango.h		\
403
	gtkpathbar.h		\
404
	gtkplugprivate.h	\
405
	gtkprintoperation-private.h\
Matthias Clasen's avatar
Matthias Clasen committed
406
	gtkprintutils.h		\
407
	gtkprivate.h		\
Soeren Sandmann's avatar
Soeren Sandmann committed
408
	gtkrbtree.h		\
409
410
411
	gtkrecentchooserdefault.h \
	gtkrecentchooserprivate.h \
	gtkrecentchooserutils.h \
412
	gtksizegroup-private.h	\
413
	gtksocketprivate.h	\
414
	gtktextbtree.h		\
415
	gtktextbufferserialize.h\
Soeren Sandmann's avatar
Soeren Sandmann committed
416
	gtktextchildprivate.h	\
417
418
	gtktextiterprivate.h	\
	gtktextmarkprivate.h	\
419
	gtktextsegment.h	\
420
	gtktexttagprivate.h	\
421
422
	gtktexttypes.h		\
	gtktextutil.h		\
423
	gtktimeline.h		\
Owen Taylor's avatar
Owen Taylor committed
424
	gtkthemes.h		\
Matthias Clasen's avatar
Matthias Clasen committed
425
	gtktoolpaletteprivate.h	\
Owen Taylor's avatar
Owen Taylor committed
426
	gtktreedatalist.h	\
427
	gtktreeprivate.h	\
428
	gtkwindow-decorate.h	\
Emmanuele Bassi's avatar
Emmanuele Bassi committed
429
	gtkwidgetprivate.h	\
430
	$(gtk_clipboard_dnd_h_sources) \
431
	$(gtk_appchooser_impl_h_sources)
432

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

668
669
gtk_c_sources = $(gtk_base_c_sources)
gtk_all_c_sources = $(gtk_base_c_sources)
670

671
gtk_os_unix_c_sources = \
672
	gtkcustompaperunixdialog.c	\
673
674
675
676
677
678
679
680
	gtkpagesetupunixdialog.c	\
	gtkprinter.c			\
	gtkprinteroption.c		\
	gtkprinteroptionset.c		\
	gtkprinteroptionwidget.c	\
	gtkprintjob.c			\
	gtkprintoperation-unix.c	\
	gtkprintunixdialog.c		\
681
682
683
        gtkprintbackend.c		\
	gtksearchenginebeagle.c		\
	gtksearchenginetracker.c
684
685
686
gtk_all_c_sources += $(gtk_os_unix_c_sources)
if OS_UNIX
gtk_private_h_sources += \
Matthias Clasen's avatar
Matthias Clasen committed
687
	gtkiconcachevalidator.h		\
688
689
690
691
	gtkprintbackend.h		\
	gtkprinter-private.h		\
	gtkprinteroption.h		\
	gtkprinteroptionset.h		\
692
693
694
	gtkprinteroptionwidget.h	\
	gtksearchenginebeagle.h		\
	gtksearchenginetracker.h
695
gtk_c_sources += $(gtk_os_unix_c_sources)
696
697
endif

698
gtk_os_win32_c_sources = \
699
700
	gtkprint-win32.c		\
	gtkprintoperation-win32.c
701
702
gtk_all_c_sources += $(gtk_os_win32_c_sources)
if OS_WIN32
703
gtk_private_h_sources += gtkprint-win32.h
704
gtk_c_sources += $(gtk_os_win32_c_sources)
705
706
endif

707
gtk_use_x11_c_sources = \
708
709
710
	gtkplug-x11.c   \
	gtksocket-x11.c \
	gtkxembed.c     \
711
712
	gtktrayicon-x11.c \
	gtkmountoperation-x11.c
713
714
715
716
gtk_use_win32_c_sources = \
	gtkplug-win32.c   \
	gtksocket-win32.c \
	gtkwin32embed.c   \
717
718
	gtkwin32embedwidget.c \
	gtkmountoperation-stub.c
719
720
721
gtk_use_quartz_c_sources =	\
	gtksearchenginequartz.c	\
	gtkplug-stub.c		\
722
723
	gtksocket-stub.c	\
	gtkmountoperation-stub.c
Michael David Emmel's avatar
Michael David Emmel committed
724
gtk_use_stub_c_sources = \
725
	gtkplug-stub.c   \
726
727
	gtksocket-stub.c \
	gtkmountoperation-stub.c
728
gtk_all_c_sources += $(gtk_use_x11_c_sources) $(gtk_use_win32_c_sources) $(gtk_use_quartz_c_sources) $(gtk_use_stub_c_sources)
729
730
731
if USE_X11
gtk_private_h_sources += gtkxembed.h gtktrayicon.h xembed.h
gtk_c_sources += $(gtk_use_x11_c_sources)
732
733
else
if USE_WIN32
734
gtk_private_h_sources += gtkwin32embed.h gtkwin32embedwidget.h
735
gtk_c_sources += $(gtk_use_win32_c_sources)
736
else
737
738
739
740
741
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
742
gtk_c_sources += $(gtk_use_stub_c_sources)
743
744
endif
endif
745
endif
746

Anders Carlsson's avatar
Anders Carlsson committed
747
if USE_QUARTZ
748
749
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
750
751
752
gtk_clipboard_dnd_c_sources_CFLAGS = "-xobjective-c"
else
gtk_clipboard_dnd_c_sources = gtkclipboard.c gtkdnd.c
753
gtk_clipboard_dnd_c_sources_CFLAGS =
Anders Carlsson's avatar
Anders Carlsson committed
754
endif
755
EXTRA_DIST += gtkquartz.h
Anders Carlsson's avatar
Anders Carlsson committed
756

757
758
759
760
761
# 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
762
763

# built sources that get installed with the header files
764
765
766
gtk_built_public_sources =			\
	gtktypebuiltins.h

767
# built headers that don't get installed
768
gtk_built_private_headers =			\
769
	gtkmarshalers.h				\
Claudio Saavedra's avatar
Claudio Saavedra committed
770
	gtkbuiltincache.h
771
772

gtk_built_sources =				\
773
	gtktypebuiltins.c			\
Tim Janik's avatar
Tim Janik committed
774
	gtktypefuncs.c				\
775
776
	gtkmarshalers.c				\
	${gtk_built_private_headers}		\
777
778
779
780
	${gtk_built_public_sources}

stamp_files =					\
	stamp-gtkmarshalers.h			\
Matthias Clasen's avatar
2.9.0    
Matthias Clasen committed
781
782
	stamp-gtktypebuiltins.h			\
	stamp-icons
783

784
785
786
# 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
787
gtk_extra_sources =				\
788
	paper_names.c				\
789
	paper_names_offsets.c			\
790
	gen-paper-names.c			\
791
	gtkstatusicon-quartz.c                  \
792
	gtk.symbols				\
793
	gtkversion.h.in				\
794
	gtkmarshalers.list
795

796
#
Kristian Rietveld's avatar
Kristian Rietveld committed
797
# setup GTK+ sources and their dependencies
Raja R Harinath's avatar