silicium 0.0.2 → 0.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -3
  3. data/.travis.yml +14 -25
  4. data/Gemfile +0 -4
  5. data/README.md +0 -2
  6. data/Rakefile +0 -7
  7. data/lib/silicium/version.rb +1 -1
  8. data/lib/silicium.rb +1 -0
  9. data/silicium.gemspec +37 -39
  10. metadata +4 -92
  11. data/.codeclimate.yml +0 -4
  12. data/Makefile +0 -269
  13. data/docs/Object.html +0 -117
  14. data/docs/README_md.html +0 -142
  15. data/docs/Silicium/Combinatorics.html +0 -270
  16. data/docs/Silicium/Dice/Polyhedron.html +0 -315
  17. data/docs/Silicium/Dice/PolyhedronSet.html +0 -321
  18. data/docs/Silicium/Dice.html +0 -99
  19. data/docs/Silicium/Error.html +0 -106
  20. data/docs/Silicium/Geometry/Line2dCanon.html +0 -243
  21. data/docs/Silicium/Geometry/VariablesOrderException.html +0 -106
  22. data/docs/Silicium/Geometry.html +0 -940
  23. data/docs/Silicium/Graphs/GraphError.html +0 -106
  24. data/docs/Silicium/Graphs/OrientedGraph.html +0 -775
  25. data/docs/Silicium/Graphs/UnorientedGraph.html +0 -284
  26. data/docs/Silicium/Graphs.html +0 -164
  27. data/docs/Silicium/IntegralDoesntExistError.html +0 -106
  28. data/docs/Silicium/NumericalIntegration.html +0 -521
  29. data/docs/Silicium/Optimization.html +0 -639
  30. data/docs/Silicium/Plotter/Image.html +0 -297
  31. data/docs/Silicium/Plotter.html +0 -186
  32. data/docs/Silicium.html +0 -101
  33. data/docs/created.rid +0 -9
  34. data/docs/css/fonts.css +0 -167
  35. data/docs/css/rdoc.css +0 -619
  36. data/docs/fonts/Lato-Light.ttf +0 -0
  37. data/docs/fonts/Lato-LightItalic.ttf +0 -0
  38. data/docs/fonts/Lato-Regular.ttf +0 -0
  39. data/docs/fonts/Lato-RegularItalic.ttf +0 -0
  40. data/docs/fonts/SourceCodePro-Bold.ttf +0 -0
  41. data/docs/fonts/SourceCodePro-Regular.ttf +0 -0
  42. data/docs/images/add.png +0 -0
  43. data/docs/images/arrow_up.png +0 -0
  44. data/docs/images/brick.png +0 -0
  45. data/docs/images/brick_link.png +0 -0
  46. data/docs/images/bug.png +0 -0
  47. data/docs/images/bullet_black.png +0 -0
  48. data/docs/images/bullet_toggle_minus.png +0 -0
  49. data/docs/images/bullet_toggle_plus.png +0 -0
  50. data/docs/images/date.png +0 -0
  51. data/docs/images/delete.png +0 -0
  52. data/docs/images/find.png +0 -0
  53. data/docs/images/loadingAnimation.gif +0 -0
  54. data/docs/images/macFFBgHack.png +0 -0
  55. data/docs/images/package.png +0 -0
  56. data/docs/images/page_green.png +0 -0
  57. data/docs/images/page_white_text.png +0 -0
  58. data/docs/images/page_white_width.png +0 -0
  59. data/docs/images/plugin.png +0 -0
  60. data/docs/images/ruby.png +0 -0
  61. data/docs/images/tag_blue.png +0 -0
  62. data/docs/images/tag_green.png +0 -0
  63. data/docs/images/transparent.png +0 -0
  64. data/docs/images/wrench.png +0 -0
  65. data/docs/images/wrench_orange.png +0 -0
  66. data/docs/images/zoom.png +0 -0
  67. data/docs/index.html +0 -132
  68. data/docs/js/darkfish.js +0 -84
  69. data/docs/js/navigation.js +0 -105
  70. data/docs/js/navigation.js.gz +0 -0
  71. data/docs/js/search.js +0 -110
  72. data/docs/js/search_index.js +0 -1
  73. data/docs/js/search_index.js.gz +0 -0
  74. data/docs/js/searcher.js +0 -229
  75. data/docs/js/searcher.js.gz +0 -0
  76. data/docs/table_of_contents.html +0 -608
  77. data/lib/geometry.rb +0 -236
  78. data/lib/graph.rb +0 -164
  79. data/lib/numerical_integration.rb +0 -147
  80. data/lib/optimization.rb +0 -144
  81. data/lib/plotter.rb +0 -96
  82. data/lib/theory_of_probability.rb +0 -227
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b0827b998a4e193a64ae37eec4bd2b36062a371c551cb173fb2d624f43440195
4
- data.tar.gz: 544074ca2a99c8865a38aefcb8311d113f1abe2a35cae328ff2609db5c720dca
3
+ metadata.gz: b521aac3a1db22a7ae451e0d409f098076cb2f98b7294b6f342f64556536d516
4
+ data.tar.gz: f24953f05b38101a3300157a5b7e90fc8c41c8f3855bbc5c1132e0b136795cec
5
5
  SHA512:
6
- metadata.gz: d756e76fb2ebc8ce636bae3d75b296f0ce1d944b63bfc090cd9f6c9db5eb0144ac9c5d16115b9c296216c6ea65e59099da5c87babc3476f0f5f1b70bb1d8a22b
7
- data.tar.gz: e7cd63d5a322146091e367e02c8f595a0ff36ccdbb61ba9985eb25b0083df2f4c088f6bb9b7f96ba20cd5705355f7ade7e35b9c16dfccb632430a052074e3b06
6
+ metadata.gz: 1e46c4190ce1abb6582bc986c8a459bdf5011bd1b9aaba828e520bd3001d0acd1e6cc7393098a3d24fe8118332ccb2b6d95299966166fe7879e39f61cd3f5e1f
7
+ data.tar.gz: db7595ff0097c8127a74855649fb06611f19e966fc207aa71aad88413277fe605f08f4606f1b503a7b4d26b2ed4744db2d540dccfd572eae76a1827bfec09b2e
data/.gitignore CHANGED
@@ -8,6 +8,4 @@
8
8
  /tmp/
9
9
  .idea/
10
10
  *.gem
11
- Gemfile.lock
12
- .rakeTasks
13
- /coverage/
11
+ Gemfile.lock
data/.travis.yml CHANGED
@@ -1,25 +1,14 @@
1
- sudo: false
2
- language: ruby
3
- cache: bundler
4
- rvm:
5
- - 2.6.3
6
- env:
7
- global:
8
- - CC_TEST_REPORTER_ID=$TEST_ID
9
- before_install: gem install bundler -v 2.0.2
10
- before_script:
11
- - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
12
- - chmod +x ./cc-test-reporter
13
- - ./cc-test-reporter before-build
14
- script:
15
- - bundle exec rake test
16
- after_script:
17
- - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
18
- deploy:
19
- provider: rubygems
20
- api_key: $API_KEY
21
- gem: silicium
22
- on:
23
- tags: true
24
- repo: mmcs-ruby/silicium
25
- branch: master
1
+ sudo: false
2
+ language: ruby
3
+ cache: bundler
4
+ rvm:
5
+ - 2.6.3
6
+ before_install: gem install bundler -v 2.0.2
7
+ before_deploy: bundle exec rake test
8
+ deploy:
9
+ provider: rubygems
10
+ api_key: $API_KEY
11
+ gem: silicium
12
+ on:
13
+ tags: true
14
+ repo: mmcs-ruby/silicium
data/Gemfile CHANGED
@@ -1,8 +1,4 @@
1
1
  source "https://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in silicium.gemspec
4
-
5
4
  gemspec
6
- gem 'fast_matrix'
7
- gem 'chunky_png'
8
-
data/README.md CHANGED
@@ -1,6 +1,4 @@
1
1
  [![Build Status](https://travis-ci.org/mmcs-ruby/silicium.svg?branch=master)](https://travis-ci.org/mmcs-ruby/silicium)
2
- [![Maintainability](https://api.codeclimate.com/v1/badges/b0ec4b3029f90d4273a1/maintainability)](https://codeclimate.com/github/mmcs-ruby/silicium/maintainability)
3
- [![Test Coverage](https://api.codeclimate.com/v1/badges/b0ec4b3029f90d4273a1/test_coverage)](https://codeclimate.com/github/mmcs-ruby/silicium/test_coverage)
4
2
 
5
3
  # Silicium
6
4
 
data/Rakefile CHANGED
@@ -8,10 +8,3 @@ Rake::TestTask.new(:test) do |t|
8
8
  end
9
9
 
10
10
  task :default => :test
11
-
12
- require 'rdoc/task'
13
-
14
- RDoc::Task.new do |rdoc|
15
- rdoc.rdoc_files.include("README.md", "lib /*.rb")
16
- rdoc.rdoc_dir = 'docs'
17
- end
@@ -1,3 +1,3 @@
1
1
  module Silicium
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.14"
3
3
  end
data/lib/silicium.rb CHANGED
@@ -2,4 +2,5 @@ require "silicium/version"
2
2
 
3
3
  module Silicium
4
4
  class Error < StandardError; end
5
+ # Your code goes here...
5
6
  end
data/silicium.gemspec CHANGED
@@ -1,39 +1,37 @@
1
- lib = File.expand_path("lib", __dir__)
2
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
- require "silicium/version"
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = "silicium"
7
- spec.version = Silicium::VERSION
8
- spec.authors = ["mmcs-ruby"]
9
- spec.email = ["poganesyan@sfedu.ru"]
10
-
11
- spec.summary = %q{Ruby math library made as exercise by MMCS students .}
12
- spec.description = %q{Long list of applied functions}
13
- # spec.homepage = "TODO: Put your gem's website or public repo URL here."
14
- spec.license = "MIT"
15
-
16
- =begin
17
-
18
- spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
19
-
20
- spec.metadata["homepage_uri"] = spec.homepage
21
-
22
- spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
23
- =end
24
- spec.metadata["source_code_uri"] = 'https://github.com/mmcs-ruby/silicium'
25
- # Specify which files should be added to the gem when it is released.
26
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
27
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
28
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
29
- end
30
- spec.bindir = "exe"
31
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
32
- spec.require_paths = ["lib"]
33
-
34
- spec.add_development_dependency "bundler", "~> 2.0"
35
- spec.add_development_dependency "rake", "~> 10.0"
36
- spec.add_development_dependency "minitest", "~> 5.0"
37
- spec.add_development_dependency 'simplecov'
38
-
39
- end
1
+ lib = File.expand_path("lib", __dir__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require "silicium/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "silicium"
7
+ spec.version = Silicium::VERSION
8
+ spec.authors = ["mmcs-ruby"]
9
+ spec.email = ["poganesyan@sfedu.ru"]
10
+
11
+ spec.summary = %q{Ruby math library made as exercise by MMCS students .}
12
+ spec.description = %q{Long list of applied functions}
13
+ # spec.homepage = "TODO: Put your gem's website or public repo URL here."
14
+ spec.license = "MIT"
15
+
16
+ =begin
17
+
18
+ spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
19
+
20
+ spec.metadata["homepage_uri"] = spec.homepage
21
+ spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
22
+ spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
23
+ =end
24
+
25
+ # Specify which files should be added to the gem when it is released.
26
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
27
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
28
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
29
+ end
30
+ spec.bindir = "exe"
31
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
32
+ spec.require_paths = ["lib"]
33
+
34
+ spec.add_development_dependency "bundler", "~> 2.0"
35
+ spec.add_development_dependency "rake", "~> 10.0"
36
+ spec.add_development_dependency "minitest", "~> 5.0"
37
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: silicium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - mmcs-ruby
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-31 00:00:00.000000000 Z
11
+ date: 2019-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,20 +52,6 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '5.0'
55
- - !ruby/object:Gem::Dependency
56
- name: simplecov
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
55
  description: Long list of applied functions
70
56
  email:
71
57
  - poganesyan@sfedu.ru
@@ -73,95 +59,22 @@ executables: []
73
59
  extensions: []
74
60
  extra_rdoc_files: []
75
61
  files:
76
- - ".codeclimate.yml"
77
62
  - ".gitignore"
78
63
  - ".travis.yml"
79
64
  - CODE_OF_CONDUCT.md
80
65
  - Gemfile
81
66
  - LICENSE.txt
82
- - Makefile
83
67
  - README.md
84
68
  - Rakefile
85
69
  - bin/console
86
70
  - bin/setup
87
- - docs/Object.html
88
- - docs/README_md.html
89
- - docs/Silicium.html
90
- - docs/Silicium/Combinatorics.html
91
- - docs/Silicium/Dice.html
92
- - docs/Silicium/Dice/Polyhedron.html
93
- - docs/Silicium/Dice/PolyhedronSet.html
94
- - docs/Silicium/Error.html
95
- - docs/Silicium/Geometry.html
96
- - docs/Silicium/Geometry/Line2dCanon.html
97
- - docs/Silicium/Geometry/VariablesOrderException.html
98
- - docs/Silicium/Graphs.html
99
- - docs/Silicium/Graphs/GraphError.html
100
- - docs/Silicium/Graphs/OrientedGraph.html
101
- - docs/Silicium/Graphs/UnorientedGraph.html
102
- - docs/Silicium/IntegralDoesntExistError.html
103
- - docs/Silicium/NumericalIntegration.html
104
- - docs/Silicium/Optimization.html
105
- - docs/Silicium/Plotter.html
106
- - docs/Silicium/Plotter/Image.html
107
- - docs/created.rid
108
- - docs/css/fonts.css
109
- - docs/css/rdoc.css
110
- - docs/fonts/Lato-Light.ttf
111
- - docs/fonts/Lato-LightItalic.ttf
112
- - docs/fonts/Lato-Regular.ttf
113
- - docs/fonts/Lato-RegularItalic.ttf
114
- - docs/fonts/SourceCodePro-Bold.ttf
115
- - docs/fonts/SourceCodePro-Regular.ttf
116
- - docs/images/add.png
117
- - docs/images/arrow_up.png
118
- - docs/images/brick.png
119
- - docs/images/brick_link.png
120
- - docs/images/bug.png
121
- - docs/images/bullet_black.png
122
- - docs/images/bullet_toggle_minus.png
123
- - docs/images/bullet_toggle_plus.png
124
- - docs/images/date.png
125
- - docs/images/delete.png
126
- - docs/images/find.png
127
- - docs/images/loadingAnimation.gif
128
- - docs/images/macFFBgHack.png
129
- - docs/images/package.png
130
- - docs/images/page_green.png
131
- - docs/images/page_white_text.png
132
- - docs/images/page_white_width.png
133
- - docs/images/plugin.png
134
- - docs/images/ruby.png
135
- - docs/images/tag_blue.png
136
- - docs/images/tag_green.png
137
- - docs/images/transparent.png
138
- - docs/images/wrench.png
139
- - docs/images/wrench_orange.png
140
- - docs/images/zoom.png
141
- - docs/index.html
142
- - docs/js/darkfish.js
143
- - docs/js/navigation.js
144
- - docs/js/navigation.js.gz
145
- - docs/js/search.js
146
- - docs/js/search_index.js
147
- - docs/js/search_index.js.gz
148
- - docs/js/searcher.js
149
- - docs/js/searcher.js.gz
150
- - docs/table_of_contents.html
151
- - lib/geometry.rb
152
- - lib/graph.rb
153
- - lib/numerical_integration.rb
154
- - lib/optimization.rb
155
- - lib/plotter.rb
156
71
  - lib/silicium.rb
157
72
  - lib/silicium/version.rb
158
- - lib/theory_of_probability.rb
159
73
  - silicium.gemspec
160
74
  homepage:
161
75
  licenses:
162
76
  - MIT
163
- metadata:
164
- source_code_uri: https://github.com/mmcs-ruby/silicium
77
+ metadata: {}
165
78
  post_install_message:
166
79
  rdoc_options: []
167
80
  require_paths:
@@ -177,8 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
90
  - !ruby/object:Gem::Version
178
91
  version: '0'
179
92
  requirements: []
180
- rubyforge_project:
181
- rubygems_version: 2.7.7
93
+ rubygems_version: 3.0.3
182
94
  signing_key:
183
95
  specification_version: 4
184
96
  summary: Ruby math library made as exercise by MMCS students .
data/.codeclimate.yml DELETED
@@ -1,4 +0,0 @@
1
- exclude_patterns:
2
- - "html/"
3
- - "test/"
4
- - "docs/"
data/Makefile DELETED
@@ -1,269 +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 = ext/silicium
15
- topdir = /C/Ruby26-x64/include/ruby-2.6.0
16
- hdrdir = $(topdir)
17
- arch_hdrdir = C:/Ruby26-x64/include/ruby-2.6.0/x64-mingw32
18
- PATH_SEPARATOR = :
19
- VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
20
- prefix = $(DESTDIR)/C/Ruby26-x64
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 = $(DESTDIR)/usr/include
54
- includedir = $(prefix)/include
55
- localstatedir = $(prefix)/var
56
- sharedstatedir = $(prefix)/com
57
- sysconfdir = $(DESTDIR)
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_WRAPPER =
67
- CC = x86_64-w64-mingw32-gcc
68
- CXX = x86_64-w64-mingw32-g++
69
- LIBRUBY = lib$(RUBY_SO_NAME).dll.a
70
- LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
71
- LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME)
72
- LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static $(MAINLIBS)
73
- empty =
74
- OUTFLAG = -o $(empty)
75
- COUTFLAG = -o $(empty)
76
- CSRCFLAG = $(empty)
77
-
78
- RUBY_EXTCONF_H =
79
- cflags = $(optflags) $(debugflags) $(warnflags)
80
- cxxflags = $(optflags) $(debugflags) $(warnflags)
81
- optflags = -O3 -fno-omit-frame-pointer
82
- debugflags = -ggdb3
83
- warnflags = -Wall -Wextra -Wdeclaration-after-statement -Wdeprecated-declarations -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wrestrict -Wwrite-strings -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable
84
- cppflags =
85
- CCDLFLAGS =
86
- CFLAGS = $(CCDLFLAGS) -O3 -fno-fast-math $(ARCH_FLAG)
87
- INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
88
- DEFS = -D_FILE_OFFSET_BITS=64
89
- CPPFLAGS = -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0600 -D__MINGW_USE_VC2005_COMPAT $(DEFS) $(cppflags)
90
- CXXFLAGS = $(CCDLFLAGS) -march=x86-64 -mtune=generic -O2 -pipe $(ARCH_FLAG)
91
- ldflags = -L. -pipe -s
92
- dldflags = -pipe -s -Wl,--enable-auto-image-base,--enable-auto-import $(DEFFILE)
93
- ARCH_FLAG =
94
- DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG)
95
- LDSHARED = $(CC) -shared
96
- LDSHAREDXX = $(CXX) -shared
97
- AR = ar
98
- EXEEXT = .exe
99
-
100
- RUBY_INSTALL_NAME = $(RUBY_BASE_NAME)
101
- RUBY_SO_NAME = x64-msvcrt-ruby260
102
- RUBYW_INSTALL_NAME = $(RUBYW_BASE_NAME)
103
- RUBY_VERSION_NAME = $(RUBY_BASE_NAME)-$(ruby_version)
104
- RUBYW_BASE_NAME = rubyw
105
- RUBY_BASE_NAME = ruby
106
-
107
- arch = x64-mingw32
108
- sitearch = x64-msvcrt
109
- ruby_version = 2.6.0
110
- ruby = $(bindir)/$(RUBY_BASE_NAME)
111
- RUBY = $(ruby)
112
- 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
113
-
114
- RM = rm -f
115
- RM_RF = $(RUBY) -run -e rm -- -rf
116
- RMDIRS = rmdir --ignore-fail-on-non-empty -p
117
- MAKEDIRS = /usr/bin/mkdir -p
118
- INSTALL = /usr/bin/install -c
119
- INSTALL_PROG = $(INSTALL) -m 0755
120
- INSTALL_DATA = $(INSTALL) -m 644
121
- COPY = cp
122
- TOUCH = exit >
123
-
124
- #### End of system configuration section. ####
125
-
126
- preload =
127
- libpath = . $(libdir)
128
- LIBPATH = -L. -L$(libdir)
129
- DEFFILE = $(TARGET)-$(arch).def
130
-
131
- CLEANFILES = mkmf.log $(DEFFILE)
132
- DISTCLEANFILES =
133
- DISTCLEANDIRS =
134
-
135
- extout =
136
- extout_prefix =
137
- target_prefix =
138
- LOCAL_LIBS =
139
- LIBS = $(LIBRUBYARG_SHARED) -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi
140
- ORIG_SRCS = silicium.c
141
- SRCS = $(ORIG_SRCS)
142
- OBJS = silicium.o
143
- HDRS =
144
- LOCAL_HDRS =
145
- TARGET = silicium
146
- TARGET_NAME = silicium
147
- TARGET_ENTRY = Init_$(TARGET_NAME)
148
- DLLIB = $(TARGET).so
149
- EXTSTATIC =
150
- STATIC_LIB =
151
-
152
- TIMESTAMP_DIR = .
153
- BINDIR = $(bindir)
154
- RUBYCOMMONDIR = $(sitedir)$(target_prefix)
155
- RUBYLIBDIR = $(sitelibdir)$(target_prefix)
156
- RUBYARCHDIR = $(sitearchdir)$(target_prefix)
157
- HDRDIR = $(rubyhdrdir)/ruby$(target_prefix)
158
- ARCHHDRDIR = $(rubyhdrdir)/$(arch)/ruby$(target_prefix)
159
- TARGET_SO_DIR =
160
- TARGET_SO = $(TARGET_SO_DIR)$(DLLIB)
161
- CLEANLIBS = $(TARGET_SO)
162
- CLEANOBJS = *.o *.bak
163
-
164
- all: $(DLLIB)
165
- static: $(STATIC_LIB)
166
- .PHONY: all install static install-so install-rb
167
- .PHONY: clean clean-so clean-static clean-rb
168
-
169
- clean-static::
170
- clean-rb-default::
171
- clean-rb::
172
- clean-so::
173
- clean: clean-so clean-static clean-rb-default clean-rb
174
- -$(Q)$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES) .*.time
175
-
176
- distclean-rb-default::
177
- distclean-rb::
178
- distclean-so::
179
- distclean-static::
180
- distclean: clean distclean-so distclean-static distclean-rb-default distclean-rb
181
- -$(Q)$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
182
- -$(Q)$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
183
- -$(Q)$(RMDIRS) $(DISTCLEANDIRS) 2> /dev/null || true
184
-
185
- realclean: distclean
186
- install: install-so install-rb
187
-
188
- install-so: $(DLLIB) $(TIMESTAMP_DIR)/.sitearchdir.time
189
- $(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
190
- clean-static::
191
- -$(Q)$(RM) $(STATIC_LIB)
192
- install-rb: pre-install-rb do-install-rb install-rb-default
193
- install-rb-default: pre-install-rb-default do-install-rb-default
194
- pre-install-rb: Makefile
195
- pre-install-rb-default: Makefile
196
- do-install-rb:
197
- do-install-rb-default:
198
- pre-install-rb-default:
199
- @$(NULLCMD)
200
- $(TIMESTAMP_DIR)/.sitearchdir.time:
201
- $(Q) $(MAKEDIRS) $(@D) $(RUBYARCHDIR)
202
- $(Q) $(TOUCH) $@
203
-
204
- site-install: site-install-so site-install-rb
205
- site-install-so: install-so
206
- site-install-rb: install-rb
207
-
208
- .SUFFIXES: .c .m .cc .mm .cxx .cpp .o .S
209
-
210
- .cc.o:
211
- $(ECHO) compiling $(<)
212
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
213
-
214
- .cc.S:
215
- $(ECHO) translating $(<)
216
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
217
-
218
- .mm.o:
219
- $(ECHO) compiling $(<)
220
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
221
-
222
- .mm.S:
223
- $(ECHO) translating $(<)
224
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
225
-
226
- .cxx.o:
227
- $(ECHO) compiling $(<)
228
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
229
-
230
- .cxx.S:
231
- $(ECHO) translating $(<)
232
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
233
-
234
- .cpp.o:
235
- $(ECHO) compiling $(<)
236
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
237
-
238
- .cpp.S:
239
- $(ECHO) translating $(<)
240
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
241
-
242
- .c.o:
243
- $(ECHO) compiling $(<)
244
- $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
245
-
246
- .c.S:
247
- $(ECHO) translating $(<)
248
- $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
249
-
250
- .m.o:
251
- $(ECHO) compiling $(<)
252
- $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
253
-
254
- .m.S:
255
- $(ECHO) translating $(<)
256
- $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
257
-
258
- $(TARGET_SO): $(DEFFILE) $(OBJS) Makefile
259
- $(ECHO) linking shared-object $(DLLIB)
260
- -$(Q)$(RM) $(@)
261
- $(Q) $(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
262
-
263
-
264
-
265
- $(DEFFILE):
266
- $(ECHO) generating $(@)
267
- $(Q) (echo EXPORTS && echo $(TARGET_ENTRY)) > $@
268
-
269
- $(OBJS): $(HDRS) $(ruby_headers)