summaryrefslogtreecommitdiffhomepage
path: root/doc/mrbgems/ruby_extension_example
diff options
context:
space:
mode:
authorYuichiro MASUI <[email protected]>2012-12-29 05:37:55 +0900
committerYuichiro MASUI <[email protected]>2013-01-03 02:24:15 +0900
commit7c469c0b9dadd1de09fed18c3e5cc551012c38c1 (patch)
treeb79aa703ef7c528896c4f1be8280d0691314008b /doc/mrbgems/ruby_extension_example
parenta48fc0d7952ad1f10ae777637269fe6a3f9ad0a2 (diff)
downloadmruby-7c469c0b9dadd1de09fed18c3e5cc551012c38c1.tar.gz
mruby-7c469c0b9dadd1de09fed18c3e5cc551012c38c1.zip
Rebuild CRuby based building script without Makefile
Tested CRuby 1.8.6 and 1.9.3 You can see building configuration in build_config.rb
Diffstat (limited to 'doc/mrbgems/ruby_extension_example')
-rw-r--r--doc/mrbgems/ruby_extension_example/.gitignore10
-rw-r--r--doc/mrbgems/ruby_extension_example/Makefile15
-rw-r--r--doc/mrbgems/ruby_extension_example/mrbgem.rake17
3 files changed, 20 insertions, 22 deletions
diff --git a/doc/mrbgems/ruby_extension_example/.gitignore b/doc/mrbgems/ruby_extension_example/.gitignore
index 186584eb0..af1362229 100644
--- a/doc/mrbgems/ruby_extension_example/.gitignore
+++ b/doc/mrbgems/ruby_extension_example/.gitignore
@@ -1,8 +1,4 @@
# mrbgems
-*.tmp
-*.ctmp
-*.rbtmp
-gem_mixlib.c
-gem_mrblib.c
-gem_srclib.c
-
+*.d
+gem_init.c
+gem_test.c
diff --git a/doc/mrbgems/ruby_extension_example/Makefile b/doc/mrbgems/ruby_extension_example/Makefile
deleted file mode 100644
index cdcbce024..000000000
--- a/doc/mrbgems/ruby_extension_example/Makefile
+++ /dev/null
@@ -1,15 +0,0 @@
-GEM := ruby_extension_example
-
-include $(MAKEFILE_4_GEM)
-
-GEM_RB_FILES := $(wildcard $(MRB_DIR)/*.rb)
-
-MRUBY_CFLAGS :=
-MRUBY_LDFLAGS :=
-MRUBY_LIBS :=
-
-gem-all : gem-rb-files
-
-gem-clean : gem-clean-rb-files
-
-gem-test : gem-test-rb-files
diff --git a/doc/mrbgems/ruby_extension_example/mrbgem.rake b/doc/mrbgems/ruby_extension_example/mrbgem.rake
new file mode 100644
index 000000000..80a299187
--- /dev/null
+++ b/doc/mrbgems/ruby_extension_example/mrbgem.rake
@@ -0,0 +1,17 @@
+MRuby::Gem::Specification.new('ruby_extension_example') do |spec|
+ spec.license = 'MIT'
+ spec.authors = 'mruby developers'
+
+ # spec.cflags = ''
+
+ # spec.mruby_cflags = ''
+ # spec.mruby_ldflags = ''
+ # spec.mruby_libs = ''
+ # spec.mruby_includes = ["#{spec.dir}/include"]
+
+ # spec.rbfiles = Dir.glob("#{dir}/mrblib/*.rb")
+ # spec.objs = Dir.glob("#{dir}/src/*.{c,cpp,m,asm,S}").map { |f| f.relative_path_from(dir).pathmap("#{build_dir}/%X.o") }
+ # spec.test_rbfiles = Dir.glob("#{dir}/test/*.rb")
+ # spec.test_objs = Dir.glob("#{dir}/test/*.{c,cpp,m,asm,S}").map { |f| f.relative_path_from(dir).pathmap("#{build_dir}/%X.o") }
+ # spec.test_preload = 'test/assert.rb'
+end