Makefile.am 37.9 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		\
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
	gtkhbbox.h		\
	gtkhbox.h		\
	gtkhpaned.h		\
	gtkhscale.h		\
	gtkhscrollbar.h		\
	gtkhseparator.h		\
224
	gtkhsv.h		\
225
	gtkiconfactory.h	\
226
	gtkicontheme.h		\
227
	gtkiconview.h		\
Elliot Lee's avatar
Elliot Lee committed
228
	gtkimage.h		\
229
	gtkimagemenuitem.h	\
230
	gtkimcontext.h		\
231
	gtkimcontextsimple.h	\
Owen Taylor's avatar
Owen Taylor committed
232
	gtkimmodule.h		\
233
	gtkimmulticontext.h	\
Matthias Clasen's avatar
Matthias Clasen committed
234
	gtkinfobar.h		\
235
	gtkinvisible.h		\
Elliot Lee's avatar
Elliot Lee committed
236
	gtklabel.h		\
237
	gtklayout.h             \
238
	gtklinkbutton.h		\
239
	gtkliststore.h		\
Elliot Lee's avatar
Elliot Lee committed
240
241
242
243
244
	gtkmain.h		\
	gtkmenu.h		\
	gtkmenubar.h		\
	gtkmenuitem.h		\
	gtkmenushell.h		\
245
	gtkmenutoolbutton.h	\
246
	gtkmessagedialog.h	\
Elliot Lee's avatar
Elliot Lee committed
247
	gtkmisc.h		\
248
	gtkmodules.h		\
249
	gtkmountoperation.h     \
Elliot Lee's avatar
Elliot Lee committed
250
	gtknotebook.h		\
251
	gtkoffscreenwindow.h	\
252
	gtkorientable.h		\
253
	gtkpagesetup.h		\
Elliot Lee's avatar
Elliot Lee committed
254
	gtkpaned.h		\
255
	gtkpapersize.h		\
256
	gtkplug.h		\
257
258
	gtkprintcontext.h	\
	gtkprintoperation.h	\
259
	gtkprintoperationpreview.h	\
260
	gtkprintsettings.h	\
Elliot Lee's avatar
Elliot Lee committed
261
	gtkprogressbar.h	\
262
	gtkradioaction.h	\
Elliot Lee's avatar
Elliot Lee committed
263
264
	gtkradiobutton.h	\
	gtkradiomenuitem.h	\
265
	gtkradiotoolbutton.h	\
Elliot Lee's avatar
Elliot Lee committed
266
267
	gtkrange.h		\
	gtkrc.h			\
268
	gtkrecentaction.h	\
269
270
271
272
273
274
	gtkrecentchooser.h 	\
	gtkrecentchooserdialog.h \
	gtkrecentchoosermenu.h 	\
	gtkrecentchooserwidget.h \
	gtkrecentfilter.h 	\
	gtkrecentmanager.h 	\
Elliot Lee's avatar
Elliot Lee committed
275
	gtkscale.h		\
276
	gtkscalebutton.h	\
Tadej Borovšak's avatar
Tadej Borovšak committed
277
	gtkscrollable.h         \
Elliot Lee's avatar
Elliot Lee committed
278
279
280
281
	gtkscrollbar.h		\
	gtkscrolledwindow.h	\
	gtkselection.h		\
	gtkseparator.h		\
282
283
	gtkseparatormenuitem.h	\
	gtkseparatortoolitem.h	\
284
	gtkshow.h		\
285
	gtksettings.h		\
286
	gtksizegroup.h		\
287
	gtksizerequest.h	\
288
	gtksocket.h		\
289
	gtkspinbutton.h		\
290
	gtkspinner.h		\
Shawn Amundson's avatar
Shawn Amundson committed
291
	gtkstatusbar.h		\
292
	gtkstatusicon.h		\
293
	gtkstock.h		\
Carlos Garnacho's avatar
Carlos Garnacho committed
294
	gtkstylecontext.h	\
295
	gtkstyleprovider.h	\
296
	gtkstyleset.h		\
297
	gtkstyle.h		\
298
	gtkswitch.h		\
Elliot Lee's avatar
Elliot Lee committed
299
	gtktable.h		\
300
	gtktearoffmenuitem.h    \
Tim Janik's avatar
Tim Janik committed
301
	gtktestutils.h		\
302
	gtktextbuffer.h		\
303
	gtktextbufferrichtext.h	\
304
	gtktextchild.h		\
305
	gtktextdisplay.h	\
306
307
308
309
310
	gtktextiter.h		\
	gtktextmark.h		\
	gtktexttag.h		\
	gtktexttagtable.h	\
	gtktextview.h		\
Carlos Garnacho's avatar
Carlos Garnacho committed
311
	gtkthemingengine.h	\
312
	gtktoggleaction.h	\
Elliot Lee's avatar
Elliot Lee committed
313
	gtktogglebutton.h	\
314
	gtktoggletoolbutton.h	\
315
	gtktoolbar.h		\
316
317
	gtktoolbutton.h		\
	gtktoolitem.h		\
Matthias Clasen's avatar
Matthias Clasen committed
318
319
	gtktoolitemgroup.h	\
	gtktoolpalette.h	\
320
	gtktoolshell.h		\
Kristian Rietveld's avatar
Kristian Rietveld committed
321
	gtktooltip.h		\
Havoc Pennington's avatar
Havoc Pennington committed
322
	gtktreednd.h		\
323
	gtktreemodel.h		\
324
	gtktreemodelfilter.h	\
325
	gtktreemodelsort.h	\
326
	gtktreeselection.h	\
Havoc Pennington's avatar
Havoc Pennington committed
327
	gtktreesortable.h	\
328
329
330
	gtktreestore.h		\
	gtktreeview.h		\
	gtktreeviewcolumn.h	\
Elliot Lee's avatar
Elliot Lee committed
331
	gtktypeutils.h		\
332
	gtkuimanager.h		\
Elliot Lee's avatar
Elliot Lee committed
333
334
335
	gtkvbbox.h		\
	gtkvbox.h		\
	gtkviewport.h		\
336
	gtkvolumebutton.h	\
Elliot Lee's avatar
Elliot Lee committed
337
338
339
340
341
	gtkvpaned.h		\
	gtkvscale.h		\
	gtkvscrollbar.h		\
	gtkvseparator.h		\
	gtkwidget.h		\
Carlos Garnacho's avatar
Carlos Garnacho committed
342
	gtkwidgetpath.h		\
343
	gtkwindow.h
344

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

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

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

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

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

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

658
659
gtk_c_sources = $(gtk_base_c_sources)
gtk_all_c_sources = $(gtk_base_c_sources)
660

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

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

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

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

747
748
749
750
751
# 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
752
753

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

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

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

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

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

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

#
# rules to generate built sources
#
Kristian Rietveld's avatar
Kristian Rietveld committed
798
# setup autogeneration dependencies
Tim Janik's avatar
Tim Janik committed
799
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
800
CLEANFILES = $(gen_sources)
Raja R Harinath's avatar