Makefile.am 37.1 KB
Newer Older
Owen Taylor's avatar
Owen Taylor committed
1
# Makefile.am for gtk+/gtk
2
include $(top_srcdir)/Makefile.decl
3
-include $(INTROSPECTION_MAKEFILE)
Johan Dahlin's avatar
Johan Dahlin committed
4
5
6
7
8
9
10
INTROSPECTION_GIRS =
INTROSPECTION_SCANNER_ARGS = \
	--add-include-path=../gdk
INTROSPECTION_COMPILER_ARGS = \
	--includedir=$(srcdir) \
    --includedir=. \
    --includedir=../gdk
Elliot Lee's avatar
Elliot Lee committed
11

12
if USE_QUARTZ
13
GTK_PRINT_PREVIEW_COMMAND="open -a /Applications/Preview.app %f"
14
else
15
GTK_PRINT_PREVIEW_COMMAND="evince --unlink-tempfile --preview --print-settings %s %f"
16
17
endif

Matthias Clasen's avatar
Matthias Clasen committed
18
SUBDIRS = theme-bits . tests
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
	gtkcellsizerequest.h	\
183
	gtkcellview.h		\
Elliot Lee's avatar
Elliot Lee committed
184
185
	gtkcheckbutton.h	\
	gtkcheckmenuitem.h	\
Owen Taylor's avatar
Owen Taylor committed
186
	gtkclipboard.h		\
187
	gtkcolorbutton.h	\
Elliot Lee's avatar
Elliot Lee committed
188
	gtkcolorsel.h		\
Owen Taylor's avatar
Owen Taylor committed
189
	gtkcolorseldialog.h	\
190
191
	gtkcombobox.h		\
	gtkcomboboxentry.h	\
Elliot Lee's avatar
Elliot Lee committed
192
	gtkcontainer.h		\
193
	gtkdebug.h              \
Elliot Lee's avatar
Elliot Lee committed
194
	gtkdialog.h		\
195
	gtkdnd.h		\
Elliot Lee's avatar
Elliot Lee committed
196
	gtkdrawingarea.h	\
197
	gtkeditable.h           \
Elliot Lee's avatar
Elliot Lee committed
198
	gtkentry.h		\
199
	gtkentrybuffer.h	\
200
	gtkentrycompletion.h	\
Elliot Lee's avatar
Elliot Lee committed
201
202
	gtkenums.h		\
	gtkeventbox.h		\
203
	gtkexpander.h		\
204
	gtkfilechooser.h        \
205
	gtkfilechooserbutton.h  \
206
207
208
	gtkfilechooserdialog.h  \
	gtkfilechooserwidget.h  \
	gtkfilefilter.h		\
Elliot Lee's avatar
Elliot Lee committed
209
	gtkfixed.h		\
210
	gtkfontbutton.h		\
211
	gtkfontsel.h		\
Elliot Lee's avatar
Elliot Lee committed
212
	gtkframe.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
248
	gtknotebook.h		\
	gtkobject.h		\
249
	gtkoffscreenwindow.h	\
250
	gtkorientable.h		\
251
	gtkpagesetup.h		\
Elliot Lee's avatar
Elliot Lee committed
252
	gtkpaned.h		\
253
	gtkpapersize.h		\
254
	gtkplug.h		\
255
256
	gtkprintcontext.h	\
	gtkprintoperation.h	\
257
	gtkprintoperationpreview.h	\
258
	gtkprintsettings.h	\
259
	gtkprivate.h		\
Elliot Lee's avatar
Elliot Lee committed
260
	gtkprogressbar.h	\
261
	gtkradioaction.h	\
Elliot Lee's avatar
Elliot Lee committed
262
263
	gtkradiobutton.h	\
	gtkradiomenuitem.h	\
264
	gtkradiotoolbutton.h	\
Elliot Lee's avatar
Elliot Lee committed
265
266
	gtkrange.h		\
	gtkrc.h			\
267
	gtkrecentaction.h	\
268
269
270
271
272
273
	gtkrecentchooser.h 	\
	gtkrecentchooserdialog.h \
	gtkrecentchoosermenu.h 	\
	gtkrecentchooserwidget.h \
	gtkrecentfilter.h 	\
	gtkrecentmanager.h 	\
Elliot Lee's avatar
Elliot Lee committed
274
275
	gtkruler.h		\
	gtkscale.h		\
276
	gtkscalebutton.h	\
Elliot Lee's avatar
Elliot Lee committed
277
278
279
280
	gtkscrollbar.h		\
	gtkscrolledwindow.h	\
	gtkselection.h		\
	gtkseparator.h		\
281
282
	gtkseparatormenuitem.h	\
	gtkseparatortoolitem.h	\
283
	gtkshow.h		\
284
	gtksettings.h		\
285
	gtksizegroup.h		\
286
	gtksizerequest.h	\
287
	gtksocket.h		\
288
	gtkspinbutton.h		\
289
	gtkspinner.h		\
Shawn Amundson's avatar
Shawn Amundson committed
290
	gtkstatusbar.h		\
291
	gtkstatusicon.h		\
292
	gtkstock.h		\
293
	gtkstyle.h		\
Elliot Lee's avatar
Elliot Lee committed
294
	gtktable.h		\
295
	gtktearoffmenuitem.h    \
Tim Janik's avatar
Tim Janik committed
296
	gtktestutils.h		\
297
	gtktextbuffer.h		\
298
	gtktextbufferrichtext.h	\
299
	gtktextchild.h		\
300
	gtktextdisplay.h	\
301
302
303
304
305
	gtktextiter.h		\
	gtktextmark.h		\
	gtktexttag.h		\
	gtktexttagtable.h	\
	gtktextview.h		\
306
	gtktoggleaction.h	\
Elliot Lee's avatar
Elliot Lee committed
307
	gtktogglebutton.h	\
308
	gtktoggletoolbutton.h	\
309
	gtktoolbar.h		\
310
311
	gtktoolbutton.h		\
	gtktoolitem.h		\
Matthias Clasen's avatar
Matthias Clasen committed
312
313
	gtktoolitemgroup.h	\
	gtktoolpalette.h	\
314
	gtktoolshell.h		\
Kristian Rietveld's avatar
Kristian Rietveld committed
315
	gtktooltip.h		\
Havoc Pennington's avatar
Havoc Pennington committed
316
	gtktreednd.h		\
317
	gtktreemodel.h		\
318
	gtktreemodelfilter.h	\
319
	gtktreemodelsort.h	\
320
	gtktreeselection.h	\
Havoc Pennington's avatar
Havoc Pennington committed
321
	gtktreesortable.h	\
322
323
324
	gtktreestore.h		\
	gtktreeview.h		\
	gtktreeviewcolumn.h	\
Elliot Lee's avatar
Elliot Lee committed
325
	gtktypeutils.h		\
326
	gtkuimanager.h		\
Elliot Lee's avatar
Elliot Lee committed
327
328
329
	gtkvbbox.h		\
	gtkvbox.h		\
	gtkviewport.h		\
330
	gtkvolumebutton.h	\
Elliot Lee's avatar
Elliot Lee committed
331
332
333
334
335
336
	gtkvpaned.h		\
	gtkvruler.h		\
	gtkvscale.h		\
	gtkvscrollbar.h		\
	gtkvseparator.h		\
	gtkwidget.h		\
337
338
	gtkwindow.h		\
	gtkwrapbox.h
339

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

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

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

403
# GTK+ C sources to build the library from
404
gtk_base_c_sources =            \
405
406
407
	gtkquery.c		\
	gtksearchengine.c	\
	gtksearchenginesimple.c	\
Soeren Sandmann's avatar
Soeren Sandmann committed
408
	fnmatch.c		\
Matthias Clasen's avatar
Matthias Clasen committed
409
	gtkaboutdialog.c	\
410
411
	gtkaccelgroup.c		\
	gtkaccellabel.c		\
Soeren Sandmann's avatar
Soeren Sandmann committed
412
413
	gtkaccelmap.c		\
	gtkaccessible.c		\
414
415
	gtkaction.c		\
	gtkactiongroup.c	\
416
	gtkactivatable.c	\
417
418
	gtkadjustment.c		\
	gtkalignment.c		\
Matthias Clasen's avatar
Matthias Clasen committed
419
	gtkapplication.c \
420
421
	gtkarrow.c		\
	gtkaspectframe.c	\
422
	gtkassistant.c		\
Soeren Sandmann's avatar
Soeren Sandmann committed
423
	gtkbbox.c		\
424
425
426
	gtkbin.c		\
	gtkbindings.c		\
	gtkbox.c		\
Johan Dahlin's avatar
Johan Dahlin committed
427
428
429
	gtkbuildable.c		\
	gtkbuilder.c		\
	gtkbuilderparser.c	\
430
431
	gtkbutton.c		\
	gtkcalendar.c		\
Soeren Sandmann's avatar
Soeren Sandmann committed
432
	gtkcelleditable.c	\
433
	gtkcelllayout.c		\
434
	gtkcellrenderer.c	\
435
	gtkcellrendereraccel.c	\
436
	gtkcellrenderercombo.c	\
Soeren Sandmann's avatar
Soeren Sandmann committed
437
	gtkcellrendererpixbuf.c	\
438
	gtkcellrendererprogress.c \
439
	gtkcellrendererspin.c   \
440
	gtkcellrendererspinner.c\
441
442
	gtkcellrenderertext.c	\
	gtkcellrenderertoggle.c	\
443
	gtkcellsizerequest.c	\
444
	gtkcellview.c		\
445
446
	gtkcheckbutton.c	\
	gtkcheckmenuitem.c	\
447
	gtkcolorbutton.c	\
448
	gtkcolorsel.c		\
Owen Taylor's avatar
Owen Taylor committed
449
	gtkcolorseldialog.c	\
450
451
	gtkcombobox.c		\
	gtkcomboboxentry.c	\
452
453
454
455
456
	gtkcontainer.c		\
	gtkdialog.c		\
	gtkdrawingarea.c	\
	gtkeditable.c           \
	gtkentry.c		\
457
	gtkentrybuffer.c	\
458
	gtkentrycompletion.c	\
459
	gtkeventbox.c		\
460
	gtkexpander.c		\
461
	gtkfilechooser.c	\
462
	gtkfilechooserbutton.c	\
463
	gtkfilechooserdefault.c	\
464
	gtkfilechooserdialog.c	\
465
	gtkfilechooserembed.c	\
466
	gtkfilechooserentry.c	\
467
	gtkfilechoosersettings.c \
468
469
470
471
472
	gtkfilechooserutils.c	\
	gtkfilechooserwidget.c	\
	gtkfilefilter.c		\
	gtkfilesystem.c		\
	gtkfilesystemmodel.c	\
473
	gtkfixed.c		\
474
	gtkfontbutton.c         \
475
476
477
478
479
480
481
482
483
484
	gtkfontsel.c            \
	gtkframe.c		\
	gtkhandlebox.c		\
	gtkhbbox.c		\
	gtkhbox.c		\
	gtkhpaned.c		\
	gtkhruler.c		\
	gtkhscale.c		\
	gtkhscrollbar.c		\
	gtkhseparator.c		\
Owen Taylor's avatar
Owen Taylor committed
485
	gtkhsv.c		\
486
	gtkiconcache.c		\
Matthias Clasen's avatar
Matthias Clasen committed
487
	gtkiconcachevalidator.c	\
488
	gtkiconfactory.c	\
489
	gtkicontheme.c		\
490
	gtkiconview.c		\
491
	gtkimage.c		\
492
	gtkimagemenuitem.c	\
493
494
	gtkimcontext.c		\
	gtkimcontextsimple.c	\
Owen Taylor's avatar
Owen Taylor committed
495
	gtkimmodule.c		\
496
	gtkimmulticontext.c	\
Matthias Clasen's avatar
Matthias Clasen committed
497
	gtkinfobar.c		\
498
	gtkinvisible.c		\
499
	gtkkeyhash.c		\
500
501
	gtklabel.c		\
	gtklayout.c		\
502
	gtklinkbutton.c		\
503
	gtkliststore.c		\
504
	gtkmain.c		\
Soeren Sandmann's avatar
Soeren Sandmann committed
505
	gtkmarshalers.c		\
506
507
508
509
	gtkmenu.c		\
	gtkmenubar.c		\
	gtkmenuitem.c		\
	gtkmenushell.c		\
510
	gtkmenutoolbutton.c	\
511
	gtkmessagedialog.c	\
512
	gtkmisc.c		\
513
	gtkmnemonichash.c	\
514
	gtkmodules.c		\
515
	gtkmountoperation.c     \
516
517
	gtknotebook.c		\
	gtkobject.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	\
551
552
553
554
	gtkscrollbar.c		\
	gtkscrolledwindow.c	\
	gtkselection.c		\
	gtkseparator.c		\
Soeren Sandmann's avatar
Soeren Sandmann committed
555
556
	gtkseparatormenuitem.c	\
	gtkseparatortoolitem.c	\
557
	gtksettings.c		\
558
	gtksizegroup.c		\
559
	gtksizerequest.c	\
Jaap A. Haitsma's avatar
Jaap A. Haitsma committed
560
	gtkshow.c		\
561
	gtksocket.c		\
562
	gtkspinbutton.c		\
563
	gtkspinner.c		\
Soeren Sandmann's avatar
Soeren Sandmann committed
564
	gtkstatusbar.c		\
565
	gtkstatusicon.c		\
566
	gtkstock.c		\
567
568
569
	gtkstyle.c		\
	gtktable.c		\
	gtktearoffmenuitem.c    \
Tim Janik's avatar
Tim Janik committed
570
	gtktestutils.c		\
571
572
	gtktextbtree.c		\
	gtktextbuffer.c		\
573
574
	gtktextbufferrichtext.c	\
	gtktextbufferserialize.c\
575
576
577
578
579
580
581
582
583
	gtktextchild.c		\
	gtktextdisplay.c	\
	gtktextiter.c		\
	gtktextlayout.c		\
	gtktextmark.c		\
	gtktextsegment.c	\
	gtktexttag.c		\
	gtktexttagtable.c	\
	gtktexttypes.c		\
584
	gtktextutil.c		\
585
	gtktextview.c		\
586
	gtkthemes.c		\
587
	gtktoggleaction.c	\
588
	gtktogglebutton.c	\
Soeren Sandmann's avatar
Soeren Sandmann committed
589
590
591
592
	gtktoggletoolbutton.c	\
	gtktoolbar.c		\
	gtktoolbutton.c		\
	gtktoolitem.c		\
Johannes Schmid's avatar
Johannes Schmid committed
593
594
	gtktoolitemgroup.c		\
	gtktoolpalette.c	\
595
	gtktoolshell.c		\
Kristian Rietveld's avatar
Kristian Rietveld committed
596
	gtktooltip.c		\
597
	gtktreedatalist.c	\
Havoc Pennington's avatar
Havoc Pennington committed
598
	gtktreednd.c		\
599
	gtktreemodel.c		\
600
	gtktreemodelfilter.c	\
601
	gtktreemodelsort.c	\
602
	gtktreeselection.c	\
603
	gtktreesortable.c	\
604
605
606
	gtktreestore.c		\
	gtktreeview.c		\
	gtktreeviewcolumn.c	\
607
	gtktypebuiltins.c	\
608
	gtktypeutils.c		\
609
	gtkuimanager.c		\
610
611
	gtkvbbox.c		\
	gtkvbox.c		\
612
	gtkvolumebutton.c	\
613
614
615
616
617
618
619
	gtkviewport.c		\
	gtkvpaned.c		\
	gtkvruler.c		\
	gtkvscale.c		\
	gtkvscrollbar.c		\
	gtkvseparator.c		\
	gtkwidget.c		\
620
	gtkwindow-decorate.c    \
Soeren Sandmann's avatar
Soeren Sandmann committed
621
	gtkwindow.c		\
622
	gtkwrapbox.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				\
Matthias Clasen's avatar
2.13.1    
Matthias Clasen committed
727
728
	gtkbuiltincache.h			\
	gtkimcontextsimpleseqs.h
729
730

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

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

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

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

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

770
BUILT_SOURCES = $(gtk_built_sources)
771

772
# all autogenerated files need to be generated in the srcdir,
Owen Taylor's avatar
Owen Taylor committed
773
774
775
776
# 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.
777
gtkmarshalers.h: stamp-gtkmarshalers.h
778
779
	@true
stamp-gtkmarshalers.h: @REBUILD@ gtkmarshalers.list
780
781
782
	$(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 \
783
	&& echo timestamp > $(@F)	
784
gtkmarshalers.c: @REBUILD@ gtkmarshalers.list
785
786
	(echo "#include \"gtkmarshalers.h\""; \
	 $(GLIB_GENMARSHAL) --prefix=_gtk_marshal $(srcdir)/gtkmarshalers.list --body) >> xgen-gmlc \
787
	&& cp xgen-gmlc gtkmarshalers.c \
788
789
	&& rm -f xgen-gmlc

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