GNUmakefile.am 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. include $(srcdir)/Source/JavaScriptCore/GNUmakefile.list.am
  2. lib_LTLIBRARIES += \
  3. libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la
  4. # We are going to make everything public for now. When
  5. # https://bugs.webkit.org/show_bug.cgi?id=27551 is fixed we'll able to
  6. # simply rely on the usual symbol visibility flags.
  7. libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LDFLAGS = \
  8. -version-info @LIBJAVASCRIPTCOREGTK_VERSION@ \
  9. $(no_undefined)
  10. nodist_EXTRA_libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_SOURCES = \
  11. $(javascriptcore_built_nosources)
  12. nodist_libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_SOURCES = \
  13. $(javascriptcore_built_sources)
  14. libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_ladir = $(libwebkitgtkincludedir)/JavaScriptCore
  15. libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_HEADERS = $(javascriptcore_h_api)
  16. libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_SOURCES = \
  17. $(javascriptcore_sources)
  18. libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LIBADD = \
  19. -lpthread \
  20. libWTF.la \
  21. $(UNICODE_LIBS) \
  22. $(GLIB_LIBS) \
  23. $(WINMM_LIBS)
  24. libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CXXFLAGS = \
  25. $(global_cxxflags) \
  26. $(libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CFLAGS)
  27. libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CFLAGS = \
  28. -fstrict-aliasing \
  29. -O3 \
  30. $(javascriptcore_cflags)
  31. libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CPPFLAGS = \
  32. $(global_cppflags) \
  33. $(javascriptcore_cppflags)
  34. javascriptcore_cppflags += \
  35. $(JSC_CPPFLAGS) \
  36. -I$(srcdir)/Source \
  37. -I$(srcdir)/Source/JavaScriptCore \
  38. -I$(srcdir)/Source/JavaScriptCore/API \
  39. -I$(srcdir)/Source/JavaScriptCore/assembler \
  40. -I$(srcdir)/Source/JavaScriptCore/bytecode \
  41. -I$(srcdir)/Source/JavaScriptCore/bytecompiler \
  42. -I$(srcdir)/Source/JavaScriptCore/dfg \
  43. -I$(srcdir)/Source/JavaScriptCore/disassembler \
  44. -I$(srcdir)/Source/JavaScriptCore/heap \
  45. -I$(srcdir)/Source/JavaScriptCore/debugger \
  46. -I$(srcdir)/Source/JavaScriptCore/ForwardingHeaders \
  47. -I$(srcdir)/Source/JavaScriptCore/interpreter \
  48. -I$(srcdir)/Source/JavaScriptCore/jit \
  49. -I$(srcdir)/Source/JavaScriptCore/jit \
  50. -I$(srcdir)/Source/JavaScriptCore/llint \
  51. -I$(srcdir)/Source/JavaScriptCore/parser \
  52. -I$(srcdir)/Source/JavaScriptCore/profiler \
  53. -I$(srcdir)/Source/JavaScriptCore/runtime \
  54. -I$(srcdir)/Source/JavaScriptCore/tools \
  55. -I$(srcdir)/Source/JavaScriptCore/yarr \
  56. -I$(top_builddir)/DerivedSources/JavaScriptCore
  57. javascriptcore_cppflags += \
  58. -I$(srcdir)/Source/WTF
  59. javascriptcore_cflags += \
  60. $(global_cflags) \
  61. $(GLIB_CFLAGS) \
  62. $(UNICODE_CFLAGS)
  63. pkgconfig_DATA += Source/JavaScriptCore/javascriptcoregtk-@WEBKITGTK_API_VERSION@.pc
  64. $(shell mkdir -p DerivedSources/JavaScriptCore)
  65. DerivedSources/JavaScriptCore/Lexer.lut.h: $(srcdir)/Source/JavaScriptCore/create_hash_table $(srcdir)/Source/JavaScriptCore/parser/Keywords.table
  66. $(AM_V_GEN)$(PERL) $^ > $@
  67. DerivedSources/JavaScriptCore/%.lut.h: $(srcdir)/Source/JavaScriptCore/create_hash_table $(srcdir)/Source/JavaScriptCore/runtime/%.cpp
  68. $(AM_V_GEN)$(PERL) $^ -i > $@
  69. DerivedSources/JavaScriptCore/RegExpJitTables.h: $(srcdir)/Source/JavaScriptCore/create_regex_tables
  70. $(AM_V_GEN)$(PYTHON) $^ > $@
  71. DerivedSources/JavaScriptCore/KeywordLookup.h: $(srcdir)/Source/JavaScriptCore/KeywordLookupGenerator.py $(srcdir)/Source/JavaScriptCore/parser/Keywords.table
  72. $(AM_V_GEN)$(PYTHON) $^ > $@
  73. DerivedSources/JavaScriptCore/LLIntDesiredOffsets.h: $(javascriptcore_sources) $(llint_nosources) $(offlineasm_nosources)
  74. $(AM_V_GEN)$(RUBY) $(srcdir)/Source/JavaScriptCore/offlineasm/generate_offset_extractor.rb $(srcdir)/Source/JavaScriptCore/llint/LowLevelInterpreter.asm $@
  75. $(Programs_LLIntOffsetsExtractor_OBJECTS): DerivedSources/JavaScriptCore/LLIntDesiredOffsets.h
  76. DerivedSources/JavaScriptCore/LLIntAssembly.h: Programs/LLIntOffsetsExtractor$(EXEEXT)
  77. $(AM_V_GEN)$(RUBY) $(srcdir)/Source/JavaScriptCore/offlineasm/asm.rb $(srcdir)/Source/JavaScriptCore/llint/LowLevelInterpreter.asm Programs/LLIntOffsetsExtractor$(EXEEXT) $@
  78. $(libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_OBJECTS): DerivedSources/JavaScriptCore/LLIntAssembly.h
  79. jsc: $(javascriptcore_built_nosources) Programs/jsc$(EXEEXT)
  80. bin_PROGRAMS += \
  81. Programs/jsc-@WEBKITGTK_API_MAJOR_VERSION@$(EXEEXT)
  82. noinst_PROGRAMS += \
  83. Programs/jsc \
  84. Programs/minidom \
  85. Programs/LLIntOffsetsExtractor
  86. Programs_minidom_CPPFLAGS = \
  87. $(global_cppflags) \
  88. $(javascriptcore_cppflags)
  89. Programs_minidom_CFLAGS = \
  90. -ansi \
  91. -fno-strict-aliasing \
  92. $(global_cflags) \
  93. $(GLOBALDEPS_CFLAGS)
  94. Programs_minidom_LDADD = \
  95. libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
  96. $(WINMM_LIBS) \
  97. -lm \
  98. -lpthread \
  99. -lstdc++
  100. Programs_minidom_LDFLAGS = \
  101. -no-install \
  102. -no-fast-install
  103. Programs_LLIntOffsetsExtractor_CPPFLAGS = \
  104. $(global_cppflags) \
  105. $(javascriptcore_cppflags)
  106. Programs_LLIntOffsetsExtractor_CFLAGS = \
  107. -ansi \
  108. -fno-strict-aliasing \
  109. $(global_cflags) \
  110. $(GLOBALDEPS_CFLAGS)
  111. Programs_LLIntOffsetsExtractor_LDADD = \
  112. -lpthread \
  113. libWTF.la \
  114. $(UNICODE_LIBS) \
  115. $(GLIB_LIBS) \
  116. $(WINMM_LIBS) \
  117. -lm \
  118. -lpthread \
  119. -lstdc++
  120. Programs_LLIntOffsetsExtractor_LDFLAGS = \
  121. -no-install \
  122. -no-fast-install
  123. # jsc
  124. Programs/jsc$(EXEEXT): Programs/jsc-@WEBKITGTK_API_MAJOR_VERSION@$(EXEEXT)
  125. $(AM_V_GEN)cp -f Programs/jsc-@WEBKITGTK_API_MAJOR_VERSION@$(EXEEXT) Programs/jsc$(EXEEXT)
  126. Programs_jsc_LDADD =
  127. Programs_jsc_SOURCES =
  128. Programs_jsc_@WEBKITGTK_API_MAJOR_VERSION@_CPPFLAGS = \
  129. $(global_cppflags) \
  130. $(javascriptcore_cppflags)
  131. Programs_jsc_@WEBKITGTK_API_MAJOR_VERSION@_CXXFLAGS = \
  132. -fno-strict-aliasing \
  133. $(global_cxxflags) \
  134. $(global_cflags) \
  135. $(GLOBALDEPS_CFLAGS) \
  136. $(UNICODE_CFLAGS)
  137. Programs_jsc_@WEBKITGTK_API_MAJOR_VERSION@_LDADD = \
  138. -lpthread \
  139. libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
  140. $(WINMM_LIBS)
  141. EXTRA_DIST += \
  142. Source/JavaScriptCore/AUTHORS \
  143. Source/JavaScriptCore/ChangeLog \
  144. Source/JavaScriptCore/COPYING.LIB \
  145. Source/JavaScriptCore/create_hash_table \
  146. Source/JavaScriptCore/create_regex_tables \
  147. Source/JavaScriptCore/icu/LICENSE \
  148. Source/JavaScriptCore/icu/README \
  149. Source/JavaScriptCore/KeywordLookupGenerator.py \
  150. Source/JavaScriptCore/parser/Keywords.table \
  151. Source/JavaScriptCore/THANKS \
  152. $(llint_nosources) \
  153. $(offlineasm_nosources)
  154. CLEANFILES += \
  155. $(javascriptcore_built_nosources) \
  156. Programs/jsc \
  157. Programs/jsc-@WEBKITGTK_API_MAJOR_VERSION@ \
  158. Programs/LLIntOffsetsExtractor \
  159. Programs/minidom
  160. DISTCLEANFILES += \
  161. $(top_builddir)/Source/JavaScriptCore/javascriptcoregtk-@WEBKITGTK_API_VERSION@.pc
  162. if ENABLE_INTROSPECTION
  163. # The GIR file is generated via autoconf, as we don't need to run the scanner against non-GObject libraries.
  164. JavaScriptCore-@WEBKITGTK_API_VERSION@.typelib: JavaScriptCore-@WEBKITGTK_API_VERSION@.gir $(G_IR_COMPILER)
  165. $(AM_V_GEN)$(G_IR_COMPILER) --includedir $(WebKit) --includedir $(top_builddir) $< -o $@
  166. gir_DATA += JavaScriptCore-@WEBKITGTK_API_VERSION@.gir
  167. typelibs_DATA += JavaScriptCore-@WEBKITGTK_API_VERSION@.typelib
  168. CLEANFILES += JavaScriptCore-@WEBKITGTK_API_VERSION@.gir JavaScriptCore-@WEBKITGTK_API_VERSION@.typelib
  169. endif