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