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		\
Matthias Clasen's avatar
Matthias Clasen committed
170
	gtkborder.h		\
Elliot Lee's avatar
Elliot Lee committed
171
	gtkbox.h		\
Johan Dahlin's avatar
Johan Dahlin committed
172
173
	gtkbuilder.h		\
	gtkbuildable.h		\
Elliot Lee's avatar
Elliot Lee committed
174
	gtkbutton.h		\
175
	gtkcalendar.h		\
176
	gtkcelleditable.h	\
177
	gtkcelllayout.h		\
178
	gtkcellrenderer.h	\
179
	gtkcellrendereraccel.h	\
180
	gtkcellrenderercombo.h	\
181
	gtkcellrendererpixbuf.h	\
182
	gtkcellrendererprogress.h \
Matthias Clasen's avatar
Matthias Clasen committed
183
	gtkcellrendererspin.h	\
184
	gtkcellrendererspinner.h\
185
186
	gtkcellrenderertext.h	\
	gtkcellrenderertoggle.h	\
187
	gtkcellview.h		\
Elliot Lee's avatar
Elliot Lee committed
188
189
	gtkcheckbutton.h	\
	gtkcheckmenuitem.h	\
Owen Taylor's avatar
Owen Taylor committed
190
	gtkclipboard.h		\
191
	gtkcolorbutton.h	\
Elliot Lee's avatar
Elliot Lee committed
192
	gtkcolorsel.h		\
Owen Taylor's avatar
Owen Taylor committed
193
	gtkcolorseldialog.h	\
194
	gtkcombobox.h		\
Christian Dywan's avatar
Christian Dywan committed
195
	gtkcomboboxtext.h	\
Elliot Lee's avatar
Elliot Lee committed
196
	gtkcontainer.h		\
Carlos Garnacho's avatar
Carlos Garnacho committed
197
	gtkcssprovider.h	\
Matthias Clasen's avatar
Matthias Clasen committed
198
	gtkdebug.h		\
Elliot Lee's avatar
Elliot Lee committed
199
	gtkdialog.h		\
200
	gtkdnd.h		\
Elliot Lee's avatar
Elliot Lee committed
201
	gtkdrawingarea.h	\
Matthias Clasen's avatar
Matthias Clasen committed
202
	gtkeditable.h		\
Elliot Lee's avatar
Elliot Lee committed
203
	gtkentry.h		\
204
	gtkentrybuffer.h	\
205
	gtkentrycompletion.h	\
Elliot Lee's avatar
Elliot Lee committed
206
207
	gtkenums.h		\
	gtkeventbox.h		\
208
	gtkexpander.h		\
Matthias Clasen's avatar
Matthias Clasen committed
209
210
211
212
	gtkfilechooser.h	\
	gtkfilechooserbutton.h	\
	gtkfilechooserdialog.h	\
	gtkfilechooserwidget.h	\
213
	gtkfilefilter.h		\
Elliot Lee's avatar
Elliot Lee committed
214
	gtkfixed.h		\
215
	gtkfontbutton.h		\
216
	gtkfontsel.h		\
Elliot Lee's avatar
Elliot Lee committed
217
	gtkframe.h		\
Matthias Clasen's avatar
Matthias Clasen committed
218
	gtkgradient.h		\
Matthias Clasen's avatar
Matthias Clasen committed
219
	gtkgrid.h		\
220
	gtkhandlebox.h		\
Elliot Lee's avatar
Elliot Lee committed
221
222
223
224
225
226
	gtkhbbox.h		\
	gtkhbox.h		\
	gtkhpaned.h		\
	gtkhscale.h		\
	gtkhscrollbar.h		\
	gtkhseparator.h		\
227
	gtkhsv.h		\
228
	gtkiconfactory.h	\
229
	gtkicontheme.h		\
230
	gtkiconview.h		\
Elliot Lee's avatar
Elliot Lee committed
231
	gtkimage.h		\
232
	gtkimagemenuitem.h	\
233
	gtkimcontext.h		\
234
	gtkimcontextsimple.h	\
Owen Taylor's avatar
Owen Taylor committed
235
	gtkimmodule.h		\
236
	gtkimmulticontext.h	\
Matthias Clasen's avatar
Matthias Clasen committed
237
	gtkinfobar.h		\
238
	gtkinvisible.h		\
Elliot Lee's avatar
Elliot Lee committed
239
	gtklabel.h		\
Matthias Clasen's avatar
Matthias Clasen committed
240
	gtklayout.h		\
241
	gtklinkbutton.h		\
242
	gtkliststore.h		\
Elliot Lee's avatar
Elliot Lee committed
243
244
245
246
247
	gtkmain.h		\
	gtkmenu.h		\
	gtkmenubar.h		\
	gtkmenuitem.h		\
	gtkmenushell.h		\
248
	gtkmenutoolbutton.h	\
249
	gtkmessagedialog.h	\
Elliot Lee's avatar
Elliot Lee committed
250
	gtkmisc.h		\
251
	gtkmodules.h		\
Matthias Clasen's avatar
Matthias Clasen committed
252
	gtkmountoperation.h	\
Elliot Lee's avatar
Elliot Lee committed
253
	gtknotebook.h		\
254
	gtkoffscreenwindow.h	\
255
	gtkorientable.h		\
256
	gtkpagesetup.h		\
Elliot Lee's avatar
Elliot Lee committed
257
	gtkpaned.h		\
258
	gtkpapersize.h		\
259
	gtkplug.h		\
260
261
	gtkprintcontext.h	\
	gtkprintoperation.h	\
Matthias Clasen's avatar
Matthias Clasen committed
262
	gtkprintoperationpreview.h \
263
	gtkprintsettings.h	\
Elliot Lee's avatar
Elliot Lee committed
264
	gtkprogressbar.h	\
265
	gtkradioaction.h	\
Elliot Lee's avatar
Elliot Lee committed
266
267
	gtkradiobutton.h	\
	gtkradiomenuitem.h	\
268
	gtkradiotoolbutton.h	\
Elliot Lee's avatar
Elliot Lee committed
269
270
	gtkrange.h		\
	gtkrc.h			\
271
	gtkrecentaction.h	\
272
273
	gtkrecentchooser.h 	\
	gtkrecentchooserdialog.h \
Matthias Clasen's avatar
Matthias Clasen committed
274
	gtkrecentchoosermenu.h	\
275
	gtkrecentchooserwidget.h \
Matthias Clasen's avatar
Matthias Clasen committed
276
	gtkrecentfilter.h	\
277
	gtkrecentmanager.h 	\
Elliot Lee's avatar
Elliot Lee committed
278
	gtkscale.h		\
279
	gtkscalebutton.h	\
Matthias Clasen's avatar
Matthias Clasen committed
280
	gtkscrollable.h		\
Elliot Lee's avatar
Elliot Lee committed
281
282
283
284
	gtkscrollbar.h		\
	gtkscrolledwindow.h	\
	gtkselection.h		\
	gtkseparator.h		\
285
286
	gtkseparatormenuitem.h	\
	gtkseparatortoolitem.h	\
287
	gtkshow.h		\
288
	gtksettings.h		\
289
	gtksizegroup.h		\
290
	gtksizerequest.h	\
291
	gtksocket.h		\
292
	gtkspinbutton.h		\
293
	gtkspinner.h		\
Shawn Amundson's avatar
Shawn Amundson committed
294
	gtkstatusbar.h		\
295
	gtkstatusicon.h		\
296
	gtkstock.h		\
Carlos Garnacho's avatar
Carlos Garnacho committed
297
	gtkstylecontext.h	\
298
	gtkstyleproperties.h	\
299
	gtkstyleprovider.h	\
300
	gtkstyle.h		\
301
	gtkswitch.h		\
Carlos Garnacho's avatar
Carlos Garnacho committed
302
	gtksymboliccolor.h	\
Elliot Lee's avatar
Elliot Lee committed
303
	gtktable.h		\
Matthias Clasen's avatar
Matthias Clasen committed
304
	gtktearoffmenuitem.h	\
Tim Janik's avatar
Tim Janik committed
305
	gtktestutils.h		\
306
	gtktextbuffer.h		\
307
	gtktextbufferrichtext.h	\
308
	gtktextchild.h		\
309
	gtktextdisplay.h	\
310
311
312
313
314
	gtktextiter.h		\
	gtktextmark.h		\
	gtktexttag.h		\
	gtktexttagtable.h	\
	gtktextview.h		\
Carlos Garnacho's avatar
Carlos Garnacho committed
315
	gtkthemingengine.h	\
316
	gtktoggleaction.h	\
Elliot Lee's avatar
Elliot Lee committed
317
	gtktogglebutton.h	\
318
	gtktoggletoolbutton.h	\
319
	gtktoolbar.h		\
320
321
	gtktoolbutton.h		\
	gtktoolitem.h		\
Matthias Clasen's avatar
Matthias Clasen committed
322
323
	gtktoolitemgroup.h	\
	gtktoolpalette.h	\
324
	gtktoolshell.h		\
Kristian Rietveld's avatar
Kristian Rietveld committed
325
	gtktooltip.h		\
Havoc Pennington's avatar
Havoc Pennington committed
326
	gtktreednd.h		\
327
	gtktreemodel.h		\
328
	gtktreemodelfilter.h	\
329
	gtktreemodelsort.h	\
330
	gtktreeselection.h	\
Havoc Pennington's avatar
Havoc Pennington committed
331
	gtktreesortable.h	\
332
333
334
	gtktreestore.h		\
	gtktreeview.h		\
	gtktreeviewcolumn.h	\
Elliot Lee's avatar
Elliot Lee committed
335
	gtktypeutils.h		\
336
	gtkuimanager.h		\
Elliot Lee's avatar
Elliot Lee committed
337
338
339
	gtkvbbox.h		\
	gtkvbox.h		\
	gtkviewport.h		\
340
	gtkvolumebutton.h	\
Elliot Lee's avatar
Elliot Lee committed
341
342
343
344
345
	gtkvpaned.h		\
	gtkvscale.h		\
	gtkvscrollbar.h		\
	gtkvseparator.h		\
	gtkwidget.h		\
Carlos Garnacho's avatar
Carlos Garnacho committed
346
	gtkwidgetpath.h		\
347
	gtkwindow.h
348

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

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

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

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

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

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

672
673
gtk_c_sources = $(gtk_base_c_sources)
gtk_all_c_sources = $(gtk_base_c_sources)
674

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

702
gtk_os_win32_c_sources = \
703
704
	gtkprint-win32.c		\
	gtkprintoperation-win32.c
705
706
gtk_all_c_sources += $(gtk_os_win32_c_sources)
if OS_WIN32
707
gtk_private_h_sources += gtkprint-win32.h
708
gtk_c_sources += $(gtk_os_win32_c_sources)
709
710
endif

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

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

761
762
763
764
765
# 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
766
767

# built sources that get installed with the header files
768
769
770
gtk_built_public_sources =			\
	gtktypebuiltins.h

771
# built headers that don't get installed
772
gtk_built_private_headers =			\
773
	gtkmarshalers.h				\
Claudio Saavedra's avatar
Claudio Saavedra committed
774
	gtkbuiltincache.h
775
776

gtk_built_sources =				\
777
	gtktypebuiltins.c			\
Tim Janik's avatar
Tim Janik committed
778
	gtktypefuncs.c				\
779
780
	gtkmarshalers.c				\
	${gtk_built_private_headers}		\
781
782
783
784
	${gtk_built_public_sources}

stamp_files =					\
	stamp-gtkmarshalers.h			\
Matthias Clasen's avatar
2.9.0    
Matthias Clasen committed
785
786
	stamp-gtktypebuiltins.h			\
	stamp-icons
787

788
789
790
# 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