Makefile.am 37 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
234
	gtkitem.h		\
	gtklabel.h		\
235
	gtklayout.h             \
236
	gtklinkbutton.h		\
237
	gtkliststore.h		\
Elliot Lee's avatar
Elliot Lee committed
238
239
240
241
242
	gtkmain.h		\
	gtkmenu.h		\
	gtkmenubar.h		\
	gtkmenuitem.h		\
	gtkmenushell.h		\
243
	gtkmenutoolbutton.h	\
244
	gtkmessagedialog.h	\
Elliot Lee's avatar
Elliot Lee committed
245
	gtkmisc.h		\
246
	gtkmodules.h		\
247
	gtkmountoperation.h     \
Elliot Lee's avatar
Elliot Lee committed
248
249
	gtknotebook.h		\
	gtkobject.h		\
250
	gtkoffscreenwindow.h	\
251
	gtkorientable.h		\
252
	gtkpagesetup.h		\
Elliot Lee's avatar
Elliot Lee committed
253
	gtkpaned.h		\
254
	gtkpapersize.h		\
255
	gtkplug.h		\
256
257
	gtkprintcontext.h	\
	gtkprintoperation.h	\
258
	gtkprintoperationpreview.h	\
259
	gtkprintsettings.h	\
260
	gtkprivate.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
276
	gtkruler.h		\
	gtkscale.h		\
277
	gtkscalebutton.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		\
294
	gtkstyle.h		\
Elliot Lee's avatar
Elliot Lee committed
295
	gtktable.h		\
296
	gtktearoffmenuitem.h    \
Tim Janik's avatar
Tim Janik committed
297
	gtktestutils.h		\
298
	gtktextbuffer.h		\
299
	gtktextbufferrichtext.h	\
300
	gtktextchild.h		\
301
	gtktextdisplay.h	\
302
303
304
305
306
	gtktextiter.h		\
	gtktextmark.h		\
	gtktexttag.h		\
	gtktexttagtable.h	\
	gtktextview.h		\
307
	gtktoggleaction.h	\
Elliot Lee's avatar
Elliot Lee committed
308
	gtktogglebutton.h	\
309
	gtktoggletoolbutton.h	\
310
	gtktoolbar.h		\
311
312
	gtktoolbutton.h		\
	gtktoolitem.h		\
Matthias Clasen's avatar
Matthias Clasen committed
313
314
	gtktoolitemgroup.h	\
	gtktoolpalette.h	\
315
	gtktoolshell.h		\
Kristian Rietveld's avatar
Kristian Rietveld committed
316
	gtktooltip.h		\
Havoc Pennington's avatar
Havoc Pennington committed
317
	gtktreednd.h		\
318
	gtktreemodel.h		\
319
	gtktreemodelfilter.h	\
320
	gtktreemodelsort.h	\
321
	gtktreeselection.h	\
Havoc Pennington's avatar
Havoc Pennington committed
322
	gtktreesortable.h	\
323
324
325
	gtktreestore.h		\
	gtktreeview.h		\
	gtktreeviewcolumn.h	\
Elliot Lee's avatar
Elliot Lee committed
326
	gtktypeutils.h		\
327
	gtkuimanager.h		\
Elliot Lee's avatar
Elliot Lee committed
328
329
330
	gtkvbbox.h		\
	gtkvbox.h		\
	gtkviewport.h		\
331
	gtkvolumebutton.h	\
Elliot Lee's avatar
Elliot Lee committed
332
333
334
335
336
337
	gtkvpaned.h		\
	gtkvruler.h		\
	gtkvscale.h		\
	gtkvscrollbar.h		\
	gtkvseparator.h		\
	gtkwidget.h		\
338
339
	gtkwindow.h

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
374
	gtkintl.h		\
	gtkkeyhash.h		\
	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		\
Soeren Sandmann's avatar
Soeren Sandmann committed
381
	gtkrbtree.h		\
382
383
384
	gtkrecentchooserdefault.h \
	gtkrecentchooserprivate.h \
	gtkrecentchooserutils.h \
385
	gtksocketprivate.h	\
386
	gtktextbtree.h		\
387
	gtktextbufferserialize.h\
Soeren Sandmann's avatar
Soeren Sandmann committed
388
	gtktextchildprivate.h	\
389
390
	gtktextiterprivate.h	\
	gtktextmarkprivate.h	\
391
	gtktextsegment.h	\
392
	gtktexttagprivate.h	\
393
394
	gtktexttypes.h		\
	gtktextutil.h		\
Owen Taylor's avatar
Owen Taylor committed
395
	gtkthemes.h		\
Matthias Clasen's avatar
Matthias Clasen committed
396
	gtktoolpaletteprivate.h	\
Owen Taylor's avatar
Owen Taylor committed
397
	gtktreedatalist.h	\
398
	gtktreeprivate.h	\
399
400
	gtkwindow-decorate.h	\
	$(gtk_clipboard_dnd_h_sources)
401

402
# GTK+ C sources to build the library from
403
gtk_base_c_sources =            \
404
405
406
	gtkquery.c		\
	gtksearchengine.c	\
	gtksearchenginesimple.c	\
Soeren Sandmann's avatar
Soeren Sandmann committed
407
	fnmatch.c		\
Matthias Clasen's avatar
Matthias Clasen committed
408
	gtkaboutdialog.c	\
409
410
	gtkaccelgroup.c		\
	gtkaccellabel.c		\
Soeren Sandmann's avatar
Soeren Sandmann committed
411
412
	gtkaccelmap.c		\
	gtkaccessible.c		\
413
414
	gtkaction.c		\
	gtkactiongroup.c	\
415
	gtkactivatable.c	\
416
417
	gtkadjustment.c		\
	gtkalignment.c		\
Matthias Clasen's avatar
Matthias Clasen committed
418
	gtkapplication.c \
419
420
	gtkarrow.c		\
	gtkaspectframe.c	\
421
	gtkassistant.c		\
Soeren Sandmann's avatar
Soeren Sandmann committed
422
	gtkbbox.c		\
423
424
425
	gtkbin.c		\
	gtkbindings.c		\
	gtkbox.c		\
Johan Dahlin's avatar
Johan Dahlin committed
426
427
428
	gtkbuildable.c		\
	gtkbuilder.c		\
	gtkbuilderparser.c	\
429
430
	gtkbutton.c		\
	gtkcalendar.c		\
Soeren Sandmann's avatar
Soeren Sandmann committed
431
	gtkcelleditable.c	\
432
	gtkcelllayout.c		\
433
	gtkcellrenderer.c	\
434
	gtkcellrendereraccel.c	\
435
	gtkcellrenderercombo.c	\
Soeren Sandmann's avatar
Soeren Sandmann committed
436
	gtkcellrendererpixbuf.c	\
437
	gtkcellrendererprogress.c \
438
	gtkcellrendererspin.c   \
439
	gtkcellrendererspinner.c\
440
441
	gtkcellrenderertext.c	\
	gtkcellrenderertoggle.c	\
442
	gtkcellsizerequest.c	\
443
	gtkcellview.c		\
444
445
	gtkcheckbutton.c	\
	gtkcheckmenuitem.c	\
446
	gtkcolorbutton.c	\
447
	gtkcolorsel.c		\
Owen Taylor's avatar
Owen Taylor committed
448
	gtkcolorseldialog.c	\
449
450
	gtkcombobox.c		\
	gtkcomboboxentry.c	\
451
452
453
454
455
	gtkcontainer.c		\
	gtkdialog.c		\
	gtkdrawingarea.c	\
	gtkeditable.c           \
	gtkentry.c		\
456
	gtkentrybuffer.c	\
457
	gtkentrycompletion.c	\
458
	gtkeventbox.c		\
459
	gtkexpander.c		\
460
	gtkfilechooser.c	\
461
	gtkfilechooserbutton.c	\
462
	gtkfilechooserdefault.c	\
463
	gtkfilechooserdialog.c	\
464
	gtkfilechooserembed.c	\
465
	gtkfilechooserentry.c	\
466
	gtkfilechoosersettings.c \
467
468
469
470
471
	gtkfilechooserutils.c	\
	gtkfilechooserwidget.c	\
	gtkfilefilter.c		\
	gtkfilesystem.c		\
	gtkfilesystemmodel.c	\
472
	gtkfixed.c		\
473
	gtkfontbutton.c         \
474
475
476
477
478
479
480
481
482
483
	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
484
	gtkhsv.c		\
485
	gtkiconcache.c		\
Matthias Clasen's avatar
Matthias Clasen committed
486
	gtkiconcachevalidator.c	\
487
	gtkiconfactory.c	\
488
	gtkicontheme.c		\
489
	gtkiconview.c		\
490
	gtkimage.c		\
491
	gtkimagemenuitem.c	\
492
493
	gtkimcontext.c		\
	gtkimcontextsimple.c	\
Owen Taylor's avatar
Owen Taylor committed
494
	gtkimmodule.c		\
495
	gtkimmulticontext.c	\
Matthias Clasen's avatar
Matthias Clasen committed
496
	gtkinfobar.c		\
497
498
	gtkinvisible.c		\
	gtkitem.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		\
Anders Carlsson's avatar
Anders Carlsson committed
622
	$(gtk_clipboard_dnd_c_sources)
623

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

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

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

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

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

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

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

723
# built headers that don't get installed
724
gtk_built_private_headers =			\
725
	gtkmarshalers.h				\
Matthias Clasen's avatar
2.13.1    
Matthias Clasen committed
726
727
	gtkbuiltincache.h			\
	gtkimcontextsimpleseqs.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
	( cd $(srcdir) && $(GLIB_MKENUMS) --template gtktypebuiltins.c.template \
799
		$(gtk_public_h_sources) ) > xgen-gtbc \
800
	&& cp xgen-gtbc gtktypebuiltins.c  \
801
	&& rm -f xgen-gtbc
802

Tim Janik's avatar
Tim Janik committed
803
804
gtktypefuncs.c: @REBUILD@ $(top_srcdir)/gtk/*.h $(top_srcdir)/gdk/*.h Makefile
	echo '#include <gtk/gtk.h>' > xgen-gtfsrc.c && \
805
	  ${CPP} $(DEFS) $(INCLUDES) -DGTK_ENABLE_BROKEN $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) xgen-gtfsrc.c | \
Matthias Clasen's avatar