Makefile.am 38 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		\
Elliot Lee's avatar
Elliot Lee committed
300
	gtktable.h		\
301
	gtktearoffmenuitem.h    \
Tim Janik's avatar
Tim Janik committed
302
	gtktestutils.h		\
303
	gtktextbuffer.h		\
304
	gtktextbufferrichtext.h	\
305
	gtktextchild.h		\
306
	gtktextdisplay.h	\
307
308
309
310
311
	gtktextiter.h		\
	gtktextmark.h		\
	gtktexttag.h		\
	gtktexttagtable.h	\
	gtktextview.h		\
Carlos Garnacho's avatar
Carlos Garnacho committed
312
	gtkthemingengine.h	\
313
	gtktoggleaction.h	\
Elliot Lee's avatar
Elliot Lee committed
314
	gtktogglebutton.h	\
315
	gtktoggletoolbutton.h	\
316
	gtktoolbar.h		\
317
318
	gtktoolbutton.h		\
	gtktoolitem.h		\
Matthias Clasen's avatar
Matthias Clasen committed
319
320
	gtktoolitemgroup.h	\
	gtktoolpalette.h	\
321
	gtktoolshell.h		\
Kristian Rietveld's avatar
Kristian Rietveld committed
322
	gtktooltip.h		\
Havoc Pennington's avatar
Havoc Pennington committed
323
	gtktreednd.h		\
324
	gtktreemodel.h		\
325
	gtktreemodelfilter.h	\
326
	gtktreemodelsort.h	\
327
	gtktreeselection.h	\
Havoc Pennington's avatar
Havoc Pennington committed
328
	gtktreesortable.h	\
329
330
331
	gtktreestore.h		\
	gtktreeview.h		\
	gtktreeviewcolumn.h	\
Elliot Lee's avatar
Elliot Lee committed
332
	gtktypeutils.h		\
333
	gtkuimanager.h		\
Elliot Lee's avatar
Elliot Lee committed
334
335
336
	gtkvbbox.h		\
	gtkvbox.h		\
	gtkviewport.h		\
337
	gtkvolumebutton.h	\
Elliot Lee's avatar
Elliot Lee committed
338
339
340
341
342
	gtkvpaned.h		\
	gtkvscale.h		\
	gtkvscrollbar.h		\
	gtkvseparator.h		\
	gtkwidget.h		\
Carlos Garnacho's avatar
Carlos Garnacho committed
343
	gtkwidgetpath.h		\
344
	gtkwindow.h
345

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

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

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

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

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

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

660
661
gtk_c_sources = $(gtk_base_c_sources)
gtk_all_c_sources = $(gtk_base_c_sources)
662

663
gtk_os_unix_c_sources = \
664
	gtkcustompaperunixdialog.c	\
665
666
667
668
669
670
671
672
	gtkpagesetupunixdialog.c	\
	gtkprinter.c			\
	gtkprinteroption.c		\
	gtkprinteroptionset.c		\
	gtkprinteroptionwidget.c	\
	gtkprintjob.c			\
	gtkprintoperation-unix.c	\
	gtkprintunixdialog.c		\
673
674
675
        gtkprintbackend.c		\
	gtksearchenginebeagle.c		\
	gtksearchenginetracker.c
676
677
678
gtk_all_c_sources += $(gtk_os_unix_c_sources)
if OS_UNIX
gtk_private_h_sources += \
Matthias Clasen's avatar
Matthias Clasen committed
679
	gtkiconcachevalidator.h		\
680
681
682
683
	gtkprintbackend.h		\
	gtkprinter-private.h		\
	gtkprinteroption.h		\
	gtkprinteroptionset.h		\
684
685
686
	gtkprinteroptionwidget.h	\
	gtksearchenginebeagle.h		\
	gtksearchenginetracker.h
687
gtk_c_sources += $(gtk_os_unix_c_sources)
688
689
endif

690
gtk_os_win32_c_sources = \
691
692
	gtkprint-win32.c		\
	gtkprintoperation-win32.c
693
694
gtk_all_c_sources += $(gtk_os_win32_c_sources)
if OS_WIN32
695
gtk_private_h_sources += gtkprint-win32.h
696
gtk_c_sources += $(gtk_os_win32_c_sources)
697
698
endif

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

Anders Carlsson's avatar
Anders Carlsson committed
739
if USE_QUARTZ
740
741
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
742
743
744
gtk_clipboard_dnd_c_sources_CFLAGS = "-xobjective-c"
else
gtk_clipboard_dnd_c_sources = gtkclipboard.c gtkdnd.c
745
gtk_clipboard_dnd_c_sources_CFLAGS =
Anders Carlsson's avatar
Anders Carlsson committed
746
endif
747
EXTRA_DIST += gtkquartz.h
Anders Carlsson's avatar
Anders Carlsson committed
748

749
750
751
752
753
# 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
754
755

# built sources that get installed with the header files
756
757
758
gtk_built_public_sources =			\
	gtktypebuiltins.h

759
# built headers that don't get installed
760
gtk_built_private_headers =			\
761
	gtkmarshalers.h				\
Claudio Saavedra's avatar
Claudio Saavedra committed
762
	gtkbuiltincache.h
763
764

gtk_built_sources =				\
765
	gtktypebuiltins.c			\
Tim Janik's avatar
Tim Janik committed
766
	gtktypefuncs.c				\
767
768
	gtkmarshalers.c				\
	${gtk_built_private_headers}		\
769
770
771
772
	${gtk_built_public_sources}

stamp_files =					\
	stamp-gtkmarshalers.h			\
Matthias Clasen's avatar
2.9.0    
Matthias Clasen committed
773
774
	stamp-gtktypebuiltins.h			\
	stamp-icons
775

776
777
778
# 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
779
gtk_extra_sources =				\
780
	paper_names.c				\
781
	paper_names_offsets.c			\
782
	gen-paper-names.c			\
783
	gtkstatusicon-quartz.c                  \
784
	gtk.symbols				\
785
	gtkversion.h.in				\
786
	gtkmarshalers.list
787

788
#
Kristian Rietveld's avatar
Kristian Rietveld committed
789
# setup GTK+ sources and their dependencies
790
#
791
MAINTAINERCLEANFILES = $(gtk_built_sources) $(stamp_files) $(GENERATED_ICONS) stock-icons/icon-theme.cache
Matt Wilson's avatar
Matt Wilson committed
792
EXTRA_HEADERS =
793
EXTRA_DIST += $(gtk_private_h_sources) $(gtk_extra_sources)
794
EXTRA_DIST += $(gtk_built_sources)
795
EXTRA_DIST += $(STOCK_ICONS)
796
797
798
799

#
# rules to generate built sources
#