Makefile 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. SHELL = /bin/sh
  2. # V=0 quiet, V=1 verbose. other values don't work.
  3. V = 0
  4. Q1 = $(V:1=)
  5. Q = $(Q1:0=@)
  6. n=$(NULLCMD)
  7. ECHO1 = $(V:1=@$n)
  8. ECHO = $(ECHO1:0=@echo)
  9. #### Start of system configuration section. ####
  10. srcdir = .
  11. topdir = /home/paul/.rvm/rubies/ruby-1.9.3-head/include/ruby-1.9.1
  12. hdrdir = /home/paul/.rvm/rubies/ruby-1.9.3-head/include/ruby-1.9.1
  13. arch_hdrdir = /home/paul/.rvm/rubies/ruby-1.9.3-head/include/ruby-1.9.1/$(arch)
  14. VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
  15. prefix = $(DESTDIR)/home/paul/.rvm/rubies/ruby-1.9.3-head
  16. rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
  17. exec_prefix = $(prefix)
  18. vendorhdrdir = $(rubyhdrdir)/vendor_ruby
  19. sitehdrdir = $(rubyhdrdir)/site_ruby
  20. rubyhdrdir = $(includedir)/$(RUBY_BASE_NAME)-$(ruby_version)
  21. vendordir = $(rubylibprefix)/vendor_ruby
  22. sitedir = $(rubylibprefix)/site_ruby
  23. ridir = $(datarootdir)/$(RI_BASE_NAME)
  24. mandir = $(datarootdir)/man
  25. localedir = $(datarootdir)/locale
  26. libdir = $(exec_prefix)/lib
  27. psdir = $(docdir)
  28. pdfdir = $(docdir)
  29. dvidir = $(docdir)
  30. htmldir = $(docdir)
  31. infodir = $(datarootdir)/info
  32. docdir = $(datarootdir)/doc/$(PACKAGE)
  33. oldincludedir = $(DESTDIR)/usr/include
  34. includedir = $(prefix)/include
  35. localstatedir = $(prefix)/var
  36. sharedstatedir = $(prefix)/com
  37. sysconfdir = $(prefix)/etc
  38. datadir = $(datarootdir)
  39. datarootdir = $(prefix)/share
  40. libexecdir = $(exec_prefix)/libexec
  41. sbindir = $(exec_prefix)/sbin
  42. bindir = $(exec_prefix)/bin
  43. rubylibdir = $(rubylibprefix)/$(ruby_version)
  44. archdir = $(rubylibdir)/$(arch)
  45. sitelibdir = $(sitedir)/$(ruby_version)
  46. sitearchdir = $(sitelibdir)/$(sitearch)
  47. vendorlibdir = $(vendordir)/$(ruby_version)
  48. vendorarchdir = $(vendorlibdir)/$(sitearch)
  49. NULLCMD = :
  50. CC = gcc
  51. CXX = g++
  52. LIBRUBY = $(LIBRUBY_SO)
  53. LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
  54. LIBRUBYARG_SHARED = -Wl,-R -Wl,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)
  55. LIBRUBYARG_STATIC = -Wl,-R -Wl,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)-static
  56. empty =
  57. OUTFLAG = -o $(empty)
  58. COUTFLAG = -o $(empty)
  59. RUBY_EXTCONF_H =
  60. cflags = $(optflags) $(debugflags) $(warnflags)
  61. optflags = -O3
  62. debugflags = -ggdb
  63. warnflags = -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration
  64. CFLAGS = -fPIC $(cflags) -fPIC $(ARCH_FLAG)
  65. INCFLAGS = -I. -I/home/paul/dev/git/nooo/vendor/bundle/ruby/1.9.1/gems/libv8-3.3.10.4-x86-linux/lib/libv8/v8/include -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
  66. DEFS = -D_FILE_OFFSET_BITS=64
  67. CPPFLAGS = $(DEFS) $(cppflags) -Wall -g -rdynamic
  68. CXXFLAGS = $(CFLAGS) $(cxxflags)
  69. ldflags = /home/paul/dev/git/nooo/vendor/bundle/ruby/1.9.1/gems/libv8-3.3.10.4-x86-linux/lib/libv8/build/v8/libv8.a -L. -rdynamic -Wl,-export-dynamic
  70. dldflags =
  71. ARCH_FLAG =
  72. DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG)
  73. LDSHARED = $(CXX) -shared
  74. LDSHAREDXX = $(CXX) -shared
  75. AR = ar
  76. EXEEXT =
  77. RUBY_BASE_NAME = ruby
  78. RUBY_INSTALL_NAME = ruby
  79. RUBY_SO_NAME = ruby
  80. arch = i686-linux
  81. sitearch = $(arch)
  82. ruby_version = 1.9.1
  83. ruby = /home/paul/.rvm/rubies/ruby-1.9.3-head/bin/ruby
  84. RUBY = $(ruby)
  85. RM = rm -f
  86. RM_RF = $(RUBY) -run -e rm -- -rf
  87. RMDIRS = rmdir --ignore-fail-on-non-empty -p
  88. MAKEDIRS = /bin/mkdir -p
  89. INSTALL = /usr/bin/install -c
  90. INSTALL_PROG = $(INSTALL) -m 0755
  91. INSTALL_DATA = $(INSTALL) -m 644
  92. COPY = cp
  93. #### End of system configuration section. ####
  94. preload =
  95. libpath = . $(libdir)
  96. LIBPATH = -L. -L$(libdir) -Wl,-R$(libdir)
  97. DEFFILE =
  98. CLEANFILES = mkmf.log
  99. DISTCLEANFILES =
  100. DISTCLEANDIRS =
  101. extout =
  102. extout_prefix =
  103. target_prefix =
  104. LOCAL_LIBS =
  105. LIBS = $(LIBRUBYARG_SHARED) -lpthread -lrt -ldl -lcrypt -lm -lc -lpthread
  106. SRCS = v8_date.cpp v8_external.cpp v8_template.cpp rr.cpp v8_function.cpp v8_debug.cpp v8_message.cpp v8_value.cpp v8_object.cpp v8_exception.cpp v8_handle.cpp v8_weakref.cpp v8.cpp v8_try_catch.cpp v8_v8.cpp v8_script.cpp v8_context.cpp v8_locker.cpp v8_array.cpp v8_string.cpp v8_callbacks.cpp
  107. OBJS = v8_date.o v8_external.o v8_template.o rr.o v8_function.o v8_debug.o v8_message.o v8_value.o v8_object.o v8_exception.o v8_handle.o v8_weakref.o v8.o v8_try_catch.o v8_v8.o v8_script.o v8_context.o v8_locker.o v8_array.o v8_string.o v8_callbacks.o
  108. TARGET = v8
  109. DLLIB = $(TARGET).so
  110. EXTSTATIC =
  111. STATIC_LIB =
  112. BINDIR = $(bindir)
  113. RUBYCOMMONDIR = $(sitedir)$(target_prefix)
  114. RUBYLIBDIR = /home/paul/dev/git/nooo/vendor/bundle/ruby/1.9.1/gems/therubyracer-0.10.1/lib$(target_prefix)
  115. RUBYARCHDIR = /home/paul/dev/git/nooo/vendor/bundle/ruby/1.9.1/gems/therubyracer-0.10.1/lib$(target_prefix)
  116. HDRDIR = $(rubyhdrdir)/ruby$(target_prefix)
  117. ARCHHDRDIR = $(rubyhdrdir)/$(arch)/ruby$(target_prefix)
  118. TARGET_SO = $(DLLIB)
  119. CLEANLIBS = $(TARGET).so
  120. CLEANOBJS = *.o *.bak
  121. all: $(DLLIB)
  122. static: $(STATIC_LIB)
  123. .PHONY: all install static install-so install-rb
  124. .PHONY: clean clean-so clean-rb
  125. clean-rb-default::
  126. clean-rb::
  127. clean-so::
  128. clean: clean-so clean-rb-default clean-rb
  129. @-$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES)
  130. distclean-rb-default::
  131. distclean-rb::
  132. distclean-so::
  133. distclean: clean distclean-so distclean-rb-default distclean-rb
  134. @-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
  135. @-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
  136. @-$(RMDIRS) $(DISTCLEANDIRS) 2> /dev/null || true
  137. realclean: distclean
  138. install: install-so install-rb
  139. install-so: $(RUBYARCHDIR)
  140. install-so: $(RUBYARCHDIR)/$(DLLIB)
  141. $(RUBYARCHDIR)/$(DLLIB): $(DLLIB)
  142. @-$(MAKEDIRS) $(@D)
  143. $(INSTALL_PROG) $(DLLIB) $(@D)
  144. install-rb: pre-install-rb install-rb-default
  145. install-rb-default: pre-install-rb-default
  146. pre-install-rb: Makefile
  147. pre-install-rb-default: Makefile
  148. pre-install-rb-default:
  149. $(ECHO) installing default v8 libraries
  150. $(RUBYARCHDIR):
  151. $(Q) $(MAKEDIRS) $@
  152. site-install: site-install-so site-install-rb
  153. site-install-so: install-so
  154. site-install-rb: install-rb
  155. .SUFFIXES: .c .m .cc .mm .cxx .cpp .C .o
  156. .cc.o:
  157. $(ECHO) compiling $(<)
  158. $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
  159. .mm.o:
  160. $(ECHO) compiling $(<)
  161. $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
  162. .cxx.o:
  163. $(ECHO) compiling $(<)
  164. $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
  165. .cpp.o:
  166. $(ECHO) compiling $(<)
  167. $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
  168. .C.o:
  169. $(ECHO) compiling $(<)
  170. $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
  171. .c.o:
  172. $(ECHO) compiling $(<)
  173. $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $<
  174. .m.o:
  175. $(ECHO) compiling $(<)
  176. $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $<
  177. $(DLLIB): $(OBJS) Makefile
  178. $(ECHO) linking shared-object $(DLLIB)
  179. @-$(RM) $(@)
  180. $(Q) $(LDSHAREDXX) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
  181. $(OBJS): $(hdrdir)/ruby.h $(hdrdir)/ruby/defines.h $(arch_hdrdir)/ruby/config.h