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