2009-05-12 Jan Michael Alonzo <jmalonzo@webkit.org>
[WebKit-https.git] / GNUmakefile.am
1 # Top-level Makefile rule for automake
2 #
3 # Variable conventions:
4 #
5 # _h_api            = API headers that will be installed and included in the distribution
6 # _cppflags         = flags that will be passed to the C/CXX Preprocessor
7 # _sources          = sources that will be compiled and included in the distribution
8 # _built_sources    = files that will be autogenerated by the build system and
9 #                     will be part of the _SOURCES primary
10 # _built_nosources  = files that are autogenerated but are not part of the
11 #                     _SOURCES primary
12 # _cleanfiles       = files that will be removed by the clean target
13 #
14 # Sources, headers, flags, etc... should be added to the respective variables
15 # with the above suffix, e.g, webcore-specific sources should go to
16 # webcore_sources, gtk port API and WebCoreSupport parts to webkitgtk_sources,
17 # etc... The only exceptions are the global variables. See Global Variables
18 # below.
19 #
20 # Global Variables
21 #
22 # global_cppflags   = CPPFLAGS that apply to JSC, WebCore, and to any
23 #                     specific port
24 # global_cflags     = CFLAGS that apply to JSC, WebCore, and to
25 #                     any specific port
26 # global_cxxflags   = CXXFLAGS that apply to JSC, WebCore, and to any
27 #                     specific port
28
29 srcdir = @srcdir@
30 VPATH = @srcdir@
31
32 # Directory for autogenerated sources
33 GENSOURCES := $(top_builddir)/DerivedSources
34 GENPROGRAMS := $(top_builddir)/Programs
35
36 # Script for creating hash tables
37 CREATE_HASH_TABLE = $(srcdir)/JavaScriptCore/create_hash_table
38
39 # Libraries and support components
40 bin_PROGRAMS :=
41 noinst_PROGRAMS :=
42 noinst_HEADERS :=
43 lib_LIBRARIES :=
44 IDL_BINDINGS :=
45 TEST_PROGS :=
46 POFILES :=
47 MOFILES :=
48
49 # local vars used throughout the build
50 javascriptcore_h_api :=
51 javascriptcore_cppflags:=
52 javascriptcore_sources :=
53 javascriptcore_built_sources :=
54 javascriptcore_built_nosources :=
55 javascriptcore_dist :=
56 webcore_cppflags :=
57 webcore_ldflags :=
58 webcore_sources :=
59 webcore_built_sources :=
60 webcore_built_nosources :=
61 webcore_dist :=
62 webcoregtk_cppflags :=
63 webcoregtk_sources :=
64 webkitgtk_h_api :=
65 webkitgtk_sources :=
66 webkitgtk_cppflags :=
67 webkitgtk_built_sources :=
68 webkitgtk_built_nosources :=
69 webkitgtk_cleanfiles :=
70
71 no_undefined :=
72 version_script :=
73
74 # Global flags to CPP
75 global_cppflags :=
76
77 global_cppflags += \
78         -DWTF_USE_ICU_UNICODE=1
79
80 # Default compiler flags
81 global_cflags := \
82         -Wall -W -Wcast-align -Wchar-subscripts -Wreturn-type \
83         -Wformat -Wformat-security -Wno-format-y2k -Wundef \
84         -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings \
85         -Wno-unused-parameter -Wno-parentheses \
86         -fno-exceptions
87
88 global_cxxflags := \
89         $(SYMBOL_VISIBILITY_INLINES) \
90         -fno-rtti
91
92 if !ENABLE_DEBUG
93 global_cflags += \
94         $(SYMBOL_VISIBILITY)
95 endif
96
97 # -no-undefined required for building DLLs on Windows
98 # It breaks the build on other platforms, so we use it conditionally
99 if OS_WIN32
100 no_undefined += -no-undefined
101 endif
102
103 if OS_GNU
104 version_script += -Wl,--version-script,$(srcdir)/autotools/symbols.filter
105 endif
106
107
108 # CFLAGS/CXXFLAGS used by WebCore and WebKit
109 #
110 # Gtk+.pc already include glib, cairo, freetype and pango CFLAGS
111 # Don't include them for now to reduce the noise when compiling
112 # $(GLIB_CFLAGS) $(CAIRO_CFLAGS) $(PANGO_CFLAGS)  $(FREETYPE_CFLAGS)
113 webkit_cflags := \
114         $(COVERAGE_CFLAGS) \
115         $(ENCHANT_CFLAGS) \
116         $(GEOCLUE_CFLAGS) \
117         $(GNOMEKEYRING_CFLAGS) \
118         $(GSTREAMER_CFLAGS) \
119         $(GTK_CFLAGS) \
120         $(HILDON_CFLAGS) \
121         $(LIBSOUP_CFLAGS) \
122         $(LIBXML_CFLAGS) \
123         $(LIBXSLT_CFLAGS) \
124         $(SQLITE3_CFLAGS) \
125         $(UNICODE_CFLAGS) \
126         $(XT_CFLAGS)
127
128 webkit_cppflags := \
129         $(global_cppflags) \
130         $(javascriptcore_cppflags) \
131         $(webcore_cppflags) \
132         $(webcoregtk_cppflags)
133
134 # Shared libraries
135 lib_LTLIBRARIES = \
136         libwebkit-1.0.la
137
138 # Convenience libraries
139 noinst_LTLIBRARIES = \
140         libJavaScriptCore.la \
141         libWebCore.la
142
143 # JavaScriptCore convenience lib
144 javascriptcore_cppflags += \
145         -I$(srcdir)/JavaScriptCore \
146         -I$(srcdir)/JavaScriptCore/ForwardingHeaders \
147         -I$(srcdir)/JavaScriptCore/parser \
148         -I$(srcdir)/JavaScriptCore/wtf \
149         -I$(top_builddir)/DerivedSources
150
151 # The variables above are already included below so no need to touch
152 # these variables unless you really have to
153 nodist_EXTRA_libJavaScriptCore_la_SOURCES = \
154         $(javascriptcore_built_nosources)
155
156 nodist_libJavaScriptCore_la_SOURCES = \
157         $(javascriptcore_built_sources)
158
159 libJavaScriptCore_ladir = $(prefix)/include/webkit-1.0/JavaScriptCore
160 libJavaScriptCore_la_HEADERS = $(javascriptcore_h_api)
161
162 libJavaScriptCore_la_SOURCES = \
163         $(javascriptcore_sources)
164
165 libJavaScriptCore_la_CXXFLAGS = \
166         $(global_cxxflags) \
167         $(libJavaScriptCore_la_CFLAGS)
168
169 libJavaScriptCore_la_CFLAGS = \
170         -fstrict-aliasing \
171         -O3 \
172         $(global_cflags) \
173         $(GLIB_CFLAGS) \
174         $(UNICODE_CFLAGS)
175
176 libJavaScriptCore_la_CPPFLAGS = \
177         $(global_cppflags) \
178         $(javascriptcore_cppflags)
179
180 libJavaScriptCore_la_LIBADD = \
181         $(GLIB_LIBS) \
182         $(UNICODE_LIBS)
183
184 # WebCore convenience lib
185 nodist_EXTRA_libWebCore_la_SOURCES = \
186         $(webcore_built_nosources)
187
188 nodist_libWebCore_la_SOURCES = \
189         $(webcore_built_sources)
190
191 libWebCore_la_SOURCES = \
192         $(webcore_sources) \
193         $(webcoregtk_sources)
194
195 libWebCore_la_CPPFLAGS = \
196         $(webkit_cppflags)
197
198 libWebCore_la_CXXFLAGS = \
199         $(global_cxxflags) \
200         $(webkit_cflags)
201
202 libWebCore_la_CFLAGS = \
203         -fno-strict-aliasing \
204         $(global_cflags) \
205         $(webkit_cflags)
206
207 # WebKit convenience lib
208 nodist_libwebkit_1_0_la_SOURCES = \
209         $(webkitgtk_built_sources)
210
211 libwebkit_1_0_ladir = $(prefix)/include/webkit-1.0/webkit
212 libwebkit_1_0_la_HEADERS = \
213         $(webkitgtk_h_api) \
214         WebKit/gtk/webkit/webkitenumtypes.h
215
216 libwebkit_1_0_la_SOURCES = \
217         $(webkitgtk_sources)
218
219 libwebkit_1_0_la_CXXFLAGS = \
220         $(global_cxxflags) \
221         $(webkit_cflags)
222
223 libwebkit_1_0_la_CFLAGS = \
224         -fno-strict-aliasing \
225         $(global_cflags) \
226         $(webkit_cflags)
227
228 libwebkit_1_0_la_CPPFLAGS = \
229         $(webkit_cppflags) \
230         $(webkitgtk_cppflags) \
231         $(HILDON_CPPFLAGS)
232
233 libwebkit_1_0_la_LIBADD = \
234         $(webcore_ldflags) \
235         $(CAIRO_LIBS) \
236         $(COVERAGE_LDFLAGS) \
237         $(ENCHANT_LIBS) \
238         $(FREETYPE_LIBS) \
239         $(GEOCLUE_LIBS) \
240         $(GLIB_LIBS) \
241         $(GNOMEKEYRING_LIBS) \
242         $(GSTREAMER_LIBS) \
243         $(GTK_LIBS) \
244         $(HILDON_LIBS) \
245         $(JPEG_LIBS) \
246         $(LIBSOUP_LIBS) \
247         $(LIBXML_LIBS) \
248         $(LIBXSLT_LIBS) \
249         $(PANGO_LIBS) \
250         $(PNG_LIBS) \
251         $(SQLITE3_LIBS) \
252         $(UNICODE_LIBS) \
253         $(XT_LIBS) \
254         -lpthread \
255         libJavaScriptCore.la \
256         libWebCoreJS.la \
257         libWebCore.la
258
259  libwebkit_1_0_la_LDFLAGS = \
260         -version-info @LIBWEBKITGTK_VERSION@ \
261         $(version_script) \
262         $(no_undefined)
263
264 #
265 # Extra checks and flags
266 global_cppflags += \
267         -DBUILDING_CAIRO__=1 \
268         -DBUILDING_GTK__=1 \
269         -DWTF_CHANGES \
270         -DPACKAGE_LOCALE_DIR=\"$(localedir)\"
271
272 if !ENABLE_FAST_MALLOC
273 global_cppflags += \
274         -DUSE_SYSTEM_MALLOC
275 endif
276
277 if TARGET_X11
278 global_cppflags += -DXP_UNIX
279 endif
280
281 if !ENABLE_DEBUG
282 global_cppflags += -DNDEBUG
283 else
284 webcoregtk_cppflags += \
285         -DG_DISABLE_DEPRECATED \
286         -DGDK_PIXBUF_DISABLE_DEPRECATED \
287         -DGDK_DISABLE_DEPRECATED \
288         -DGTK_DISABLE_DEPRECATED \
289         -DPANGO_DISABLE_DEPRECATED
290
291 # Might be useful in the future
292 #       -DGDK_MULTIHEAD_SAFE \
293 #       -DGTK_MULTIHEAD_SAFE
294 endif
295
296 if !ENABLE_DATABASE
297 global_cppflags += -DENABLE_DATABASE=0
298 endif
299
300 if !ENABLE_ICONDATABASE
301 global_cppflags += -DENABLE_ICONDATABASE=0
302 endif
303
304 if ENABLE_COVERAGE
305 global_cppflags += \
306         -DGCC_GENERATE_TEST_COVERAGE_FILES \
307         -DGCC_INSTRUMENT_PROGRAM_FLOW_ARCS
308 endif
309
310 if ENABLE_VIDEO
311 webcore_ldflags += -lgstinterfaces-0.10 -lgstvideo-0.10
312 endif
313
314 webkitgtk_h_api += \
315         WebKit/gtk/webkit/webkit.h \
316         WebKit/gtk/webkit/webkitdefines.h \
317         WebKit/gtk/webkit/webkitdownload.h \
318         WebKit/gtk/webkit/webkiterror.h \
319         WebKit/gtk/webkit/webkitnetworkrequest.h \
320         WebKit/gtk/webkit/webkitsoupauthdialog.h \
321         WebKit/gtk/webkit/webkitversion.h \
322         WebKit/gtk/webkit/webkitwebbackforwardlist.h \
323         WebKit/gtk/webkit/webkitwebframe.h \
324         WebKit/gtk/webkit/webkitwebhistoryitem.h \
325         WebKit/gtk/webkit/webkitwebinspector.h \
326         WebKit/gtk/webkit/webkitwebnavigationaction.h \
327         WebKit/gtk/webkit/webkitwebpolicydecision.h \
328         WebKit/gtk/webkit/webkitwebsettings.h \
329         WebKit/gtk/webkit/webkitwebwindowfeatures.h \
330         WebKit/gtk/webkit/webkitwebview.h
331
332 webkitgtk_built_sources += \
333         DerivedSources/webkitenumtypes.cpp \
334         DerivedSources/webkitmarshal.cpp \
335         DerivedSources/webkitmarshal.h \
336         WebKit/gtk/webkit/webkitenumtypes.h
337
338 webkitgtk_sources += \
339         WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp \
340         WebKit/gtk/WebCoreSupport/ChromeClientGtk.h \
341         WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.cpp \
342         WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.h \
343         WebKit/gtk/WebCoreSupport/DragClientGtk.cpp \
344         WebKit/gtk/WebCoreSupport/DragClientGtk.h \
345         WebKit/gtk/WebCoreSupport/EditorClientGtk.cpp \
346         WebKit/gtk/WebCoreSupport/EditorClientGtk.h \
347         WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp \
348         WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.h \
349         WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp \
350         WebKit/gtk/WebCoreSupport/InspectorClientGtk.h \
351         WebKit/gtk/WebCoreSupport/PasteboardHelperGtk.cpp \
352         WebKit/gtk/WebCoreSupport/PasteboardHelperGtk.h \
353         WebKit/gtk/webkit/webkitdownload.cpp \
354         WebKit/gtk/webkit/webkiterror.cpp \
355         WebKit/gtk/webkit/webkitnetworkrequest.cpp \
356         WebKit/gtk/webkit/webkitprivate.cpp \
357         WebKit/gtk/webkit/webkitprivate.h \
358         WebKit/gtk/webkit/webkitsoupauthdialog.c \
359         WebKit/gtk/webkit/webkitversion.cpp \
360         WebKit/gtk/webkit/webkitwebbackforwardlist.cpp \
361         WebKit/gtk/webkit/webkitwebframe.cpp \
362         WebKit/gtk/webkit/webkitwebhistoryitem.cpp \
363         WebKit/gtk/webkit/webkitwebinspector.cpp \
364         WebKit/gtk/webkit/webkitwebnavigationaction.cpp \
365         WebKit/gtk/webkit/webkitwebpolicydecision.cpp \
366         WebKit/gtk/webkit/webkitwebsettings.cpp \
367         WebKit/gtk/webkit/webkitwebview.cpp \
368         WebKit/gtk/webkit/webkitwebwindowfeatures.cpp
369
370 webkitgtk_cppflags += \
371         -DBUILDING_WEBKIT \
372         -I$(srcdir)/WebKit/gtk \
373         -I$(srcdir)/WebKit/gtk/WebCoreSupport \
374         -I$(srcdir)/WebKit/gtk/webkit \
375         -I$(top_builddir)/WebKit/gtk/webkit
376
377 webkitgtk_cleanfiles += \
378         $(top_builddir)/Programs/GtkLauncher \
379         $(top_builddir)/WebKit/gtk/webkit-1.0.pc \
380         $(top_builddir)/WebKit/gtk/webkit/webkitenumtypes.h
381
382 pkgconfigdir = $(libdir)/pkgconfig
383 pkgconfig_DATA = WebKit/gtk/webkit-1.0.pc
384
385 stamp_files := \
386         stamp-webkitmarshal.cpp \
387         stamp-webkitmarshal.h \
388         stamp-webkitenumtypes.cpp \
389         stamp-webkitenumtypes.h
390
391 WEBKIT_MARSHAL = $(GENSOURCES)/webkitmarshal
392 WEBKIT_MARSHAL_LIST = $(top_srcdir)/WebKit/gtk/webkitmarshal.list
393
394 $(WEBKIT_MARSHAL).cpp: stamp-webkitmarshal.cpp
395         @true
396
397 $(WEBKIT_MARSHAL).h: stamp-webkitmarshal.h
398         @true
399
400 stamp-webkitmarshal.cpp: $(WEBKIT_MARSHAL_LIST)
401         echo "extern \"C\" {" > $(WEBKIT_MARSHAL).cpp && \
402         $(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT_MARSHAL_LIST) --body >> $(WEBKIT_MARSHAL).cpp && echo '}' >> $(WEBKIT_MARSHAL).cpp && \
403         echo timestamp > $(@F)
404
405 stamp-webkitmarshal.h: $(WEBKIT_MARSHAL_LIST)
406         $(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT_MARSHAL_LIST) --header > $(WEBKIT_MARSHAL).h && \
407         echo timestamp > $(@F)
408
409 WebKit/gtk/webkit/webkitenumtypes.h: stamp-webkitenumtypes.h
410         @true
411 stamp-webkitenumtypes.h: $(webkitgtk_h_api) GNUmakefile
412         (cd $(srcdir) \
413         && glib-mkenums \
414                         --fhead "#ifndef WEBKIT_ENUM_TYPES_H\n" \
415                         --fhead "#define WEBKIT_ENUM_TYPES_H\n\n" \
416                         --fhead "#include <glib-object.h>\n\n" \
417                         --fhead "#include <webkit/webkitdefines.h>\n\n" \
418                         --fhead "G_BEGIN_DECLS\n\n" \
419                         --ftail "G_END_DECLS\n\n" \
420                         --ftail "#endif\n" \
421                         --fprod "#include <@filename@>\n\n" \
422                         --eprod "#define WEBKIT_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n\n" \
423                         --eprod "WEBKIT_API GType\n@enum_name@_get_type(void);\n\n" \
424                 $(webkitgtk_h_api) | \
425                 sed 's,WebKit/gtk/,,' | \
426                 sed 's,web_kit,webkit,' | \
427                 sed 's,WEBKIT_TYPE_KIT,WEBKIT_TYPE,' \
428                 ) > xgen-gth \
429         && (cmp -s xgen-gth WebKit/gtk/webkit/webkitenumtypes.h || cp xgen-gth WebKit/gtk/webkit/webkitenumtypes.h) \
430         && rm -f xgen-gth \
431         && echo timestamp > $(@F)
432
433 DerivedSources/webkitenumtypes.cpp: $(webkitgtk_h_api) GNUmakefile
434         (cd $(srcdir) \
435         && glib-mkenums \
436                         --fhead "#include <config.h>\n" \
437                         --fhead "#include <glib-object.h>\n" \
438                         --fhead "#include \"$(top_builddir)/WebKit/gtk/webkit/webkitenumtypes.h\"\n\n" \
439                         --fhead "extern \"C\" {\n\n" \
440                         --fprod "\n/* enumerations from \"@filename@\" */" \
441                         --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
442                         --vprod "    { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
443                         --vtail "    { 0, NULL, NULL }\n};\n\n" \
444                         --vtail "GType @enum_name@_get_type(void)\n{\n" \
445                         --vtail "    static GType type = 0;\n\n" \
446                         --vtail "    if (!type)\n" \
447                         --vtail "        type = g_@type@_register_static(\"@EnumName@\", _@enum_name@_values);\n\n" \
448                         --vtail "    return type;\n}\n\n" \
449                         --ftail "}\n" \
450                 $(webkitgtk_h_api) | \
451                 sed 's,web_kit,webkit,' \
452                 ) > xgen-gtc \
453         && cp xgen-gtc $@ \
454         && rm -f xgen-gtc
455
456 # Files that will be distributed
457 EXTRA_DIST = \
458         $(srcdir)/gtk-doc.make \
459         WebKit/LICENSE \
460         $(javascriptcore_dist) \
461         $(webcore_dist) \
462         $(srcdir)/autotools/symbols.filter \
463         $(srcdir)/WebKit/gtk/ChangeLog \
464         $(srcdir)/WebKit/gtk/NEWS \
465         $(srcdir)/WebKit/gtk/webkitmarshal.list \
466         $(srcdir)/WebKit/gtk/docs/GNUmakefile.* \
467         $(srcdir)/WebKit/gtk/docs/webkitenvironment.xml \
468         $(srcdir)/WebKit/gtk/docs/webkitgtk-docs.sgml \
469         $(srcdir)/WebKit/gtk/docs/webkitgtk-sections.txt \
470         $(srcdir)/WebKit/gtk/docs/version.xml.in \
471         $(srcdir)/WebKit/gtk/po/* \
472         $(srcdir)/WebKit/gtk/resources/*
473
474 # extra resource files
475 resourcesdir = ${datadir}/webkit-1.0/resources
476 dist_resources_DATA = \
477         $(shell ls $(srcdir)/WebKit/gtk/resources/*.html)
478
479 # END WEBKIT GTK+
480
481 # Files that will be cleaned
482 MAINTAINERCLEANFILES := $(stamp_files) $(BUILT_SOURCES) doltcompile doltlibtool WebKit/gtk/docs/version.xml WebKit/gtk/docs/GNUmakefile
483 DISTCLEANFILES := $(stamp_files) $(BUILT_SOURCES) doltcompile doltlibtool WebKit/gtk/docs/version.xml WebKit/gtk/docs/GNUmakefile
484 CLEANFILES := $(stamp_files) $(BUILT_SOURCES) WebKit/gtk/docs/GNUmakefile
485
486 # Include module makefiles
487 include JavaScriptCore/GNUmakefile.am
488 include WebCore/GNUmakefile.am
489 include WebKitTools/GNUmakefile.am
490 include WebKit/gtk/po/GNUmakefile.am
491
492 # Build unit tests
493 noinst_PROGRAMS += $(TEST_PROGS)
494
495 webkit_tests_cflags = \
496         -fno-strict-aliasing \
497         -O2 \
498         -I$(srcdir)/JavaScriptCore/ForwardingHeaders \
499         -I$(srcdir)/WebKit/gtk \
500         -I$(top_builddir)/WebKit/gtk \
501         $(global_cflags) \
502         $(GLIB_CFLAGS) \
503         $(GTK_CFLAGS) \
504         $(LIBSOUP_CFLAGS)
505
506 webkit_tests_ldadd = \
507         libwebkit-1.0.la \
508         $(GTK_LIBS)     \
509         $(GLIB_LIBS) \
510         $(LIBSOUP_LIBS)
511
512 TEST_PROGS += Programs/unittests/testwebframe \
513         Programs/unittests/testwebbackforwardlist \
514         Programs/unittests/testwebhistoryitem \
515         Programs/unittests/testdownload
516
517 # Add additional tests here
518 Programs_unittests_testwebframe_SOURCES = WebKit/gtk/tests/testwebframe.c
519 Programs_unittests_testwebframe_CFLAGS = $(webkit_tests_cflags)
520 Programs_unittests_testwebframe_LDADD = $(webkit_tests_ldadd)
521
522 Programs_unittests_testwebbackforwardlist_SOURCES = WebKit/gtk/tests/testwebbackforwardlist.c
523 Programs_unittests_testwebbackforwardlist_CFLAGS = $(webkit_tests_cflags)
524 Programs_unittests_testwebbackforwardlist_LDADD = $(webkit_tests_ldadd)
525
526 Programs_unittests_testwebhistoryitem_SOURCES = WebKit/gtk/tests/testwebhistoryitem.c
527 Programs_unittests_testwebhistoryitem_CFLAGS = $(webkit_tests_cflags)
528 Programs_unittests_testwebhistoryitem_LDADD = $(webkit_tests_ldadd)
529
530 Programs_unittests_testdownload_SOURCES = WebKit/gtk/tests/testdownload.c
531 Programs_unittests_testdownload_CFLAGS = $(webkit_tests_cflags)
532 Programs_unittests_testdownload_LDADD = $(webkit_tests_ldadd)
533
534 # Autogenerated sources
535 BUILT_SOURCES := \
536         $(javascriptcore_built_sources) \
537         $(javascriptcore_built_nosources) \
538         $(webcore_built_sources) \
539         $(webcore_built_nosources) \
540         $(webkitgtk_built_sources) \
541         $(webkitgtk_built_nosources)
542
543 # Project-wide clean rules
544 CLEANFILES += \
545         $(webkitgtk_cleanfiles)
546
547 MAINTAINERCLEANFILES += \
548         $(srcdir)/aconfig.h.in \
549         $(srcdir)/autotools/config.* \
550         $(srcdir)/autotools/compile \
551         $(srcdir)/autotools/depcomp \
552         $(srcdir)/autotools/install-sh \
553         $(srcdir)/autotools/missing \
554         $(srcdir)/configure \
555         $(srcdir)/GNUmakefile.in \
556         $(srcdir)/INSTALL \
557         $(srcdir)/README \
558         $(top_builddir)/config.*
559
560 # Older automake versions (1.7) place Plo files in a different place so we need
561 # to create the output directory manually.
562 all-local: stamp-po
563         $(mkdir_p) $(top_builddir)/$(DEPDIR)/DerivedSources
564
565 # remove built sources and program directories
566 clean-local:
567         -rm -rf $(GENPROGRAMS)
568
569 maintainer-clean-local: distclean-local
570
571 distclean-local:
572         -rm -rf $(GENSOURCES) $(GENPROGRAMS)
573
574 install-data-local: po-install-data-local
575
576 installdirs-data-local: po-installdirs-data-local
577
578 uninstall-local: po-uninstall-local