Zap gremlins from a recent ChangeLog entry.
[webbrowser.git] / GNUmakefile.am
blob5dcbb85ab7f49685f0602471cd6ffafb94d5d59f
1 # Top-level Makefile rule for automake
3 # Variable conventions:
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
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.
20 # Global Variables
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
29 srcdir = @srcdir@
30 VPATH = @srcdir@
32 # Directory for autogenerated sources
33 GENSOURCES := $(top_builddir)/DerivedSources
34 GENPROGRAMS := $(top_builddir)/Programs
36 # Script for creating hash tables
37 CREATE_HASH_TABLE = $(srcdir)/JavaScriptCore/create_hash_table
39 # Programs to run the WebKitGtk unit tests
40 GTESTER = gtester
41 GTESTER_REPORT = gtester-report
43 # Libraries and support components
44 bin_PROGRAMS :=
45 noinst_PROGRAMS :=
46 noinst_HEADERS :=
47 lib_LIBRARIES :=
48 IDL_BINDINGS :=
49 TEST_PROGS :=
50 POFILES :=
51 MOFILES :=
52 javascriptcore_h_api :=
53 javascriptcore_cppflags:=
54 javascriptcore_sources :=
55 javascriptcore_built_sources :=
56 javascriptcore_built_nosources :=
57 javascriptcore_dist :=
58 webcore_cppflags :=
59 webcore_sources :=
60 webcore_libadd :=
61 webcore_built_sources :=
62 webcore_built_nosources :=
63 webcore_dist :=
64 webcoregtk_cppflags :=
65 webcoregtk_sources :=
66 webkitgtk_h_api :=
67 webkitgtk_sources :=
68 webkitgtk_cppflags :=
69 webkitgtk_built_sources :=
70 webkitgtk_built_nosources :=
71 webkitgtk_cleanfiles :=
72 global_cppflags :=
73 global_cflags :=
74 global_cxxflags :=
75 corekit_cflags :=
76 corekit_cppflags :=
78 # CFLAGS/CXXFLAGS used by WebCore and WebKit
80 # gtk+.pc already include glib, cairo, freetype and pango CFLAGS
81 # Don't include them for now to reduce the noise when compiling
82 # $(GLIB_CFLAGS) $(CAIRO_CFLAGS) $(PANGO_CFLAGS)  $(FREETYPE_CFLAGS)
83 corekit_cflags += \
84         -fno-strict-aliasing \
85         $(COVERAGE_CFLAGS) \
86         $(ENCHANT_CFLAGS) \
87         $(GAIL_CFLAGS) \
88         $(GEOCLUE_CFLAGS) \
89         $(GLIB_CFLAGS) \
90         $(GSTREAMER_CFLAGS) \
91         $(GTK_CFLAGS) \
92         $(HILDON_CFLAGS) \
93         $(LIBSOUP_CFLAGS) \
94         $(LIBXML_CFLAGS) \
95         $(LIBXSLT_CFLAGS) \
96         $(SQLITE3_CFLAGS) \
97         $(UNICODE_CFLAGS) \
98         $(XT_CFLAGS)
100 # When building webcore/webkit, we want WebCore/config.h and NOT
101 # JavaScriptCore/config.h, hence, it's important that WebCore/ should come first
102 # before JavaScriptCore in the include path.
103 corekit_cppflags += \
104         $(global_cppflags) \
105         $(webcore_cppflags) \
106         $(webcoregtk_cppflags) \
107         $(javascriptcore_cppflags)
109 if TARGET_X11
110 corekit_cppflags += -DXP_UNIX
111 endif
113 # Default compiler flags
114 global_cflags += \
115         -Wall -W -Wcast-align -Wchar-subscripts -Wreturn-type \
116         -Wformat -Wformat-security -Wno-format-y2k -Wundef \
117         -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings \
118         -Wno-unused-parameter -Wno-parentheses \
119         -fno-exceptions
121 global_cxxflags += \
122         $(global_cflags) \
123         $(SYMBOL_VISIBILITY_INLINES) \
124         -fno-rtti
126 # -no-undefined required for building DLLs on Windows
127 # It breaks the build on other platforms, so we use it conditionally
128 if OS_WIN32
129 no_undefined = -no-undefined
130 endif
132 if OS_GNU
133 version_script = -Wl,--version-script,$(srcdir)/autotools/symbols.filter
134 endif
136 # Shared libraries
137 lib_LTLIBRARIES = \
138         libwebkit-1.0.la
140 # Convenience libraries
141 noinst_LTLIBRARIES = \
142         libJavaScriptCore.la \
143         libWebCore.la
145 # JavaScriptCore
146 javascriptcore_cppflags += \
147         -I$(srcdir)/JavaScriptCore/ForwardingHeaders \
148         -I$(srcdir)/JavaScriptCore/parser \
149         -I$(srcdir)/JavaScriptCore/wtf \
150         -I$(top_builddir)/DerivedSources
152 nodist_EXTRA_libJavaScriptCore_la_SOURCES = \
153         $(javascriptcore_built_nosources)
155 nodist_libJavaScriptCore_la_SOURCES = \
156         $(javascriptcore_built_sources)
158 libJavaScriptCore_ladir = $(prefix)/include/webkit-1.0/JavaScriptCore
159 libJavaScriptCore_la_HEADERS = $(javascriptcore_h_api)
161 libJavaScriptCore_la_SOURCES = \
162         $(javascriptcore_sources)
164 libJavaScriptCore_la_LIBADD = \
165         $(UNICODE_LIBS) \
166         $(GLIB_LIBS) \
167         -lpthread
169 libJavaScriptCore_la_CXXFLAGS = \
170         $(global_cxxflags) \
171         $(libJavaScriptCore_la_CFLAGS)
173 libJavaScriptCore_la_CFLAGS = \
174         -fstrict-aliasing \
175         -O3 \
176         $(global_cflags) \
177         $(GLIB_CFLAGS) \
178         $(UNICODE_CFLAGS)
180 libJavaScriptCore_la_CPPFLAGS = \
181         $(global_cppflags) \
182         $(javascriptcore_cppflags)
184 # WebCore
185 nodist_EXTRA_libWebCore_la_SOURCES = \
186         $(webcore_built_nosources)
188 nodist_libWebCore_la_SOURCES = \
189         $(webcore_built_sources)
191 libWebCore_la_SOURCES = \
192         $(webcore_sources) \
193         $(webcoregtk_sources)
195 libWebCore_la_CXXFLAGS = \
196         $(global_cxxflags) \
197         $(corekit_cflags)
199 libWebCore_la_CFLAGS = \
200         $(global_cflags) \
201         $(corekit_cflags)
203 libWebCore_la_CPPFLAGS = \
204         $(corekit_cppflags)
206 # WebKit
207 nodist_libwebkit_1_0_la_SOURCES = \
208         $(webkitgtk_built_sources)
210 libwebkit_1_0_ladir = $(prefix)/include/webkit-1.0/webkit
211 libwebkit_1_0_la_HEADERS = \
212         $(webkitgtk_h_api) \
213         WebKit/gtk/webkit/webkitenumtypes.h
215 libwebkit_1_0_la_SOURCES = \
216         $(webkitgtk_sources)
218 libwebkit_1_0_la_CXXFLAGS = \
219         $(global_cxxflags) \
220         $(corekit_cflags)
222 libwebkit_1_0_la_CFLAGS = \
223         $(global_cflags) \
224         $(corekit_cflags)
226 libwebkit_1_0_la_CPPFLAGS = \
227         $(corekit_cppflags) \
228         $(webkitgtk_cppflags) \
229         $(HILDON_CPPFLAGS)
231 libwebkit_1_0_la_LDFLAGS = \
232         -version-info @LIBWEBKITGTK_VERSION@ \
233         $(version_script) \
234         $(no_undefined)
236 libwebkit_1_0_la_LIBADD = \
237         -lpthread \
238         libJavaScriptCore.la \
239         libWebCore.la \
240         libWebCoreJS.la \
241         $(webcore_ldflags) \
242         $(CAIRO_LIBS) \
243         $(COVERAGE_LDFLAGS) \
244         $(ENCHANT_LIBS) \
245         $(FREETYPE_LIBS) \
246         $(GAIL_LIBS) \
247         $(GEOCLUE_LIBS) \
248         $(GLIB_LIBS) \
249         $(GSTREAMER_LIBS) \
250         $(GTK_LIBS) \
251         $(HILDON_LIBS) \
252         $(JPEG_LIBS) \
253         $(LIBSOUP_LIBS) \
254         $(LIBXML_LIBS) \
255         $(LIBXSLT_LIBS) \
256         $(PANGO_LIBS) \
257         $(PNG_LIBS) \
258         $(SQLITE3_LIBS) \
259         $(UNICODE_LIBS) \
260         $(XT_LIBS)
263 # Extra checks and flags
264 global_cppflags += \
265         -DBUILDING_CAIRO__=1 \
266         -DBUILDING_GTK__=1 \
267         -DWTF_CHANGES
269 if USE_ICU_UNICODE
270 global_cppflags += \
271         -DWTF_USE_ICU_UNICODE=1
272 endif
274 if USE_GLIB_UNICODE
275 # https://bugs.webkit.org/show_bug.cgi?id=15914
276 # In patch 1/4 we are compiling a hybrid version of GLib WTF Unicode
277 # functionality mixed with ICU-based text codecs and TextBreakIterator.
278 # For the transition, introducing an interim HYBRID macro.
279 # This macro is required for compiling WTF with GLib Unicode backend,
280 # but at the same time keeping ICU dependency for codecs and break iterator.
281 # It will be removed with patch 3/4 of the above bug.
282 global_cppflags += \
283         -DWTF_USE_GLIB_UNICODE=1 \
284         -DWTF_USE_GLIB_ICU_UNICODE_HYBRID=1
285 endif
287 if !ENABLE_FAST_MALLOC
288 global_cppflags += \
289         -DUSE_SYSTEM_MALLOC
290 endif
292 if !ENABLE_DEBUG
293 global_cppflags += -DNDEBUG
294 global_cflags += $(SYMBOL_VISIBILITY)
296 else
297 webcoregtk_cppflags += \
298         -DG_DISABLE_DEPRECATED \
299         -DGDK_PIXBUF_DISABLE_DEPRECATED \
300         -DGDK_DISABLE_DEPRECATED \
301         -DGTK_DISABLE_DEPRECATED \
302         -DPANGO_DISABLE_DEPRECATED
304 # Might be useful in the future
305 #       -DGDK_MULTIHEAD_SAFE \
306 #       -DGTK_MULTIHEAD_SAFE
307 endif
309 if ENABLE_COVERAGE
310 global_cppflags += \
311         -DGCC_GENERATE_TEST_COVERAGE_FILES \
312         -DGCC_INSTRUMENT_PROGRAM_FLOW_ARCS
313 endif
315 webkitgtk_h_api += \
316         $(srcdir)/WebKit/gtk/webkit/webkit.h \
317         $(srcdir)/WebKit/gtk/webkit/webkitdefines.h \
318         $(srcdir)/WebKit/gtk/webkit/webkitdownload.h \
319         $(srcdir)/WebKit/gtk/webkit/webkiterror.h \
320         $(srcdir)/WebKit/gtk/webkit/webkitnetworkrequest.h \
321         $(srcdir)/WebKit/gtk/webkit/webkitsoupauthdialog.h \
322         $(srcdir)/WebKit/gtk/webkit/webkitwebbackforwardlist.h \
323         $(srcdir)/WebKit/gtk/webkit/webkitwebframe.h \
324         $(srcdir)/WebKit/gtk/webkit/webkitwebhistoryitem.h \
325         $(srcdir)/WebKit/gtk/webkit/webkitwebinspector.h \
326         $(srcdir)/WebKit/gtk/webkit/webkitwebnavigationaction.h \
327         $(srcdir)/WebKit/gtk/webkit/webkitwebpolicydecision.h \
328         $(srcdir)/WebKit/gtk/webkit/webkitwebsettings.h \
329         $(srcdir)/WebKit/gtk/webkit/webkitwebwindowfeatures.h \
330         $(srcdir)/WebKit/gtk/webkit/webkitwebview.h \
331         $(top_builddir)/WebKit/gtk/webkit/webkitversion.h
333 webkitgtk_built_sources += \
334         DerivedSources/webkitenumtypes.cpp \
335         DerivedSources/webkitmarshal.cpp \
336         DerivedSources/webkitmarshal.h \
337         WebKit/gtk/webkit/webkitenumtypes.h
339 webkitgtk_sources += \
340         WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp \
341         WebKit/gtk/WebCoreSupport/ChromeClientGtk.h \
342         WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.cpp \
343         WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.h \
344         WebKit/gtk/WebCoreSupport/DragClientGtk.cpp \
345         WebKit/gtk/WebCoreSupport/DragClientGtk.h \
346         WebKit/gtk/WebCoreSupport/EditorClientGtk.cpp \
347         WebKit/gtk/WebCoreSupport/EditorClientGtk.h \
348         WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp \
349         WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.h \
350         WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp \
351         WebKit/gtk/WebCoreSupport/InspectorClientGtk.h \
352         WebKit/gtk/WebCoreSupport/PasteboardHelperGtk.cpp \
353         WebKit/gtk/WebCoreSupport/PasteboardHelperGtk.h \
354         WebKit/gtk/webkit/webkitapplicationcache.cpp \
355         WebKit/gtk/webkit/webkitdownload.cpp \
356         WebKit/gtk/webkit/webkiterror.cpp \
357         WebKit/gtk/webkit/webkitnetworkrequest.cpp \
358         WebKit/gtk/webkit/webkitprivate.cpp \
359         WebKit/gtk/webkit/webkitprivate.h \
360         WebKit/gtk/webkit/webkitsoupauthdialog.c \
361         WebKit/gtk/webkit/webkitversion.cpp \
362         WebKit/gtk/webkit/webkitwebbackforwardlist.cpp \
363         WebKit/gtk/webkit/webkitwebframe.cpp \
364         WebKit/gtk/webkit/webkitwebhistoryitem.cpp \
365         WebKit/gtk/webkit/webkitwebinspector.cpp \
366         WebKit/gtk/webkit/webkitwebnavigationaction.cpp \
367         WebKit/gtk/webkit/webkitwebpolicydecision.cpp \
368         WebKit/gtk/webkit/webkitwebsettings.cpp \
369         WebKit/gtk/webkit/webkitwebview.cpp \
370         WebKit/gtk/webkit/webkitwebwindowfeatures.cpp \
371         WebKit/gtk/webkit/webkitworkers.cpp
373 webkitgtk_cppflags += \
374         -DBUILDING_WEBKIT \
375         -DPACKAGE_LOCALE_DIR=\"$(localedir)\" \
376         -DDATA_DIR=\"${datadir}\" \
377         -I$(srcdir)/WebKit/gtk \
378         -I$(srcdir)/WebKit/gtk/WebCoreSupport \
379         -I$(srcdir)/WebKit/gtk/webkit \
380         -I$(top_builddir)/WebKit/gtk/webkit
382 webkitgtk_cleanfiles += \
383         $(top_builddir)/WebKit/gtk/docs/version.xml \
384         $(top_builddir)/WebKit/gtk/docs/GNUmakefile \
385         $(top_builddir)/Programs/GtkLauncher \
386         $(top_builddir)/WebKit/gtk/webkit-1.0.pc \
387         $(top_builddir)/WebKit/gtk/webkit/webkitenumtypes.h \
388         $(top_builddir)/WebKit/gtk/webkit/webkitversion.h
390 pkgconfigdir = $(libdir)/pkgconfig
391 pkgconfig_DATA = WebKit/gtk/webkit-1.0.pc
393 stamp_files := \
394         stamp-webkitmarshal.cpp \
395         stamp-webkitmarshal.h \
396         stamp-webkitenumtypes.cpp \
397         stamp-webkitenumtypes.h
399 WEBKIT_MARSHAL = $(GENSOURCES)/webkitmarshal
400 WEBKIT_MARSHAL_LIST = $(top_srcdir)/WebKit/gtk/webkitmarshal.list
402 $(WEBKIT_MARSHAL).cpp: stamp-webkitmarshal.cpp
403         @true
405 $(WEBKIT_MARSHAL).h: stamp-webkitmarshal.h
406         @true
408 stamp-webkitmarshal.cpp: $(WEBKIT_MARSHAL_LIST)
409         $(AM_V_GEN) echo "extern \"C\" {" > $(WEBKIT_MARSHAL).cpp && \
410         $(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT_MARSHAL_LIST) --body >> $(WEBKIT_MARSHAL).cpp && echo '}' >> $(WEBKIT_MARSHAL).cpp && \
411         echo timestamp > $(@F)
413 stamp-webkitmarshal.h: $(WEBKIT_MARSHAL_LIST)
414         $(AM_V_GEN)$(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT_MARSHAL_LIST) --header > $(WEBKIT_MARSHAL).h && \
415         echo timestamp > $(@F)
417 WebKit/gtk/webkit/webkitenumtypes.h: stamp-webkitenumtypes.h
418         @true
419 stamp-webkitenumtypes.h: $(webkitgtk_h_api) GNUmakefile
420         $(AM_V_GEN)glib-mkenums \
421                         --fhead "#ifndef WEBKIT_ENUM_TYPES_H\n" \
422                         --fhead "#define WEBKIT_ENUM_TYPES_H\n\n" \
423                         --fhead "#include <glib-object.h>\n\n" \
424                         --fhead "#include <webkit/webkitdefines.h>\n\n" \
425                         --fhead "G_BEGIN_DECLS\n\n" \
426                         --ftail "G_END_DECLS\n\n" \
427                         --ftail "#endif\n" \
428                         --fprod "#include <webkit/@basename@>\n\n" \
429                         --eprod "#define WEBKIT_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n\n" \
430                         --eprod "WEBKIT_API GType\n@enum_name@_get_type(void);\n\n" \
431                 $(webkitgtk_h_api) | \
432                 sed 's,web_kit,webkit,' | \
433                 sed 's,WEBKIT_TYPE_KIT,WEBKIT_TYPE,' \
434                 > xgen-gth \
435         && (cmp -s xgen-gth WebKit/gtk/webkit/webkitenumtypes.h || cp xgen-gth WebKit/gtk/webkit/webkitenumtypes.h) \
436         && rm -f xgen-gth \
437         && echo timestamp > $(@F)
439 DerivedSources/webkitenumtypes.cpp: $(webkitgtk_h_api) GNUmakefile
440         $(AM_V_GEN)glib-mkenums \
441                         --fhead "#include <config.h>\n" \
442                         --fhead "#include <glib-object.h>\n" \
443                         --fhead "#include \"$(top_builddir)/WebKit/gtk/webkit/webkitenumtypes.h\"\n\n" \
444                         --fhead "extern \"C\" {\n\n" \
445                         --fprod "\n/* enumerations from \"@filename@\" */" \
446                         --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
447                         --vprod "    { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
448                         --vtail "    { 0, NULL, NULL }\n};\n\n" \
449                         --vtail "GType @enum_name@_get_type(void)\n{\n" \
450                         --vtail "    static GType type = 0;\n\n" \
451                         --vtail "    if (!type)\n" \
452                         --vtail "        type = g_@type@_register_static(\"@EnumName@\", _@enum_name@_values);\n\n" \
453                         --vtail "    return type;\n}\n\n" \
454                         --ftail "}\n" \
455                 $(webkitgtk_h_api) | \
456                 sed 's,web_kit,webkit,' \
457                 > xgen-gtc \
458         && cp xgen-gtc $@ \
459         && rm -f xgen-gtc
461 # Files that will be distributed
462 EXTRA_DIST = \
463         $(srcdir)/gtk-doc.make \
464         WebKit/LICENSE \
465         $(javascriptcore_dist) \
466         $(webcore_dist) \
467         $(srcdir)/autotools/symbols.filter \
468         $(srcdir)/WebKit/gtk/ChangeLog \
469         $(srcdir)/WebKit/gtk/NEWS \
470         $(srcdir)/WebKit/gtk/webkitmarshal.list \
471         $(srcdir)/WebKit/gtk/docs/GNUmakefile.* \
472         $(srcdir)/WebKit/gtk/docs/webkitenvironment.xml \
473         $(srcdir)/WebKit/gtk/docs/webkitgtk-docs.sgml \
474         $(srcdir)/WebKit/gtk/docs/webkitgtk-sections.txt \
475         $(srcdir)/WebKit/gtk/docs/version.xml.in \
476         $(srcdir)/WebKit/gtk/po/* \
477         $(srcdir)/WebKit/gtk/resources/*
479 # extra resource files
480 resourcesdir = ${datadir}/webkit-1.0/resources
481 dist_resources_DATA = \
482         $(shell ls $(srcdir)/WebKit/gtk/resources/*.html)
484 # END WEBKIT GTK+
486 # Files that will be cleaned
487 MAINTAINERCLEANFILES := $(stamp_files) $(BUILT_SOURCES) doltcompile doltlibtool
488 DISTCLEANFILES := $(stamp_files) $(BUILT_SOURCES) doltcompile doltlibtool
489 CLEANFILES := $(stamp_files) $(BUILT_SOURCES)
491 # Include module makefiles
492 include JavaScriptCore/GNUmakefile.am
493 include WebCore/GNUmakefile.am
494 include WebKitTools/GNUmakefile.am
495 include WebKit/gtk/po/GNUmakefile.am
497 # Build unit tests
498 noinst_PROGRAMS += $(TEST_PROGS)
500 webkit_tests_cflags = \
501         -fno-strict-aliasing \
502         -I$(srcdir)/JavaScriptCore/ForwardingHeaders \
503         -I$(srcdir)/WebKit/gtk \
504         -I$(top_builddir)/WebKit/gtk \
505         $(global_cflags) \
506         $(GLIB_CFLAGS) \
507         $(GTK_CFLAGS) \
508         $(LIBSOUP_CFLAGS)
510 webkit_tests_ldadd = \
511         libwebkit-1.0.la \
512         $(GTK_LIBS)     \
513         $(GLIB_LIBS) \
514         $(LIBSOUP_LIBS)
516 webkit_tests_ldflags = \
517         -no-install \
518         -no-fast-install
520 TEST_PROGS += Programs/unittests/testhttpbackend \
521         Programs/unittests/testloading \
522         Programs/unittests/testnetworkrequest \
523         Programs/unittests/testwebframe \
524         Programs/unittests/testwebbackforwardlist \
525         Programs/unittests/testwebhistoryitem \
526         Programs/unittests/testdownload \
527         Programs/unittests/testatk \
528         Programs/unittests/testwebsettings
530 # Add additional tests here
531 Programs_unittests_testhttpbackend_SOURCES = WebKit/gtk/tests/testhttpbackend.c
532 Programs_unittests_testhttpbackend_CFLAGS = $(webkit_tests_cflags)
533 Programs_unittests_testhttpbackend_LDADD = $(webkit_tests_ldadd)
534 Programs_unittests_testhttpbackend_LDFLAGS = $(webkit_tests_ldflags)
536 Programs_unittests_testloading_SOURCES = WebKit/gtk/tests/testloading.c
537 Programs_unittests_testloading_CFLAGS = $(webkit_tests_cflags)
538 Programs_unittests_testloading_LDADD = $(webkit_tests_ldadd)
539 Programs_unittests_testloading_LDFLAGS = $(webkit_tests_ldflags)
541 Programs_unittests_testnetworkrequest_SOURCES = WebKit/gtk/tests/testnetworkrequest.c
542 Programs_unittests_testnetworkrequest_CFLAGS = $(webkit_tests_cflags)
543 Programs_unittests_testnetworkrequest_LDADD = $(webkit_tests_ldadd)
544 Programs_unittests_testnetworkrequest_LDFLAGS = $(webkit_tests_ldflags)
546 Programs_unittests_testwebframe_SOURCES = WebKit/gtk/tests/testwebframe.c
547 Programs_unittests_testwebframe_CFLAGS = $(webkit_tests_cflags)
548 Programs_unittests_testwebframe_LDADD = $(webkit_tests_ldadd)
549 Programs_unittests_testwebframe_LDFLAGS = $(webkit_tests_ldflags)
551 Programs_unittests_testwebbackforwardlist_SOURCES = WebKit/gtk/tests/testwebbackforwardlist.c
552 Programs_unittests_testwebbackforwardlist_CFLAGS = $(webkit_tests_cflags)
553 Programs_unittests_testwebbackforwardlist_LDADD = $(webkit_tests_ldadd)
554 Programs_unittests_testwebbackforwardlist_LDFLAGS = $(webkit_tests_ldflags)
556 Programs_unittests_testwebhistoryitem_SOURCES = WebKit/gtk/tests/testwebhistoryitem.c
557 Programs_unittests_testwebhistoryitem_CFLAGS = $(webkit_tests_cflags)
558 Programs_unittests_testwebhistoryitem_LDADD = $(webkit_tests_ldadd)
559 Programs_unittests_testwebhistoryitem_LDFLAGS = $(webkit_tests_ldflags)
561 Programs_unittests_testdownload_SOURCES = WebKit/gtk/tests/testdownload.c
562 Programs_unittests_testdownload_CFLAGS = $(webkit_tests_cflags)
563 Programs_unittests_testdownload_LDADD = $(webkit_tests_ldadd)
564 Programs_unittests_testdownload_LDFLAGS = $(webkit_tests_ldflags)
566 Programs_unittests_testatk_SOURCES = WebKit/gtk/tests/testatk.c
567 Programs_unittests_testatk_CFLAGS = $(webkit_tests_cflags)
568 Programs_unittests_testatk_LDADD = $(webkit_tests_ldadd)
569 Programs_unittests_testatk_LDFLAGS = $(webkit_tests_ldflags)
571 Programs_unittests_testwebsettings_SOURCES = WebKit/gtk/tests/testwebsettings.c
572 Programs_unittests_testwebsettings_CFLAGS = $(webkit_tests_cflags)
573 Programs_unittests_testwebsettings_LDADD = $(webkit_tests_ldadd)
574 Programs_unittests_testwebsettings_LDFLAGS = $(webkit_tests_ldflags)
576 # Autogenerated sources
577 BUILT_SOURCES := \
578         $(javascriptcore_built_sources) \
579         $(javascriptcore_built_nosources) \
580         $(webcore_built_sources) \
581         $(webcore_built_nosources) \
582         $(webkitgtk_built_sources) \
583         $(webkitgtk_built_nosources)
585 # Project-wide clean rules
586 CLEANFILES += \
587         $(webkitgtk_cleanfiles)
589 MAINTAINERCLEANFILES += \
590         $(srcdir)/aconfig.h.in \
591         $(srcdir)/autotools/config.* \
592         $(srcdir)/autotools/compile \
593         $(srcdir)/autotools/depcomp \
594         $(srcdir)/autotools/install-sh \
595         $(srcdir)/autotools/missing \
596         $(srcdir)/configure \
597         $(srcdir)/GNUmakefile.in \
598         $(srcdir)/INSTALL \
599         $(srcdir)/README \
600         $(top_builddir)/config.*
602 # Older automake versions (1.7) place Plo files in a different place so we need
603 # to create the output directory manually.
604 all-local: stamp-po
605         $(mkdir_p) $(top_builddir)/$(DEPDIR)/DerivedSources
607 # remove built sources and program directories
608 clean-local:
609         -rm -rf $(GENPROGRAMS)
611 maintainer-clean-local: distclean-local
613 distclean-local:
614         -rm -rf $(GENSOURCES) $(GENPROGRAMS)
616 install-data-local: po-install-data-local
618 installdirs-data-local: po-installdirs-data-local
620 uninstall-local: po-uninstall-local
622 # Run all tests in cwd
623 # FIXME: we should run this under xvfb
624 test: $(TEST_PROGS)
625         $(GTESTER) --verbose $(TEST_PROGS);
627 # test-report: run tests in cwd and generate report
628 # full-report: run tests in cwd with -m perf and -m slow and generate report
629 # perf-report: run tests in cwd with -m perf and generate report
630 test-report full-report perf-report: $(TEST_PROGS)
631         @ case $@ in \
632           test-report) test_options="-k";; \
633           full-report) test_options="-k -m=perf";; \
634           perf-report) test_options="-k -m=perf -m=slow";; \
635           esac ; \
636           $(GTESTER) --verbose $$test_options -o test-report.xml $(TEST_PROGS); \
637           $(GTESTER_REPORT) test-report.xml > test-report.html ;
639 .PHONY: test test-report perf-report full-report
640 check-local: test