carray 1.3.6 → 1.5.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (315) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +32 -0
  3. data/LICENSE +22 -0
  4. data/NEWS.md +65 -0
  5. data/README.md +23 -26
  6. data/Rakefile +31 -0
  7. data/TODO.md +17 -0
  8. data/carray.gemspec +24 -31
  9. data/{ca_iter_block.c → ext/ca_iter_block.c} +16 -18
  10. data/{ca_iter_dimension.c → ext/ca_iter_dimension.c} +20 -21
  11. data/{ca_iter_window.c → ext/ca_iter_window.c} +12 -14
  12. data/{ca_obj_array.c → ext/ca_obj_array.c} +451 -176
  13. data/{ca_obj_bitarray.c → ext/ca_obj_bitarray.c} +18 -23
  14. data/{ca_obj_bitfield.c → ext/ca_obj_bitfield.c} +12 -16
  15. data/{ca_obj_block.c → ext/ca_obj_block.c} +47 -54
  16. data/{ca_obj_fake.c → ext/ca_obj_fake.c} +10 -12
  17. data/{ca_obj_farray.c → ext/ca_obj_farray.c} +21 -23
  18. data/{ca_obj_field.c → ext/ca_obj_field.c} +30 -32
  19. data/{ca_obj_grid.c → ext/ca_obj_grid.c} +32 -33
  20. data/{ca_obj_mapping.c → ext/ca_obj_mapping.c} +11 -13
  21. data/{ca_obj_object.c → ext/ca_obj_object.c} +40 -42
  22. data/{ca_obj_reduce.c → ext/ca_obj_reduce.c} +3 -5
  23. data/{ca_obj_refer.c → ext/ca_obj_refer.c} +38 -40
  24. data/{ca_obj_repeat.c → ext/ca_obj_repeat.c} +45 -47
  25. data/{ca_obj_select.c → ext/ca_obj_select.c} +4 -6
  26. data/{ca_obj_shift.c → ext/ca_obj_shift.c} +26 -28
  27. data/{ca_obj_transpose.c → ext/ca_obj_transpose.c} +26 -28
  28. data/{ca_obj_unbound_repeat.c → ext/ca_obj_unbound_repeat.c} +106 -160
  29. data/{ca_obj_window.c → ext/ca_obj_window.c} +33 -35
  30. data/{carray.h → ext/carray.h} +90 -59
  31. data/{carray_access.c → ext/carray_access.c} +244 -109
  32. data/{carray_attribute.c → ext/carray_attribute.c} +161 -207
  33. data/{carray_call_cfunc.c → ext/carray_call_cfunc.c} +1 -3
  34. data/{carray_cast.c → ext/carray_cast.c} +350 -149
  35. data/{carray_cast_func.rb → ext/carray_cast_func.rb} +1 -2
  36. data/{carray_class.c → ext/carray_class.c} +28 -36
  37. data/{carray_conversion.c → ext/carray_conversion.c} +58 -70
  38. data/{carray_copy.c → ext/carray_copy.c} +34 -50
  39. data/{carray_core.c → ext/carray_core.c} +75 -62
  40. data/ext/carray_data_type.c +66 -0
  41. data/{carray_element.c → ext/carray_element.c} +34 -53
  42. data/{carray_generate.c → ext/carray_generate.c} +137 -50
  43. data/{carray_iterator.c → ext/carray_iterator.c} +53 -53
  44. data/{carray_loop.c → ext/carray_loop.c} +77 -106
  45. data/{carray_mask.c → ext/carray_mask.c} +95 -114
  46. data/{carray_math.rb → ext/carray_math.rb} +47 -31
  47. data/ext/{mathfunc/carray_mathfunc.c → carray_mathfunc.c} +1 -3
  48. data/{carray_numeric.c → ext/carray_numeric.c} +43 -46
  49. data/{carray_operator.c → ext/carray_operator.c} +72 -36
  50. data/{carray_order.c → ext/carray_order.c} +73 -217
  51. data/{carray_sort_addr.c → ext/carray_sort_addr.c} +14 -21
  52. data/{carray_stat.c → ext/carray_stat.c} +6 -8
  53. data/{carray_stat_proc.rb → ext/carray_stat_proc.rb} +25 -27
  54. data/{carray_test.c → ext/carray_test.c} +59 -51
  55. data/{carray_undef.c → ext/carray_undef.c} +1 -11
  56. data/{carray_utils.c → ext/carray_utils.c} +12 -4
  57. data/{extconf.rb → ext/extconf.rb} +1 -6
  58. data/{mkmath.rb → ext/mkmath.rb} +13 -3
  59. data/{ruby_carray.c → ext/ruby_carray.c} +20 -8
  60. data/{ruby_ccomplex.c → ext/ruby_ccomplex.c} +1 -3
  61. data/{ruby_float_func.c → ext/ruby_float_func.c} +1 -3
  62. data/ext/version.h +16 -0
  63. data/{version.rb → ext/version.rb} +0 -0
  64. data/lib/carray.rb +52 -10
  65. data/lib/carray/{base/autoload.rb → autoload.rb} +48 -8
  66. data/lib/carray/autoload/autoload_base.rb +1 -5
  67. data/lib/carray/autoload/autoload_gem_cairo.rb +9 -0
  68. data/lib/carray/autoload/autoload_gem_ffi.rb +9 -0
  69. data/lib/carray/autoload/autoload_gem_gnuplot.rb +2 -0
  70. data/lib/carray/autoload/autoload_gem_io_csv.rb +14 -0
  71. data/lib/carray/autoload/autoload_gem_io_pg.rb +6 -0
  72. data/lib/carray/autoload/autoload_gem_io_sqlite3.rb +12 -0
  73. data/lib/carray/autoload/autoload_gem_narray.rb +10 -0
  74. data/lib/carray/autoload/autoload_gem_numo_narray.rb +15 -0
  75. data/lib/carray/autoload/autoload_gem_opencv.rb +16 -0
  76. data/lib/carray/autoload/autoload_gem_random.rb +8 -0
  77. data/lib/carray/autoload/autoload_gem_rmagick.rb +23 -0
  78. data/lib/carray/autoload/{autoload_graphics_zimg.rb → autoload_gem_zimg.rb} +0 -0
  79. data/lib/carray/basic.rb +191 -0
  80. data/lib/carray/broadcast.rb +82 -0
  81. data/lib/carray/compose.rb +315 -0
  82. data/lib/carray/construct.rb +460 -0
  83. data/lib/carray/convert.rb +115 -0
  84. data/lib/carray/info.rb +1 -3
  85. data/lib/carray/{base/inspect.rb → inspect.rb} +9 -11
  86. data/lib/carray/io/imagemagick.rb +2 -4
  87. data/lib/carray/{base/iterator.rb → iterator.rb} +6 -6
  88. data/lib/carray/mask.rb +102 -0
  89. data/lib/carray/{base/math.rb → math.rb} +21 -53
  90. data/lib/carray/math/histogram.rb +8 -10
  91. data/lib/carray/math/recurrence.rb +1 -3
  92. data/lib/carray/mkmf.rb +9 -3
  93. data/lib/carray/object/ca_obj_iterator.rb +1 -3
  94. data/lib/carray/object/ca_obj_link.rb +1 -3
  95. data/lib/carray/object/ca_obj_pack.rb +9 -11
  96. data/lib/carray/obsolete.rb +270 -0
  97. data/lib/carray/ordering.rb +181 -0
  98. data/lib/carray/{base/serialize.rb → serialize.rb} +50 -66
  99. data/lib/carray/string.rb +188 -0
  100. data/lib/carray/{base/struct.rb → struct.rb} +19 -21
  101. data/lib/carray/{io/table.rb → table.rb} +1 -9
  102. data/lib/carray/testing.rb +51 -0
  103. data/lib/carray/time.rb +76 -0
  104. data/lib/carray/transform.rb +98 -0
  105. data/misc/Methods.ja.md +182 -0
  106. data/{NOTE → misc/NOTE} +0 -0
  107. data/spec/Classes/CABitfield_spec.rb +58 -0
  108. data/spec/Classes/CABlockIterator_spec.rb +114 -0
  109. data/spec/Classes/CABlock_spec.rb +205 -0
  110. data/spec/Classes/CAField_spec.rb +39 -0
  111. data/spec/Classes/CAGrid_spec.rb +75 -0
  112. data/spec/Classes/CAMap_spec.rb +0 -0
  113. data/{test/test_CAMapping.rb → spec/Classes/CAMapping_spec.rb} +35 -36
  114. data/spec/Classes/CAObject_attribute_spec.rb +33 -0
  115. data/spec/Classes/CAObject_spec.rb +33 -0
  116. data/spec/Classes/CARefer_spec.rb +93 -0
  117. data/spec/Classes/CARepeat_spec.rb +65 -0
  118. data/spec/Classes/CASelect_spec.rb +22 -0
  119. data/spec/Classes/CAShift_spec.rb +16 -0
  120. data/spec/Classes/CAStruct_spec.rb +71 -0
  121. data/{test/test_CATranspose.rb → spec/Classes/CATranspose_spec.rb} +20 -21
  122. data/spec/Classes/CAUnboudRepeat_spec.rb +102 -0
  123. data/spec/Classes/CAWindow_spec.rb +54 -0
  124. data/spec/Classes/CAWrap_spec.rb +8 -0
  125. data/{test/test_CArray.rb → spec/Classes/CArray_spec.rb} +48 -92
  126. data/spec/Classes/CScalar_spec.rb +55 -0
  127. data/spec/Features/feature_130_spec.rb +19 -0
  128. data/spec/Features/feature_attributes_spec.rb +280 -0
  129. data/spec/Features/feature_boolean_spec.rb +98 -0
  130. data/spec/Features/feature_broadcast.rb +116 -0
  131. data/spec/Features/feature_cast_function.rb +19 -0
  132. data/spec/Features/feature_cast_spec.rb +33 -0
  133. data/spec/Features/feature_class_spec.rb +84 -0
  134. data/spec/Features/feature_complex_spec.rb +42 -0
  135. data/{test/test_composite.rb → spec/Features/feature_composite_spec.rb} +17 -18
  136. data/spec/Features/feature_convert_spec.rb +46 -0
  137. data/spec/Features/feature_copy_spec.rb +123 -0
  138. data/spec/Features/feature_creation_spec.rb +84 -0
  139. data/spec/Features/feature_element_spec.rb +144 -0
  140. data/spec/Features/feature_extream_spec.rb +54 -0
  141. data/spec/Features/feature_generate_spec.rb +74 -0
  142. data/spec/Features/feature_index_spec.rb +69 -0
  143. data/spec/Features/feature_mask_spec.rb +580 -0
  144. data/spec/Features/feature_math_spec.rb +97 -0
  145. data/spec/Features/feature_order_spec.rb +146 -0
  146. data/spec/Features/feature_ref_store_spec.rb +209 -0
  147. data/spec/Features/feature_serialization_spec.rb +125 -0
  148. data/spec/Features/feature_stat_spec.rb +397 -0
  149. data/spec/Features/feature_virtual_spec.rb +48 -0
  150. data/spec/Features/method_eq_spec.rb +81 -0
  151. data/spec/Features/method_is_nan_spec.rb +12 -0
  152. data/spec/Features/method_map_spec.rb +54 -0
  153. data/spec/Features/method_max_with.rb +20 -0
  154. data/spec/Features/method_min_with.rb +19 -0
  155. data/spec/Features/method_ne_spec.rb +18 -0
  156. data/spec/Features/method_project_spec.rb +188 -0
  157. data/spec/Features/method_ref_spec.rb +27 -0
  158. data/spec/Features/method_round_spec.rb +11 -0
  159. data/spec/Features/method_s_linspace_spec.rb +48 -0
  160. data/spec/Features/method_s_span_spec.rb +14 -0
  161. data/spec/Features/method_seq_spec.rb +47 -0
  162. data/spec/Features/method_sort_with.rb +43 -0
  163. data/spec/Features/method_sorted_with.rb +29 -0
  164. data/spec/Features/method_span_spec.rb +42 -0
  165. data/spec/Features/method_wrap_readonly_spec.rb +43 -0
  166. data/{test → spec/UnitTest}/test_CAVirtual.rb +0 -0
  167. data/spec/spec_all.rb +0 -1
  168. data/utils/convert_test.rb +73 -0
  169. data/utils/{extract_rdoc.rb → extract_yard.rb} +7 -12
  170. data/{devel → utils}/guess_shape.rb +0 -0
  171. data/utils/{diff_method.rb → monkey_patch_methods.rb} +17 -7
  172. metadata +173 -316
  173. data/COPYING +0 -56
  174. data/GPL +0 -340
  175. data/Gemfile +0 -8
  176. data/Gemfile.lock +0 -33
  177. data/LEGAL +0 -50
  178. data/Makefile +0 -451
  179. data/TODO +0 -5
  180. data/carray_cast_func.c +0 -8670
  181. data/carray_config.h +0 -26
  182. data/carray_math.c +0 -24805
  183. data/carray_random.c +0 -531
  184. data/carray_stat_proc.c +0 -12170
  185. data/ext/calculus/carray_calculus.c +0 -931
  186. data/ext/calculus/carray_interp.c +0 -358
  187. data/ext/calculus/extconf.rb +0 -12
  188. data/ext/calculus/lib/autoload/autoload_math_calculus.rb +0 -2
  189. data/ext/calculus/lib/math/calculus.rb +0 -119
  190. data/ext/calculus/lib/math/interp/adapter_interp1d.rb +0 -31
  191. data/ext/fortio/extconf.rb +0 -3
  192. data/ext/fortio/lib/carray/autoload/autoload_fortran_format.rb +0 -5
  193. data/ext/fortio/lib/carray/io/fortran_format.rb +0 -43
  194. data/ext/fortio/lib/fortio.rb +0 -3
  195. data/ext/fortio/lib/fortio/fortran_format.rb +0 -605
  196. data/ext/fortio/lib/fortio/fortran_format.tab.rb +0 -536
  197. data/ext/fortio/lib/fortio/fortran_format.y +0 -215
  198. data/ext/fortio/lib/fortio/fortran_namelist.rb +0 -151
  199. data/ext/fortio/lib/fortio/fortran_namelist.tab.rb +0 -470
  200. data/ext/fortio/lib/fortio/fortran_namelist.y +0 -213
  201. data/ext/fortio/lib/fortio/fortran_sequential.rb +0 -345
  202. data/ext/fortio/ruby_fortio.c +0 -182
  203. data/ext/fortio/test/test_H.rb +0 -5
  204. data/ext/fortio/test/test_T.rb +0 -7
  205. data/ext/fortio/test/test_fortran_format.rb +0 -86
  206. data/ext/fortio/test/test_namelist.rb +0 -25
  207. data/ext/fortio/test/test_namelist_write.rb +0 -10
  208. data/ext/fortio/test/test_sequential.rb +0 -13
  209. data/ext/fortio/test/test_sequential2.rb +0 -13
  210. data/ext/fortio/work/test.rb +0 -10
  211. data/ext/fortio/work/test_e.rb +0 -19
  212. data/ext/fortio/work/test_ep.rb +0 -10
  213. data/ext/fortio/work/test_parse.rb +0 -12
  214. data/ext/imagemap/carray_imagemap.c +0 -495
  215. data/ext/imagemap/doc/call_graph.dot +0 -28
  216. data/ext/imagemap/draw.c +0 -567
  217. data/ext/imagemap/extconf.rb +0 -13
  218. data/ext/imagemap/lib/autoload/autoload_graphics_imagemap.rb +0 -1
  219. data/ext/imagemap/lib/graphics/imagemap.rb +0 -273
  220. data/ext/imagemap/lib/image_map.rb +0 -4
  221. data/ext/imagemap/test/swath_index.rb +0 -83
  222. data/ext/imagemap/test/swath_warp.rb +0 -99
  223. data/ext/imagemap/test/test.rb +0 -23
  224. data/ext/imagemap/test/test_image.rb +0 -42
  225. data/ext/imagemap/test/test_line.rb +0 -14
  226. data/ext/imagemap/test/test_rotate.rb +0 -17
  227. data/ext/imagemap/test/test_triangle.rb +0 -20
  228. data/ext/imagemap/test/test_warp.rb +0 -26
  229. data/ext/mathfunc/extconf.rb +0 -18
  230. data/ext/mathfunc/lib/autoload/autoload_math_mathfunc.rb +0 -1
  231. data/ext/mathfunc/lib/math/mathfunc.rb +0 -15
  232. data/ext/mathfunc/test/test_hypot.rb +0 -5
  233. data/ext/mathfunc/test/test_j0.rb +0 -22
  234. data/ext/mathfunc/test/test_jn.rb +0 -8
  235. data/ext/mathfunc/test/test_sph.rb +0 -9
  236. data/ext/narray/README +0 -22
  237. data/ext/narray/ca_wrap_narray.c +0 -500
  238. data/ext/narray/carray_narray.c +0 -21
  239. data/ext/narray/extconf.rb +0 -57
  240. data/ext/narray/lib/autoload/autoload_math_narray.rb +0 -1
  241. data/ext/narray/lib/autoload/autoload_math_narray_miss.rb +0 -11
  242. data/ext/narray/lib/math/narray.rb +0 -17
  243. data/ext/narray/lib/math/narray_miss.rb +0 -45
  244. data/lib/carray/autoload/autoload_graphics_gnuplot.rb +0 -2
  245. data/lib/carray/autoload/autoload_io_csv.rb +0 -14
  246. data/lib/carray/autoload/autoload_io_pg.rb +0 -6
  247. data/lib/carray/autoload/autoload_io_sqlite3.rb +0 -12
  248. data/lib/carray/autoload/autoload_io_table.rb +0 -1
  249. data/lib/carray/autoload/autoload_math_interp.rb +0 -4
  250. data/lib/carray/base/basic.rb +0 -1090
  251. data/lib/carray/base/obsolete.rb +0 -131
  252. data/lib/carray/graphics/gnuplot.rb +0 -2131
  253. data/lib/carray/graphics/zimg.rb +0 -296
  254. data/lib/carray/io/csv.rb +0 -572
  255. data/lib/carray/io/pg.rb +0 -101
  256. data/lib/carray/io/sqlite3.rb +0 -215
  257. data/lib/carray/math/interp.rb +0 -57
  258. data/lib/carray/math/interp/adapter_gsl_spline.rb +0 -47
  259. data/mkmf.log +0 -375
  260. data/mt19937ar.c +0 -182
  261. data/mt19937ar.h +0 -86
  262. data/rdoc_ext.rb +0 -1115
  263. data/rdoc_main.rb +0 -27
  264. data/rdoc_math.rb +0 -5
  265. data/rdoc_stat.rb +0 -31
  266. data/spec/CABlockIterator/CABlockIterator_spec.rb +0 -113
  267. data/spec/CArray/bug/store_spec.rb +0 -27
  268. data/spec/CArray/index/repeat_spec.rb +0 -10
  269. data/spec/CArray/method/eq_spec.rb +0 -80
  270. data/spec/CArray/method/is_nan_spec.rb +0 -12
  271. data/spec/CArray/method/ne_spec.rb +0 -18
  272. data/spec/CArray/method/round_spec.rb +0 -11
  273. data/spec/CArray/object/_attribute_spec.rb +0 -32
  274. data/spec/CArray/object/s_new_spec.rb +0 -31
  275. data/spec/CArray/serialize/Serialization_spec.rb +0 -89
  276. data/test/test_130.rb +0 -23
  277. data/test/test_ALL.rb +0 -51
  278. data/test/test_CABitfield.rb +0 -59
  279. data/test/test_CABlock.rb +0 -208
  280. data/test/test_CAField.rb +0 -40
  281. data/test/test_CAGrid.rb +0 -76
  282. data/test/test_CAMmap.rb +0 -11
  283. data/test/test_CARefer.rb +0 -94
  284. data/test/test_CARepeat.rb +0 -66
  285. data/test/test_CASelect.rb +0 -23
  286. data/test/test_CAShift.rb +0 -17
  287. data/test/test_CAWindow.rb +0 -55
  288. data/test/test_CAWrap.rb +0 -9
  289. data/test/test_CComplex.rb +0 -83
  290. data/test/test_CScalar.rb +0 -91
  291. data/test/test_attribute.rb +0 -281
  292. data/test/test_block_iterator.rb +0 -17
  293. data/test/test_boolean.rb +0 -99
  294. data/test/test_cast.rb +0 -33
  295. data/test/test_class.rb +0 -85
  296. data/test/test_complex.rb +0 -43
  297. data/test/test_convert.rb +0 -79
  298. data/test/test_copy.rb +0 -141
  299. data/test/test_creation.rb +0 -85
  300. data/test/test_element.rb +0 -146
  301. data/test/test_extream.rb +0 -55
  302. data/test/test_generate.rb +0 -75
  303. data/test/test_index.rb +0 -71
  304. data/test/test_mask.rb +0 -578
  305. data/test/test_math.rb +0 -98
  306. data/test/test_narray.rb +0 -64
  307. data/test/test_order.rb +0 -147
  308. data/test/test_random.rb +0 -15
  309. data/test/test_ref_store.rb +0 -211
  310. data/test/test_stat.rb +0 -414
  311. data/test/test_struct.rb +0 -72
  312. data/test/test_virtual.rb +0 -49
  313. data/utils/create_rdoc.sh +0 -9
  314. data/utils/make_tgz.sh +0 -3
  315. data/version.h +0 -18
data/Makefile DELETED
@@ -1,451 +0,0 @@
1
-
2
- SHELL = /bin/sh
3
-
4
- # V=0 quiet, V=1 verbose. other values don't work.
5
- V = 0
6
- Q1 = $(V:1=)
7
- Q = $(Q1:0=@)
8
- ECHO1 = $(V:1=@ :)
9
- ECHO = $(ECHO1:0=@ echo)
10
- NULLCMD = :
11
-
12
- #### Start of system configuration section. ####
13
-
14
- srcdir = .
15
- topdir = /Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0
16
- hdrdir = $(topdir)
17
- arch_hdrdir = /Users/himotoyoshi/.rbenv/versions/2.4.2/include/ruby-2.4.0/x86_64-darwin16
18
- PATH_SEPARATOR = :
19
- VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
20
- prefix = $(DESTDIR)/Users/himotoyoshi/.rbenv/versions/2.4.2
21
- rubysitearchprefix = $(rubylibprefix)/$(sitearch)
22
- rubyarchprefix = $(rubylibprefix)/$(arch)
23
- rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
24
- exec_prefix = $(prefix)
25
- vendorarchhdrdir = $(vendorhdrdir)/$(sitearch)
26
- sitearchhdrdir = $(sitehdrdir)/$(sitearch)
27
- rubyarchhdrdir = $(rubyhdrdir)/$(arch)
28
- vendorhdrdir = $(rubyhdrdir)/vendor_ruby
29
- sitehdrdir = $(rubyhdrdir)/site_ruby
30
- rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
31
- vendorarchdir = $(vendorlibdir)/$(sitearch)
32
- vendorlibdir = $(vendordir)/$(ruby_version)
33
- vendordir = $(rubylibprefix)/vendor_ruby
34
- sitearchdir = $(sitelibdir)/$(sitearch)
35
- sitelibdir = $(sitedir)/$(ruby_version)
36
- sitedir = $(rubylibprefix)/site_ruby
37
- rubyarchdir = $(rubylibdir)/$(arch)
38
- rubylibdir = $(rubylibprefix)/$(ruby_version)
39
- sitearchincludedir = $(includedir)/$(sitearch)
40
- archincludedir = $(includedir)/$(arch)
41
- sitearchlibdir = $(libdir)/$(sitearch)
42
- archlibdir = $(libdir)/$(arch)
43
- ridir = $(datarootdir)/$(RI_BASE_NAME)
44
- mandir = $(datarootdir)/man
45
- localedir = $(datarootdir)/locale
46
- libdir = $(exec_prefix)/lib
47
- psdir = $(docdir)
48
- pdfdir = $(docdir)
49
- dvidir = $(docdir)
50
- htmldir = $(docdir)
51
- infodir = $(datarootdir)/info
52
- docdir = $(datarootdir)/doc/$(PACKAGE)
53
- oldincludedir = $(SDKROOT)/usr/include
54
- includedir = $(prefix)/include
55
- localstatedir = $(prefix)/var
56
- sharedstatedir = $(prefix)/com
57
- sysconfdir = $(prefix)/etc
58
- datadir = $(datarootdir)
59
- datarootdir = $(prefix)/share
60
- libexecdir = $(exec_prefix)/libexec
61
- sbindir = $(exec_prefix)/sbin
62
- bindir = $(exec_prefix)/bin
63
- archdir = $(rubyarchdir)
64
-
65
-
66
- CC = clang
67
- CXX = clang++
68
- LIBRUBY = $(LIBRUBY_A)
69
- LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
70
- LIBRUBYARG_SHARED =
71
- LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static -framework CoreFoundation
72
- empty =
73
- OUTFLAG = -o $(empty)
74
- COUTFLAG = -o $(empty)
75
- CSRCFLAG = $(empty)
76
-
77
- RUBY_EXTCONF_H = carray_config.h
78
- cflags = $(optflags) $(debugflags) $(warnflags)
79
- cxxflags = $(optflags) $(debugflags) $(warnflags)
80
- optflags = -O3 -fno-fast-math
81
- debugflags = -ggdb3
82
- warnflags = -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens
83
- CCDLFLAGS = -fno-common
84
- CFLAGS = $(CCDLFLAGS) $(cflags) -pipe -Wall -O2 $(ARCH_FLAG)
85
- INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
86
- DEFS =
87
- CPPFLAGS = -DRUBY_EXTCONF_H=\"$(RUBY_EXTCONF_H)\" -I/Users/himotoyoshi/.rbenv/versions/2.4.2/include -I/usr/local/opt/qt/include: -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT $(DEFS) $(cppflags)
88
- CXXFLAGS = $(CCDLFLAGS) $(cxxflags) $(ARCH_FLAG)
89
- ldflags = -L. -L/Users/himotoyoshi/.rbenv/versions/2.4.2/lib -L/usr/local/opt/qt/lib: -fstack-protector -L/usr/local/lib
90
- dldflags = -L/Users/himotoyoshi/.rbenv/versions/2.4.2/lib -L/usr/local/opt/qt/lib: -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress
91
- ARCH_FLAG =
92
- DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG)
93
- LDSHARED = $(CC) -dynamic -bundle
94
- LDSHAREDXX = $(CXX) -dynamic -bundle
95
- AR = ar
96
- EXEEXT =
97
-
98
- RUBY_INSTALL_NAME = $(RUBY_BASE_NAME)
99
- RUBY_SO_NAME = ruby
100
- RUBYW_INSTALL_NAME =
101
- RUBY_VERSION_NAME = $(RUBY_BASE_NAME)-$(ruby_version)
102
- RUBYW_BASE_NAME = rubyw
103
- RUBY_BASE_NAME = ruby
104
-
105
- arch = x86_64-darwin16
106
- sitearch = $(arch)
107
- ruby_version = 2.4.0
108
- ruby = $(bindir)/$(RUBY_BASE_NAME)
109
- RUBY = $(ruby)
110
- ruby_headers = $(hdrdir)/ruby.h $(hdrdir)/ruby/backward.h $(hdrdir)/ruby/ruby.h $(hdrdir)/ruby/defines.h $(hdrdir)/ruby/missing.h $(hdrdir)/ruby/intern.h $(hdrdir)/ruby/st.h $(hdrdir)/ruby/subst.h $(arch_hdrdir)/ruby/config.h $(RUBY_EXTCONF_H)
111
-
112
- RM = rm -f
113
- RM_RF = $(RUBY) -run -e rm -- -rf
114
- RMDIRS = rmdir -p
115
- MAKEDIRS = mkdir -p
116
- INSTALL = /usr/bin/install -c
117
- INSTALL_PROG = $(INSTALL) -m 0755
118
- INSTALL_DATA = $(INSTALL) -m 644
119
- COPY = cp
120
- TOUCH = exit >
121
-
122
- #### End of system configuration section. ####
123
-
124
- preload =
125
- libpath = . $(libdir)
126
- LIBPATH = -L. -L$(libdir)
127
- DEFFILE =
128
-
129
- CLEANFILES = mkmf.log
130
- DISTCLEANFILES =
131
- DISTCLEANDIRS =
132
-
133
- extout =
134
- extout_prefix =
135
- target_prefix =
136
- LOCAL_LIBS =
137
- LIBS = -lpthread -lgmp -ldl -lobjc
138
- ORIG_SRCS = ca_iter_block.c ca_iter_dimension.c ca_iter_window.c ca_obj_array.c ca_obj_bitarray.c ca_obj_bitfield.c ca_obj_block.c ca_obj_fake.c ca_obj_farray.c ca_obj_field.c ca_obj_grid.c ca_obj_mapping.c ca_obj_object.c ca_obj_reduce.c ca_obj_refer.c ca_obj_repeat.c ca_obj_select.c ca_obj_shift.c ca_obj_transpose.c ca_obj_unbound_repeat.c ca_obj_window.c carray_access.c carray_attribute.c carray_call_cfunc.c carray_cast.c carray_cast_func.c carray_class.c carray_conversion.c carray_copy.c carray_core.c carray_element.c carray_generate.c carray_iterator.c carray_loop.c carray_mask.c carray_math.c carray_numeric.c carray_operator.c carray_order.c carray_random.c carray_sort_addr.c carray_stat.c carray_stat_proc.c carray_test.c carray_undef.c carray_utils.c mt19937ar.c ruby_carray.c ruby_ccomplex.c ruby_float_func.c
139
- SRCS = $(ORIG_SRCS)
140
- OBJS = ca_iter_block.o ca_iter_dimension.o ca_iter_window.o ca_obj_array.o ca_obj_bitarray.o ca_obj_bitfield.o ca_obj_block.o ca_obj_fake.o ca_obj_farray.o ca_obj_field.o ca_obj_grid.o ca_obj_mapping.o ca_obj_object.o ca_obj_reduce.o ca_obj_refer.o ca_obj_repeat.o ca_obj_select.o ca_obj_shift.o ca_obj_transpose.o ca_obj_unbound_repeat.o ca_obj_window.o carray_access.o carray_attribute.o carray_call_cfunc.o carray_cast.o carray_cast_func.o carray_class.o carray_conversion.o carray_copy.o carray_core.o carray_element.o carray_generate.o carray_iterator.o carray_loop.o carray_mask.o carray_math.o carray_numeric.o carray_operator.o carray_order.o carray_random.o carray_sort_addr.o carray_stat.o carray_stat_proc.o carray_test.o carray_undef.o carray_utils.o mt19937ar.o ruby_carray.o ruby_ccomplex.o ruby_float_func.o
141
- HDRS = $(srcdir)/version.h $(srcdir)/carray_config.h $(srcdir)/carray.h $(srcdir)/mt19937ar.h
142
- LOCAL_HDRS =
143
- TARGET = carray_ext
144
- TARGET_NAME = carray_ext
145
- TARGET_ENTRY = Init_$(TARGET_NAME)
146
- DLLIB = $(TARGET).bundle
147
- EXTSTATIC =
148
- STATIC_LIB =
149
-
150
- TIMESTAMP_DIR = .
151
- BINDIR = $(bindir)
152
- RUBYCOMMONDIR = $(sitedir)$(target_prefix)
153
- RUBYLIBDIR = $(sitelibdir)$(target_prefix)
154
- RUBYARCHDIR = $(sitearchdir)$(target_prefix)
155
- HDRDIR = $(rubyhdrdir)/ruby$(target_prefix)
156
- ARCHHDRDIR = $(rubyhdrdir)/$(arch)/ruby$(target_prefix)
157
- TARGET_SO_DIR =
158
- TARGET_SO = $(TARGET_SO_DIR)$(DLLIB)
159
- CLEANLIBS = $(TARGET_SO)
160
- CLEANOBJS = *.o *.bak
161
-
162
- all: $(DLLIB)
163
- static: $(STATIC_LIB)
164
- .PHONY: all install static install-so install-rb
165
- .PHONY: clean clean-so clean-static clean-rb
166
-
167
- clean-static::
168
- clean-rb-default::
169
- clean-rb::
170
- clean-so::
171
- clean: clean-so clean-static clean-rb-default clean-rb
172
- -$(Q)$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES) .*.time
173
-
174
- distclean-rb-default::
175
- distclean-rb::
176
- distclean-so::
177
- distclean-static::
178
- distclean: clean distclean-so distclean-static distclean-rb-default distclean-rb
179
- -$(Q)$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
180
- -$(Q)$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
181
- -$(Q)$(RMDIRS) $(DISTCLEANDIRS) 2> /dev/null || true
182
-
183
- realclean: distclean
184
- install: install-so install-rb
185
-
186
- install-so: $(DLLIB) $(TIMESTAMP_DIR)/.sitearchdir.time
187
- $(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
188
- clean-static::
189
- -$(Q)$(RM) $(STATIC_LIB)
190
- install-rb: pre-install-rb do-install-rb install-rb-default
191
- install-rb-default: pre-install-rb-default do-install-rb-default
192
- pre-install-rb: Makefile
193
- pre-install-rb-default: Makefile
194
- do-install-rb:
195
- do-install-rb-default:
196
- pre-install-rb-default: $(TIMESTAMP_DIR)/.sitelibdir.-.carray.time
197
- do-install-rb-default: $(RUBYLIBDIR)/carray/info.rb
198
- $(RUBYLIBDIR)/carray/info.rb: $(srcdir)/lib/carray/info.rb $(TIMESTAMP_DIR)/.sitelibdir.-.carray.time
199
- $(Q) $(INSTALL_DATA) $(srcdir)/lib/carray/info.rb $(@D)
200
- do-install-rb-default: $(RUBYLIBDIR)/carray/mkmf.rb
201
- $(RUBYLIBDIR)/carray/mkmf.rb: $(srcdir)/lib/carray/mkmf.rb $(TIMESTAMP_DIR)/.sitelibdir.-.carray.time
202
- $(Q) $(INSTALL_DATA) $(srcdir)/lib/carray/mkmf.rb $(@D)
203
- pre-install-rb-default: $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.io.time
204
- do-install-rb-default: $(RUBYLIBDIR)/carray/io/table.rb
205
- $(RUBYLIBDIR)/carray/io/table.rb: $(srcdir)/lib/carray/io/table.rb $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.io.time
206
- $(Q) $(INSTALL_DATA) $(srcdir)/lib/carray/io/table.rb $(@D)
207
- do-install-rb-default: $(RUBYLIBDIR)/carray/io/sqlite3.rb
208
- $(RUBYLIBDIR)/carray/io/sqlite3.rb: $(srcdir)/lib/carray/io/sqlite3.rb $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.io.time
209
- $(Q) $(INSTALL_DATA) $(srcdir)/lib/carray/io/sqlite3.rb $(@D)
210
- do-install-rb-default: $(RUBYLIBDIR)/carray/io/csv.rb
211
- $(RUBYLIBDIR)/carray/io/csv.rb: $(srcdir)/lib/carray/io/csv.rb $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.io.time
212
- $(Q) $(INSTALL_DATA) $(srcdir)/lib/carray/io/csv.rb $(@D)
213
- do-install-rb-default: $(RUBYLIBDIR)/carray/io/imagemagick.rb
214
- $(RUBYLIBDIR)/carray/io/imagemagick.rb: $(srcdir)/lib/carray/io/imagemagick.rb $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.io.time
215
- $(Q) $(INSTALL_DATA) $(srcdir)/lib/carray/io/imagemagick.rb $(@D)
216
- do-install-rb-default: $(RUBYLIBDIR)/carray/io/pg.rb
217
- $(RUBYLIBDIR)/carray/io/pg.rb: $(srcdir)/lib/carray/io/pg.rb $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.io.time
218
- $(Q) $(INSTALL_DATA) $(srcdir)/lib/carray/io/pg.rb $(@D)
219
- pre-install-rb-default: $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.math.time
220
- do-install-rb-default: $(RUBYLIBDIR)/carray/math/interp.rb
221
- $(RUBYLIBDIR)/carray/math/interp.rb: $(srcdir)/lib/carray/math/interp.rb $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.math.time
222
- $(Q) $(INSTALL_DATA) $(srcdir)/lib/carray/math/interp.rb $(@D)
223
- do-install-rb-default: $(RUBYLIBDIR)/carray/math/histogram.rb
224
- $(RUBYLIBDIR)/carray/math/histogram.rb: $(srcdir)/lib/carray/math/histogram.rb $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.math.time
225
- $(Q) $(INSTALL_DATA) $(srcdir)/lib/carray/math/histogram.rb $(@D)
226
- do-install-rb-default: $(RUBYLIBDIR)/carray/math/recurrence.rb
227
- $(RUBYLIBDIR)/carray/math/recurrence.rb: $(srcdir)/lib/carray/math/recurrence.rb $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.math.time
228
- $(Q) $(INSTALL_DATA) $(srcdir)/lib/carray/math/recurrence.rb $(@D)
229
- pre-install-rb-default: $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.math.-.interp.time
230
- do-install-rb-default: $(RUBYLIBDIR)/carray/math/interp/adapter_gsl_spline.rb
231
- $(RUBYLIBDIR)/carray/math/interp/adapter_gsl_spline.rb: $(srcdir)/lib/carray/math/interp/adapter_gsl_spline.rb $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.math.-.interp.time
232
- $(Q) $(INSTALL_DATA) $(srcdir)/lib/carray/math/interp/adapter_gsl_spline.rb $(@D)
233
- pre-install-rb-default: $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.object.time
234
- do-install-rb-default: $(RUBYLIBDIR)/carray/object/ca_obj_iterator.rb
235
- $(RUBYLIBDIR)/carray/object/ca_obj_iterator.rb: $(srcdir)/lib/carray/object/ca_obj_iterator.rb $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.object.time
236
- $(Q) $(INSTALL_DATA) $(srcdir)/lib/carray/object/ca_obj_iterator.rb $(@D)
237
- do-install-rb-default: $(RUBYLIBDIR)/carray/object/ca_obj_pack.rb
238
- $(RUBYLIBDIR)/carray/object/ca_obj_pack.rb: $(srcdir)/lib/carray/object/ca_obj_pack.rb $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.object.time
239
- $(Q) $(INSTALL_DATA) $(srcdir)/lib/carray/object/ca_obj_pack.rb $(@D)
240
- do-install-rb-default: $(RUBYLIBDIR)/carray/object/ca_obj_link.rb
241
- $(RUBYLIBDIR)/carray/object/ca_obj_link.rb: $(srcdir)/lib/carray/object/ca_obj_link.rb $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.object.time
242
- $(Q) $(INSTALL_DATA) $(srcdir)/lib/carray/object/ca_obj_link.rb $(@D)
243
- pre-install-rb-default: $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.autoload.time
244
- do-install-rb-default: $(RUBYLIBDIR)/carray/autoload/autoload_io_table.rb
245
- $(RUBYLIBDIR)/carray/autoload/autoload_io_table.rb: $(srcdir)/lib/carray/autoload/autoload_io_table.rb $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.autoload.time
246
- $(Q) $(INSTALL_DATA) $(srcdir)/lib/carray/autoload/autoload_io_table.rb $(@D)
247
- do-install-rb-default: $(RUBYLIBDIR)/carray/autoload/autoload_math_histogram.rb
248
- $(RUBYLIBDIR)/carray/autoload/autoload_math_histogram.rb: $(srcdir)/lib/carray/autoload/autoload_math_histogram.rb $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.autoload.time
249
- $(Q) $(INSTALL_DATA) $(srcdir)/lib/carray/autoload/autoload_math_histogram.rb $(@D)
250
- do-install-rb-default: $(RUBYLIBDIR)/carray/autoload/autoload_io_csv.rb
251
- $(RUBYLIBDIR)/carray/autoload/autoload_io_csv.rb: $(srcdir)/lib/carray/autoload/autoload_io_csv.rb $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.autoload.time
252
- $(Q) $(INSTALL_DATA) $(srcdir)/lib/carray/autoload/autoload_io_csv.rb $(@D)
253
- do-install-rb-default: $(RUBYLIBDIR)/carray/autoload/autoload_io_pg.rb
254
- $(RUBYLIBDIR)/carray/autoload/autoload_io_pg.rb: $(srcdir)/lib/carray/autoload/autoload_io_pg.rb $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.autoload.time
255
- $(Q) $(INSTALL_DATA) $(srcdir)/lib/carray/autoload/autoload_io_pg.rb $(@D)
256
- do-install-rb-default: $(RUBYLIBDIR)/carray/autoload/autoload_math_interp.rb
257
- $(RUBYLIBDIR)/carray/autoload/autoload_math_interp.rb: $(srcdir)/lib/carray/autoload/autoload_math_interp.rb $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.autoload.time
258
- $(Q) $(INSTALL_DATA) $(srcdir)/lib/carray/autoload/autoload_math_interp.rb $(@D)
259
- do-install-rb-default: $(RUBYLIBDIR)/carray/autoload/autoload_io_imagemagick.rb
260
- $(RUBYLIBDIR)/carray/autoload/autoload_io_imagemagick.rb: $(srcdir)/lib/carray/autoload/autoload_io_imagemagick.rb $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.autoload.time
261
- $(Q) $(INSTALL_DATA) $(srcdir)/lib/carray/autoload/autoload_io_imagemagick.rb $(@D)
262
- do-install-rb-default: $(RUBYLIBDIR)/carray/autoload/autoload_math_recurrence.rb
263
- $(RUBYLIBDIR)/carray/autoload/autoload_math_recurrence.rb: $(srcdir)/lib/carray/autoload/autoload_math_recurrence.rb $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.autoload.time
264
- $(Q) $(INSTALL_DATA) $(srcdir)/lib/carray/autoload/autoload_math_recurrence.rb $(@D)
265
- do-install-rb-default: $(RUBYLIBDIR)/carray/autoload/autoload_io_sqlite3.rb
266
- $(RUBYLIBDIR)/carray/autoload/autoload_io_sqlite3.rb: $(srcdir)/lib/carray/autoload/autoload_io_sqlite3.rb $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.autoload.time
267
- $(Q) $(INSTALL_DATA) $(srcdir)/lib/carray/autoload/autoload_io_sqlite3.rb $(@D)
268
- do-install-rb-default: $(RUBYLIBDIR)/carray/autoload/autoload_graphics_zimg.rb
269
- $(RUBYLIBDIR)/carray/autoload/autoload_graphics_zimg.rb: $(srcdir)/lib/carray/autoload/autoload_graphics_zimg.rb $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.autoload.time
270
- $(Q) $(INSTALL_DATA) $(srcdir)/lib/carray/autoload/autoload_graphics_zimg.rb $(@D)
271
- do-install-rb-default: $(RUBYLIBDIR)/carray/autoload/autoload_graphics_gnuplot.rb
272
- $(RUBYLIBDIR)/carray/autoload/autoload_graphics_gnuplot.rb: $(srcdir)/lib/carray/autoload/autoload_graphics_gnuplot.rb $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.autoload.time
273
- $(Q) $(INSTALL_DATA) $(srcdir)/lib/carray/autoload/autoload_graphics_gnuplot.rb $(@D)
274
- do-install-rb-default: $(RUBYLIBDIR)/carray/autoload/autoload_base.rb
275
- $(RUBYLIBDIR)/carray/autoload/autoload_base.rb: $(srcdir)/lib/carray/autoload/autoload_base.rb $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.autoload.time
276
- $(Q) $(INSTALL_DATA) $(srcdir)/lib/carray/autoload/autoload_base.rb $(@D)
277
- do-install-rb-default: $(RUBYLIBDIR)/carray/autoload/autoload_object_link.rb
278
- $(RUBYLIBDIR)/carray/autoload/autoload_object_link.rb: $(srcdir)/lib/carray/autoload/autoload_object_link.rb $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.autoload.time
279
- $(Q) $(INSTALL_DATA) $(srcdir)/lib/carray/autoload/autoload_object_link.rb $(@D)
280
- do-install-rb-default: $(RUBYLIBDIR)/carray/autoload/autoload_object_pack.rb
281
- $(RUBYLIBDIR)/carray/autoload/autoload_object_pack.rb: $(srcdir)/lib/carray/autoload/autoload_object_pack.rb $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.autoload.time
282
- $(Q) $(INSTALL_DATA) $(srcdir)/lib/carray/autoload/autoload_object_pack.rb $(@D)
283
- do-install-rb-default: $(RUBYLIBDIR)/carray/autoload/autoload_object_iterator.rb
284
- $(RUBYLIBDIR)/carray/autoload/autoload_object_iterator.rb: $(srcdir)/lib/carray/autoload/autoload_object_iterator.rb $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.autoload.time
285
- $(Q) $(INSTALL_DATA) $(srcdir)/lib/carray/autoload/autoload_object_iterator.rb $(@D)
286
- pre-install-rb-default: $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.graphics.time
287
- do-install-rb-default: $(RUBYLIBDIR)/carray/graphics/gnuplot.rb
288
- $(RUBYLIBDIR)/carray/graphics/gnuplot.rb: $(srcdir)/lib/carray/graphics/gnuplot.rb $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.graphics.time
289
- $(Q) $(INSTALL_DATA) $(srcdir)/lib/carray/graphics/gnuplot.rb $(@D)
290
- do-install-rb-default: $(RUBYLIBDIR)/carray/graphics/zimg.rb
291
- $(RUBYLIBDIR)/carray/graphics/zimg.rb: $(srcdir)/lib/carray/graphics/zimg.rb $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.graphics.time
292
- $(Q) $(INSTALL_DATA) $(srcdir)/lib/carray/graphics/zimg.rb $(@D)
293
- pre-install-rb-default: $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.base.time
294
- do-install-rb-default: $(RUBYLIBDIR)/carray/base/struct.rb
295
- $(RUBYLIBDIR)/carray/base/struct.rb: $(srcdir)/lib/carray/base/struct.rb $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.base.time
296
- $(Q) $(INSTALL_DATA) $(srcdir)/lib/carray/base/struct.rb $(@D)
297
- do-install-rb-default: $(RUBYLIBDIR)/carray/base/math.rb
298
- $(RUBYLIBDIR)/carray/base/math.rb: $(srcdir)/lib/carray/base/math.rb $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.base.time
299
- $(Q) $(INSTALL_DATA) $(srcdir)/lib/carray/base/math.rb $(@D)
300
- do-install-rb-default: $(RUBYLIBDIR)/carray/base/inspect.rb
301
- $(RUBYLIBDIR)/carray/base/inspect.rb: $(srcdir)/lib/carray/base/inspect.rb $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.base.time
302
- $(Q) $(INSTALL_DATA) $(srcdir)/lib/carray/base/inspect.rb $(@D)
303
- do-install-rb-default: $(RUBYLIBDIR)/carray/base/iterator.rb
304
- $(RUBYLIBDIR)/carray/base/iterator.rb: $(srcdir)/lib/carray/base/iterator.rb $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.base.time
305
- $(Q) $(INSTALL_DATA) $(srcdir)/lib/carray/base/iterator.rb $(@D)
306
- do-install-rb-default: $(RUBYLIBDIR)/carray/base/basic.rb
307
- $(RUBYLIBDIR)/carray/base/basic.rb: $(srcdir)/lib/carray/base/basic.rb $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.base.time
308
- $(Q) $(INSTALL_DATA) $(srcdir)/lib/carray/base/basic.rb $(@D)
309
- do-install-rb-default: $(RUBYLIBDIR)/carray/base/autoload.rb
310
- $(RUBYLIBDIR)/carray/base/autoload.rb: $(srcdir)/lib/carray/base/autoload.rb $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.base.time
311
- $(Q) $(INSTALL_DATA) $(srcdir)/lib/carray/base/autoload.rb $(@D)
312
- do-install-rb-default: $(RUBYLIBDIR)/carray/base/obsolete.rb
313
- $(RUBYLIBDIR)/carray/base/obsolete.rb: $(srcdir)/lib/carray/base/obsolete.rb $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.base.time
314
- $(Q) $(INSTALL_DATA) $(srcdir)/lib/carray/base/obsolete.rb $(@D)
315
- do-install-rb-default: $(RUBYLIBDIR)/carray/base/serialize.rb
316
- $(RUBYLIBDIR)/carray/base/serialize.rb: $(srcdir)/lib/carray/base/serialize.rb $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.base.time
317
- $(Q) $(INSTALL_DATA) $(srcdir)/lib/carray/base/serialize.rb $(@D)
318
- pre-install-rb-default: $(TIMESTAMP_DIR)/.sitelibdir.time
319
- do-install-rb-default: $(RUBYLIBDIR)/carray.rb
320
- $(RUBYLIBDIR)/carray.rb: $(srcdir)/lib/carray.rb $(TIMESTAMP_DIR)/.sitelibdir.time
321
- $(Q) $(INSTALL_DATA) $(srcdir)/lib/carray.rb $(@D)
322
- pre-install-rb-default:
323
- $(Q1:0=@$(MAKE) -q do-install-rb-default || )$(ECHO1:0=echo) installing default carray_ext libraries
324
- pre-install-rb: $(TIMESTAMP_DIR)/.sitearchdir.time
325
- do-install-rb: $(RUBYARCHDIR)/carray.h
326
- $(RUBYARCHDIR)/carray.h: $(srcdir)/carray.h $(TIMESTAMP_DIR)/.sitearchdir.time
327
- $(Q) $(INSTALL_DATA) $(srcdir)/carray.h $(@D)
328
- do-install-rb: $(RUBYARCHDIR)/carray_config.h
329
- $(RUBYARCHDIR)/carray_config.h: $(srcdir)/carray_config.h $(TIMESTAMP_DIR)/.sitearchdir.time
330
- $(Q) $(INSTALL_DATA) $(srcdir)/carray_config.h $(@D)
331
- pre-install-rb:
332
- $(Q1:0=@$(MAKE) -q do-install-rb || )$(ECHO1:0=echo) installing carray_ext libraries
333
- $(TIMESTAMP_DIR)/.sitelibdir.-.carray.time:
334
- $(Q) $(MAKEDIRS) $(@D) $(RUBYLIBDIR)/carray
335
- $(Q) $(TOUCH) $@
336
- $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.io.time:
337
- $(Q) $(MAKEDIRS) $(@D) $(RUBYLIBDIR)/carray/io
338
- $(Q) $(TOUCH) $@
339
- $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.math.time:
340
- $(Q) $(MAKEDIRS) $(@D) $(RUBYLIBDIR)/carray/math
341
- $(Q) $(TOUCH) $@
342
- $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.math.-.interp.time:
343
- $(Q) $(MAKEDIRS) $(@D) $(RUBYLIBDIR)/carray/math/interp
344
- $(Q) $(TOUCH) $@
345
- $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.object.time:
346
- $(Q) $(MAKEDIRS) $(@D) $(RUBYLIBDIR)/carray/object
347
- $(Q) $(TOUCH) $@
348
- $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.autoload.time:
349
- $(Q) $(MAKEDIRS) $(@D) $(RUBYLIBDIR)/carray/autoload
350
- $(Q) $(TOUCH) $@
351
- $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.graphics.time:
352
- $(Q) $(MAKEDIRS) $(@D) $(RUBYLIBDIR)/carray/graphics
353
- $(Q) $(TOUCH) $@
354
- $(TIMESTAMP_DIR)/.sitelibdir.-.carray.-.base.time:
355
- $(Q) $(MAKEDIRS) $(@D) $(RUBYLIBDIR)/carray/base
356
- $(Q) $(TOUCH) $@
357
- $(TIMESTAMP_DIR)/.sitelibdir.time:
358
- $(Q) $(MAKEDIRS) $(@D) $(RUBYLIBDIR)
359
- $(Q) $(TOUCH) $@
360
- $(TIMESTAMP_DIR)/.sitearchdir.time:
361
- $(Q) $(MAKEDIRS) $(@D) $(RUBYARCHDIR)
362
- $(Q) $(TOUCH) $@
363
-
364
- site-install: site-install-so site-install-rb
365
- site-install-so: install-so
366
- site-install-rb: install-rb
367
-
368
- .SUFFIXES: .c .m .cc .mm .cxx .cpp .o .S
369
-
370
- .cc.o:
371
- $(ECHO) compiling $(<)
372
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
373
-
374
- .cc.S:
375
- $(ECHO) translating $(<)
376
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
377
-
378
- .mm.o:
379
- $(ECHO) compiling $(<)
380
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
381
-
382
- .mm.S:
383
- $(ECHO) translating $(<)
384
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
385
-
386
- .cxx.o:
387
- $(ECHO) compiling $(<)
388
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
389
-
390
- .cxx.S:
391
- $(ECHO) translating $(<)
392
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
393
-
394
- .cpp.o:
395
- $(ECHO) compiling $(<)
396
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
397
-
398
- .cpp.S:
399
- $(ECHO) translating $(<)
400
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
401
-
402
- .c.o:
403
- $(ECHO) compiling $(<)
404
- $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
405
-
406
- .c.S:
407
- $(ECHO) translating $(<)
408
- $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
409
-
410
- .m.o:
411
- $(ECHO) compiling $(<)
412
- $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
413
-
414
- .m.S:
415
- $(ECHO) translating $(<)
416
- $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
417
-
418
- $(TARGET_SO): $(OBJS) Makefile
419
- $(ECHO) linking shared-object $(DLLIB)
420
- -$(Q)$(RM) $(@)
421
- $(Q) $(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
422
- $(Q) $(POSTLINK)
423
-
424
-
425
-
426
- $(OBJS): $(HDRS) $(ruby_headers)
427
- CA_VERSION = ${shell ${RUBY} version.rb}
428
- GEMFILE = carray-${CA_VERSION}.gem
429
-
430
- carray_cast_func.c: carray_cast_func.rb
431
- ${RUBY} carray_cast_func.rb > carray_cast_func.c
432
-
433
- carray_stat_proc.c: carray_stat_proc.rb
434
- ${RUBY} carray_stat_proc.rb > carray_stat_proc.c
435
-
436
- carray_math.c: carray_math.rb
437
- ${RUBY} carray_math.rb
438
-
439
- rdoc:
440
- sh utils/create_rdoc.sh
441
-
442
- clean-generated:
443
- @rm -f carray_config.h lib/carray/config.rb
444
- @rm -f carray_cast_func.c carray_math.c carray_stat_proc.c
445
- @rm -f ${GEMFILE}
446
- @rm -rf pkg
447
- @rm -f rdoc_ext.rb
448
- @rm -rf doc
449
- @rm -rf conftest.dSYM ext/*/conftest.dSYM
450
-
451
- distclean: clean-generated
data/TODO DELETED
@@ -1,5 +0,0 @@
1
- - CArray#section should treat mask (-> currently CArray#bin uses inherit_mask)
2
- - CArray#differentiate should treat mask
3
- * CArray#search should permit a CArray argument (use lfind ?)
4
- * append API ca_get_range(vrange, size, *first, *last)
5
- * ca_cast_self_or_other should treat NArray directly