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
	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
190
	gtkcombobox.h		\
	gtkcomboboxentry.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		\
212
	gtkhandlebox.h		\
Elliot Lee's avatar
Elliot Lee committed
213
214
215
216
217
218
219
	gtkhbbox.h		\
	gtkhbox.h		\
	gtkhpaned.h		\
	gtkhruler.h		\
	gtkhscale.h		\
	gtkhscrollbar.h		\
	gtkhseparator.h		\
220
	gtkhsv.h		\
221
	gtkiconfactory.h	\
222
	gtkicontheme.h		\
223
	gtkiconview.h		\
Elliot Lee's avatar
Elliot Lee committed
224
	gtkimage.h		\
225
	gtkimagemenuitem.h	\
226
	gtkimcontext.h		\
227
	gtkimcontextsimple.h	\
Owen Taylor's avatar
Owen Taylor committed
228
	gtkimmodule.h		\
229
	gtkimmulticontext.h	\
Matthias Clasen's avatar
Matthias Clasen committed
230
	gtkinfobar.h		\
231
	gtkinvisible.h		\
Elliot Lee's avatar
Elliot Lee committed
232
	gtklabel.h		\
233
	gtklayout.h             \
234
	gtklinkbutton.h		\
235
	gtkliststore.h		\
Elliot Lee's avatar
Elliot Lee committed
236
237
238
239
240
	gtkmain.h		\
	gtkmenu.h		\
	gtkmenubar.h		\
	gtkmenuitem.h		\
	gtkmenushell.h		\
241
	gtkmenutoolbutton.h	\
242
	gtkmessagedialog.h	\
Elliot Lee's avatar
Elliot Lee committed
243
	gtkmisc.h		\
244
	gtkmodules.h		\
245
	gtkmountoperation.h     \
Elliot Lee's avatar
Elliot Lee committed
246
	gtknotebook.h		\
247
	gtkoffscreenwindow.h	\
248
	gtkorientable.h		\
249
	gtkpagesetup.h		\
Elliot Lee's avatar
Elliot Lee committed
250
	gtkpaned.h		\
251
	gtkpapersize.h		\
252
	gtkplug.h		\
253
254
	gtkprintcontext.h	\
	gtkprintoperation.h	\
255
	gtkprintoperationpreview.h	\
256
	gtkprintsettings.h	\
257
	gtkprivate.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	\
Elliot Lee's avatar
Elliot Lee committed
275
276
277
278
	gtkscrollbar.h		\
	gtkscrolledwindow.h	\
	gtkselection.h		\
	gtkseparator.h		\
279
280
	gtkseparatormenuitem.h	\
	gtkseparatortoolitem.h	\
281
	gtkshow.h		\
282
	gtksettings.h		\
283
	gtksizegroup.h		\
284
	gtksizerequest.h	\
285
	gtksocket.h		\
286
	gtkspinbutton.h		\
287
	gtkspinner.h		\
Shawn Amundson's avatar
Shawn Amundson committed
288
	gtkstatusbar.h		\
289
	gtkstatusicon.h		\
290
	gtkstock.h		\
291
	gtkstyle.h		\
Elliot Lee's avatar
Elliot Lee committed
292
	gtktable.h		\
293
	gtktearoffmenuitem.h    \
Tim Janik's avatar
Tim Janik committed
294
	gtktestutils.h		\
295
	gtktextbuffer.h		\
296
	gtktextbufferrichtext.h	\
297
	gtktextchild.h		\
298
	gtktextdisplay.h	\
299
300
301
302
303
	gtktextiter.h		\
	gtktextmark.h		\
	gtktexttag.h		\
	gtktexttagtable.h	\
	gtktextview.h		\
304
	gtktoggleaction.h	\
Elliot Lee's avatar
Elliot Lee committed
305
	gtktogglebutton.h	\
306
	gtktoggletoolbutton.h	\
307
	gtktoolbar.h		\
308
309
	gtktoolbutton.h		\
	gtktoolitem.h		\
Matthias Clasen's avatar
Matthias Clasen committed
310
311
	gtktoolitemgroup.h	\
	gtktoolpalette.h	\
312
	gtktoolshell.h		\
Kristian Rietveld's avatar
Kristian Rietveld committed
313
	gtktooltip.h		\
Havoc Pennington's avatar
Havoc Pennington committed
314
	gtktreednd.h		\
315
	gtktreemodel.h		\
316
	gtktreemodelfilter.h	\
317
	gtktreemodelsort.h	\
318
	gtktreeselection.h	\
Havoc Pennington's avatar
Havoc Pennington committed
319
	gtktreesortable.h	\
320
321
322
	gtktreestore.h		\
	gtktreeview.h		\
	gtktreeviewcolumn.h	\
Elliot Lee's avatar
Elliot Lee committed
323
	gtktypeutils.h		\
324
	gtkuimanager.h		\
Elliot Lee's avatar
Elliot Lee committed
325
326
327
	gtkvbbox.h		\
	gtkvbox.h		\
	gtkviewport.h		\
328
	gtkvolumebutton.h	\
Elliot Lee's avatar
Elliot Lee committed
329
330
331
332
333
334
	gtkvpaned.h		\
	gtkvruler.h		\
	gtkvscale.h		\
	gtkvscrollbar.h		\
	gtkvseparator.h		\
	gtkwidget.h		\
335
336
	gtkwindow.h		\
	gtkwrapbox.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
355
356
	gtkquery.h		\
	gtksearchengine.h	\
	gtksearchenginesimple.h	\
Matthias Clasen's avatar
Matthias Clasen committed
357
	gtkdndcursors.h		\
358
	gtkentryprivate.h	\
359
	gtkbuilderprivate.h 	\
360
	gtkcustompaperunixdialog.h\
361
	gtkfilechooserdefault.h	\
362
	gtkfilechooserembed.h	\
363
364
365
	gtkfilechooserentry.h	\
	gtkfilechooserprivate.h	\
	gtkfilechooserutils.h	\
366
	gtkfilesystem.h		\
367
	gtkfilesystemmodel.h	\
368
	gtkiconcache.h		\
Claudio Saavedra's avatar
Claudio Saavedra committed
369
	gtkimcontextsimpleseqs.h   \
370
371
	gtkintl.h		\
	gtkkeyhash.h		\
372
	gtkmenuprivate.h	\
373
	gtkmnemonichash.h	\
Matthias Clasen's avatar
Matthias Clasen committed
374
	gtkmountoperationprivate.h \
375
	gtkpango.h		\
376
	gtkpathbar.h		\
377
	gtkplugprivate.h	\
378
	gtkprintoperation-private.h\
Matthias Clasen's avatar
Matthias Clasen committed
379
	gtkprintutils.h		\
Soeren Sandmann's avatar
Soeren Sandmann committed
380
	gtkrbtree.h		\
381
382
383
	gtkrecentchooserdefault.h \
	gtkrecentchooserprivate.h \
	gtkrecentchooserutils.h \
384
	gtksizegroup-private.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
	gtkcellview.c		\
443
444
	gtkcheckbutton.c	\
	gtkcheckmenuitem.c	\
445
	gtkcolorbutton.c	\
446
	gtkcolorsel.c		\
Owen Taylor's avatar
Owen Taylor committed
447
	gtkcolorseldialog.c	\
448
449
	gtkcombobox.c		\
	gtkcomboboxentry.c	\
450
451
452
453
454
	gtkcontainer.c		\
	gtkdialog.c		\
	gtkdrawingarea.c	\
	gtkeditable.c           \
	gtkentry.c		\
455
	gtkentrybuffer.c	\
456
	gtkentrycompletion.c	\
457
	gtkeventbox.c		\
458
	gtkexpander.c		\
459
	gtkfilechooser.c	\
460
	gtkfilechooserbutton.c	\
461
	gtkfilechooserdefault.c	\
462
	gtkfilechooserdialog.c	\
463
	gtkfilechooserembed.c	\
464
465
466
467
468
469
	gtkfilechooserentry.c	\
	gtkfilechooserutils.c	\
	gtkfilechooserwidget.c	\
	gtkfilefilter.c		\
	gtkfilesystem.c		\
	gtkfilesystemmodel.c	\
470
	gtkfixed.c		\
471
	gtkfontbutton.c         \
472
473
474
475
476
477
478
479
480
481
	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
482
	gtkhsv.c		\
483
	gtkiconcache.c		\
Matthias Clasen's avatar
Matthias Clasen committed
484
	gtkiconcachevalidator.c	\
485
	gtkiconfactory.c	\
486
	gtkicontheme.c		\
487
	gtkiconview.c		\
488
	gtkimage.c		\
489
	gtkimagemenuitem.c	\
490
491
	gtkimcontext.c		\
	gtkimcontextsimple.c	\
Owen Taylor's avatar
Owen Taylor committed
492
	gtkimmodule.c		\
493
	gtkimmulticontext.c	\
Matthias Clasen's avatar
Matthias Clasen committed
494
	gtkinfobar.c		\
495
	gtkinvisible.c		\
496
	gtkkeyhash.c		\
497
498
	gtklabel.c		\
	gtklayout.c		\
499
	gtklinkbutton.c		\
500
	gtkliststore.c		\
501
	gtkmain.c		\
Soeren Sandmann's avatar
Soeren Sandmann committed
502
	gtkmarshalers.c		\
503
504
505
506
	gtkmenu.c		\
	gtkmenubar.c		\
	gtkmenuitem.c		\
	gtkmenushell.c		\
507
	gtkmenutoolbutton.c	\
508
	gtkmessagedialog.c	\
509
	gtkmisc.c		\
510
	gtkmnemonichash.c	\
511
	gtkmodules.c		\
512
	gtkmountoperation.c     \
513
	gtknotebook.c		\
514
	gtkoffscreenwindow.c	\
515
	gtkorientable.c		\
516
	gtkpagesetup.c		\
517
	gtkpaned.c		\
518
	gtkpango.c		\
519
	gtkpapersize.c		\
520
	gtkpathbar.c		\
521
	gtkplug.c		\
522
523
	gtkprintcontext.c	\
	gtkprintoperation.c	\
524
	gtkprintoperationpreview.c	\
525
	gtkprintsettings.c	\
Matthias Clasen's avatar
Matthias Clasen committed
526
	gtkprintutils.c		\
527
	gtkprogressbar.c	\
528
	gtkradioaction.c	\
529
530
	gtkradiobutton.c	\
	gtkradiomenuitem.c	\
Soeren Sandmann's avatar
Soeren Sandmann committed
531
	gtkradiotoolbutton.c	\
532
	gtkrange.c		\
533
	gtkrbtree.c 		\
534
	gtkrc.c			\
535
	gtkrecentaction.c	\
536
537
538
539
540
541
542
543
	gtkrecentchooserdefault.c \
	gtkrecentchooserdialog.c \
	gtkrecentchoosermenu.c 	\
	gtkrecentchooserwidget.c \
	gtkrecentchooserutils.c \
	gtkrecentchooser.c 	\
	gtkrecentfilter.c 	\
	gtkrecentmanager.c 	\
544
545
	gtkruler.c		\
	gtkscale.c		\
546
	gtkscalebutton.c	\
547
548
549
550
	gtkscrollbar.c		\
	gtkscrolledwindow.c	\
	gtkselection.c		\
	gtkseparator.c		\
Soeren Sandmann's avatar
Soeren Sandmann committed
551
552
	gtkseparatormenuitem.c	\
	gtkseparatortoolitem.c	\
553
	gtksettings.c		\
554
	gtksizegroup.c		\
555
	gtksizerequest.c	\
Jaap A. Haitsma's avatar
Jaap A. Haitsma committed
556
	gtkshow.c		\
557
	gtksocket.c		\
558
	gtkspinbutton.c		\
559
	gtkspinner.c		\
Soeren Sandmann's avatar
Soeren Sandmann committed
560
	gtkstatusbar.c		\
561
	gtkstatusicon.c		\
562
	gtkstock.c		\
563
564
565
	gtkstyle.c		\
	gtktable.c		\
	gtktearoffmenuitem.c    \
Tim Janik's avatar
Tim Janik committed
566
	gtktestutils.c		\
567
568
	gtktextbtree.c		\
	gtktextbuffer.c		\
569
570
	gtktextbufferrichtext.c	\
	gtktextbufferserialize.c\
571
572
573
574
575
576
577
578
579
	gtktextchild.c		\
	gtktextdisplay.c	\
	gtktextiter.c		\
	gtktextlayout.c		\
	gtktextmark.c		\
	gtktextsegment.c	\
	gtktexttag.c		\
	gtktexttagtable.c	\
	gtktexttypes.c		\
580
	gtktextutil.c		\
581
	gtktextview.c		\
582
	gtkthemes.c		\
583
	gtktoggleaction.c	\
584
	gtktogglebutton.c	\
Soeren Sandmann's avatar
Soeren Sandmann committed
585
586
587
588
	gtktoggletoolbutton.c	\
	gtktoolbar.c		\
	gtktoolbutton.c		\
	gtktoolitem.c		\
Johannes Schmid's avatar
Johannes Schmid committed
589
590
	gtktoolitemgroup.c		\
	gtktoolpalette.c	\
591
	gtktoolshell.c		\
Kristian Rietveld's avatar
Kristian Rietveld committed
592
	gtktooltip.c		\
593
	gtktreedatalist.c	\
Havoc Pennington's avatar
Havoc Pennington committed
594
	gtktreednd.c		\
595
	gtktreemodel.c		\
596
	gtktreemodelfilter.c	\
597
	gtktreemodelsort.c	\
598
	gtktreeselection.c	\
599
	gtktreesortable.c	\
600
601
602
	gtktreestore.c		\
	gtktreeview.c		\
	gtktreeviewcolumn.c	\
603
	gtktypebuiltins.c	\
604
	gtktypeutils.c		\
605
	gtkuimanager.c		\
606
607
	gtkvbbox.c		\
	gtkvbox.c		\
608
	gtkvolumebutton.c	\
609
610
611
612
613
614
615
	gtkviewport.c		\
	gtkvpaned.c		\
	gtkvruler.c		\
	gtkvscale.c		\
	gtkvscrollbar.c		\
	gtkvseparator.c		\
	gtkwidget.c		\
616
	gtkwindow-decorate.c    \
Soeren Sandmann's avatar
Soeren Sandmann committed
617
	gtkwindow.c		\
618
	gtkwrapbox.c		\
Anders Carlsson's avatar
Anders Carlsson committed
619
	$(gtk_clipboard_dnd_c_sources)
620

621
622
gtk_c_sources = $(gtk_base_c_sources)
gtk_all_c_sources = $(gtk_base_c_sources)
623

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

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

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

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

710
711
712
713
714
# 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
715
716

# built sources that get installed with the header files
717
718
719
gtk_built_public_sources =			\
	gtktypebuiltins.h

720
# built headers that don't get installed
721
gtk_built_private_headers =			\
722
	gtkmarshalers.h				\
Claudio Saavedra's avatar
Claudio Saavedra committed
723
	gtkbuiltincache.h
724
725

gtk_built_sources =				\
726
	gtktypebuiltins.c			\
Tim Janik's avatar
Tim Janik committed
727
	gtktypefuncs.c				\
728
729
	gtkmarshalers.c				\
	${gtk_built_private_headers}		\
730
731
732
733
	${gtk_built_public_sources}

stamp_files =					\
	stamp-gtkmarshalers.h			\
Matthias Clasen's avatar
2.9.0    
Matthias Clasen committed
734
735
	stamp-gtktypebuiltins.h			\
	stamp-icons
736

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

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

#
# rules to generate built sources
#
Kristian Rietveld's avatar
Kristian Rietveld committed
761
# setup autogeneration dependencies
Tim Janik's avatar
Tim Janik committed
762
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
763
CLEANFILES = $(gen_sources)
764

765
BUILT_SOURCES = $(gtk_built_sources)
766

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

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

Tim Janik's avatar
Tim Janik committed
799
800
gtktypefuncs.c: @REBUILD@ $(top_srcdir)/gtk/*.h $(top_srcdir)/gdk/*.h Makefile
	echo '#include <gtk/gtk.h>' > xgen-gtfsrc.c && \
801
	  ${CPP} $(DEFS) $(INCLUDES) -DGTK_ENABLE_BROKEN $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) xgen-gtfsrc.c | \
Matthias Clasen's avatar
Matthias Clasen committed
802
	  $(GREP) -o '\bg[td]k_[a-zA-Z0-9_]*_get_type\b' | \