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

338
if OS_UNIX
339
340
gtk_unix_print_public_h_sources =    \
	gtkpagesetupunixdialog.h	\
341
	gtkprintunixdialog.h		\
342
	gtkprinter.h			\
343
344
	gtkprintjob.h			\
	gtkunixprint.h
345
endif
346

347
# Installed header files without compatibility guarantees
348
# that are not included in gtk/gtk.h
349
gtk_semi_private_h_sources =    \
350
	gtktextlayout.h
351

352
# GTK+ header files that don't get installed
Soeren Sandmann's avatar
Soeren Sandmann committed
353
gtk_private_h_sources =		\
354
	gtkbuttonprivate.h	\
355
356
357
	gtkquery.h		\
	gtksearchengine.h	\
	gtksearchenginesimple.h	\
Matthias Clasen's avatar
Matthias Clasen committed
358
	gtkdndcursors.h		\
359
	gtkentryprivate.h	\
360
	gtkbuilderprivate.h 	\
361
	gtkcustompaperunixdialog.h\
362
	gtkfilechooserdefault.h	\
363
	gtkfilechooserembed.h	\
364
365
366
	gtkfilechooserentry.h	\
	gtkfilechooserprivate.h	\
	gtkfilechooserutils.h	\
367
	gtkfilesystem.h		\
368
	gtkfilesystemmodel.h	\
369
	gtkiconcache.h		\
Claudio Saavedra's avatar
Claudio Saavedra committed
370
	gtkimcontextsimpleseqs.h   \
371
372
	gtkintl.h		\
	gtkkeyhash.h		\
373
	gtkmenuprivate.h	\
374
	gtkmnemonichash.h	\
Matthias Clasen's avatar
Matthias Clasen committed
375
	gtkmountoperationprivate.h \
376
	gtkpango.h		\
377
	gtkpathbar.h		\
378
	gtkplugprivate.h	\
379
	gtkprintoperation-private.h\
Matthias Clasen's avatar
Matthias Clasen committed
380
	gtkprintutils.h		\
381
	gtkprivate.h		\
Soeren Sandmann's avatar
Soeren Sandmann committed
382
	gtkrbtree.h		\
383
384
385
	gtkrecentchooserdefault.h \
	gtkrecentchooserprivate.h \
	gtkrecentchooserutils.h \
386
	gtksizegroup-private.h	\
387
	gtksocketprivate.h	\
388
	gtktextbtree.h		\
389
	gtktextbufferserialize.h\
Soeren Sandmann's avatar
Soeren Sandmann committed
390
	gtktextchildprivate.h	\
391
392
	gtktextiterprivate.h	\
	gtktextmarkprivate.h	\
393
	gtktextsegment.h	\
394
	gtktexttagprivate.h	\
395
396
	gtktexttypes.h		\
	gtktextutil.h		\
Owen Taylor's avatar
Owen Taylor committed
397
	gtkthemes.h		\
Matthias Clasen's avatar
Matthias Clasen committed
398
	gtktoolpaletteprivate.h	\
Owen Taylor's avatar
Owen Taylor committed
399
	gtktreedatalist.h	\
400
	gtktreeprivate.h	\
401
	gtkwindow-decorate.h	\
Emmanuele Bassi's avatar
Emmanuele Bassi committed
402
	gtkwidgetprivate.h	\
403
	$(gtk_clipboard_dnd_h_sources)
404

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

625
626
gtk_c_sources = $(gtk_base_c_sources)
gtk_all_c_sources = $(gtk_base_c_sources)
627

628
gtk_os_unix_c_sources = \
629
	gtkcustompaperunixdialog.c	\
630
631
632
633
634
635
636
637
	gtkpagesetupunixdialog.c	\
	gtkprinter.c			\
	gtkprinteroption.c		\
	gtkprinteroptionset.c		\
	gtkprinteroptionwidget.c	\
	gtkprintjob.c			\
	gtkprintoperation-unix.c	\
	gtkprintunixdialog.c		\
638
639
640
        gtkprintbackend.c		\
	gtksearchenginebeagle.c		\
	gtksearchenginetracker.c
641
642
643
gtk_all_c_sources += $(gtk_os_unix_c_sources)
if OS_UNIX
gtk_private_h_sources += \
Matthias Clasen's avatar
Matthias Clasen committed
644
	gtkiconcachevalidator.h		\
645
646
647
648
	gtkprintbackend.h		\
	gtkprinter-private.h		\
	gtkprinteroption.h		\
	gtkprinteroptionset.h		\
649
650
651
	gtkprinteroptionwidget.h	\
	gtksearchenginebeagle.h		\
	gtksearchenginetracker.h
652
gtk_c_sources += $(gtk_os_unix_c_sources)
653
654
endif

655
gtk_os_win32_c_sources = \
656
657
	gtkprint-win32.c		\
	gtkprintoperation-win32.c
658
659
gtk_all_c_sources += $(gtk_os_win32_c_sources)
if OS_WIN32
660
gtk_private_h_sources += gtkprint-win32.h
661
gtk_c_sources += $(gtk_os_win32_c_sources)
662
663
endif

664
gtk_use_x11_c_sources = \
665
666
667
	gtkplug-x11.c   \
	gtksocket-x11.c \
	gtkxembed.c     \
668
669
	gtktrayicon-x11.c \
	gtkmountoperation-x11.c
670
671
672
673
gtk_use_win32_c_sources = \
	gtkplug-win32.c   \
	gtksocket-win32.c \
	gtkwin32embed.c   \
674
675
	gtkwin32embedwidget.c \
	gtkmountoperation-stub.c
676
677
678
gtk_use_quartz_c_sources =	\
	gtksearchenginequartz.c	\
	gtkplug-stub.c		\
679
680
	gtksocket-stub.c	\
	gtkmountoperation-stub.c
Michael David Emmel's avatar
Michael David Emmel committed
681
gtk_use_stub_c_sources = \
682
	gtkplug-stub.c   \
683
684
	gtksocket-stub.c \
	gtkmountoperation-stub.c
685
gtk_all_c_sources += $(gtk_use_x11_c_sources) $(gtk_use_win32_c_sources) $(gtk_use_quartz_c_sources) $(gtk_use_stub_c_sources)
686
687
688
if USE_X11
gtk_private_h_sources += gtkxembed.h gtktrayicon.h xembed.h
gtk_c_sources += $(gtk_use_x11_c_sources)
689
690
else
if USE_WIN32
691
gtk_private_h_sources += gtkwin32embed.h gtkwin32embedwidget.h
692
gtk_c_sources += $(gtk_use_win32_c_sources)
693
else
694
695
696
697
698
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
699
gtk_c_sources += $(gtk_use_stub_c_sources)
700
701
endif
endif
702
endif
703

Anders Carlsson's avatar
Anders Carlsson committed
704
if USE_QUARTZ
705
706
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
707
708
709
gtk_clipboard_dnd_c_sources_CFLAGS = "-xobjective-c"
else
gtk_clipboard_dnd_c_sources = gtkclipboard.c gtkdnd.c
710
gtk_clipboard_dnd_c_sources_CFLAGS =
Anders Carlsson's avatar
Anders Carlsson committed
711
endif
712
EXTRA_DIST += gtkquartz.h
Anders Carlsson's avatar
Anders Carlsson committed
713

714
715
716
717
718
# 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
719
720

# built sources that get installed with the header files
721
722
723
gtk_built_public_sources =			\
	gtktypebuiltins.h

724
# built headers that don't get installed
725
gtk_built_private_headers =			\
726
	gtkmarshalers.h				\
Claudio Saavedra's avatar
Claudio Saavedra committed
727
	gtkbuiltincache.h
728
729

gtk_built_sources =				\
730
	gtktypebuiltins.c			\
Tim Janik's avatar
Tim Janik committed
731
	gtktypefuncs.c				\
732
733
	gtkmarshalers.c				\
	${gtk_built_private_headers}		\
734
735
736
737
	${gtk_built_public_sources}

stamp_files =					\
	stamp-gtkmarshalers.h			\
Matthias Clasen's avatar
2.9.0    
Matthias Clasen committed
738
739
	stamp-gtktypebuiltins.h			\
	stamp-icons
740

741
742
743
# 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
744
gtk_extra_sources =				\
745
	paper_names.c				\
746
	paper_names_offsets.c			\
747
	gen-paper-names.c			\
748
	gtkstatusicon-quartz.c                  \
749
	gtk.symbols				\
750
	gtkversion.h.in				\
751
	gtkmarshalers.list
752

753
#
Kristian Rietveld's avatar
Kristian Rietveld committed
754
# setup GTK+ sources and their dependencies
755
#
756
MAINTAINERCLEANFILES = $(gtk_built_sources) $(stamp_files) $(GENERATED_ICONS) stock-icons/icon-theme.cache
Matt Wilson's avatar
Matt Wilson committed
757
EXTRA_HEADERS =
758
EXTRA_DIST += $(gtk_private_h_sources) $(gtk_extra_sources)
759
EXTRA_DIST += $(gtk_built_sources)
760
EXTRA_DIST += $(STOCK_ICONS)
761
762
763
764

#
# rules to generate built sources
#
Kristian Rietveld's avatar
Kristian Rietveld committed
765
# setup autogeneration dependencies
Tim Janik's avatar
Tim Janik committed
766
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
767
CLEANFILES = $(gen_sources)
768

769
BUILT_SOURCES = $(gtk_built_sources)
770

771
# all autogenerated files need to be generated in the srcdir,
Owen Taylor's avatar
Owen Taylor committed
772
773
774
775
# so old versions get remade and are not confused with newer
# versions in the build dir. thus a development setup requires
# srcdir to be writable, passing --disable-rebuilds to
# ../configure will supress all autogeneration rules.
776
gtkmarshalers.h: stamp-gtkmarshalers.h
777
778
	@true
stamp-gtkmarshalers.h: @REBUILD@ gtkmarshalers.list
779
780
781
	$(GLIB_GENMARSHAL) --prefix=_gtk_marshal $(srcdir)/gtkmarshalers.list --header >> xgen-gmlh \
	&& (cmp -s xgen-gmlh gtkmarshalers.h || cp xgen-gmlh gtkmarshalers.h) \
	&& rm -f xgen-gmlh \
782
	&& echo timestamp > $(@F)	
783
gtkmarshalers.c: @REBUILD@ gtkmarshalers.list
784
785
	(echo "#include \"gtkmarshalers.h\""; \
	 $(GLIB_GENMARSHAL) --prefix=_gtk_marshal $(srcdir)/gtkmarshalers.list --body) >> xgen-gmlc \
786
	&& cp xgen-gmlc gtkmarshalers.c \
787
788
	&& rm -f xgen-gmlc

789
gtktypebuiltins.h: stamp-gtktypebuiltins.h
790
	@true
791
792
stamp-gtktypebuiltins.h: @REBUILD@ $(gtk_public_h_sources) gtktypebuiltins.h.template
	( cd $(srcdir) && $(GLIB_MKENUMS) --template gtktypebuiltins.h.template \
793
		$(gtk_public_h_sources) ) >> xgen-gtbh \
794
	&& (cmp -s xgen-gtbh gtktypebuiltins.h || cp xgen-gtbh gtktypebuiltins.h ) \
795
	&& rm -f xgen-gtbh \
Owen Taylor's avatar
Owen Taylor committed
796
	&& echo timestamp > $(@F)
797
798
gtktypebuiltins.c: @REBUILD@ $(gtk_public_h_sources) gtktypebuiltins.c.template