Makefile.am 37.8 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		\
311
	gtktoggleaction.h	\
Elliot Lee's avatar
Elliot Lee committed
312
	gtktogglebutton.h	\
313
	gtktoggletoolbutton.h	\
314
	gtktoolbar.h		\
315
316
	gtktoolbutton.h		\
	gtktoolitem.h		\
Matthias Clasen's avatar
Matthias Clasen committed
317
318
	gtktoolitemgroup.h	\
	gtktoolpalette.h	\
319
	gtktoolshell.h		\
Kristian Rietveld's avatar
Kristian Rietveld committed
320
	gtktooltip.h		\
Havoc Pennington's avatar
Havoc Pennington committed
321
	gtktreednd.h		\
322
	gtktreemodel.h		\
323
	gtktreemodelfilter.h	\
324
	gtktreemodelsort.h	\
325
	gtktreeselection.h	\
Havoc Pennington's avatar
Havoc Pennington committed
326
	gtktreesortable.h	\
327
328
329
	gtktreestore.h		\
	gtktreeview.h		\
	gtktreeviewcolumn.h	\
Elliot Lee's avatar
Elliot Lee committed
330
	gtktypeutils.h		\
331
	gtkuimanager.h		\
Elliot Lee's avatar
Elliot Lee committed
332
333
334
	gtkvbbox.h		\
	gtkvbox.h		\
	gtkviewport.h		\
335
	gtkvolumebutton.h	\
Elliot Lee's avatar
Elliot Lee committed
336
337
338
339
340
	gtkvpaned.h		\
	gtkvscale.h		\
	gtkvscrollbar.h		\
	gtkvseparator.h		\
	gtkwidget.h		\
341
	gtkwindow.h
342

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

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

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

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

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

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

654
655
gtk_c_sources = $(gtk_base_c_sources)
gtk_all_c_sources = $(gtk_base_c_sources)
656

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

684
gtk_os_win32_c_sources = \
685
686
	gtkprint-win32.c		\
	gtkprintoperation-win32.c
687
688
gtk_all_c_sources += $(gtk_os_win32_c_sources)
if OS_WIN32
689
gtk_private_h_sources += gtkprint-win32.h
690
gtk_c_sources += $(gtk_os_win32_c_sources)
691
692
endif

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

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

743
744
745
746
747
# 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
748
749

# built sources that get installed with the header files
750
751
752
gtk_built_public_sources =			\
	gtktypebuiltins.h

753
# built headers that don't get installed
754
gtk_built_private_headers =			\
755
	gtkmarshalers.h				\
Claudio Saavedra's avatar
Claudio Saavedra committed
756
	gtkbuiltincache.h
757
758

gtk_built_sources =				\
759
	gtktypebuiltins.c			\
Tim Janik's avatar
Tim Janik committed
760
	gtktypefuncs.c				\
761
762
	gtkmarshalers.c				\
	${gtk_built_private_headers}		\
763
764
765
766
	${gtk_built_public_sources}

stamp_files =					\
	stamp-gtkmarshalers.h			\
Matthias Clasen's avatar
2.9.0    
Matthias Clasen committed
767
768
	stamp-gtktypebuiltins.h			\
	stamp-icons
769

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

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

#
# rules to generate built sources
#
Kristian Rietveld's avatar
Kristian Rietveld committed
794
# setup autogeneration dependencies
Tim Janik's avatar
Tim Janik committed
795
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
796
CLEANFILES = $(gen_sources)
797

798
BUILT_SOURCES = $(gtk_built_sources)
799

800
# all autogenerated files need to be generated in the srcdir,