diff options
| author | Yuichiro MASUI <[email protected]> | 2012-12-22 01:38:06 +0900 |
|---|---|---|
| committer | Yuichiro MASUI <[email protected]> | 2012-12-22 01:38:06 +0900 |
| commit | dee0b2283c180c4e2584ff27dcb241a80fb7cfc2 (patch) | |
| tree | 9e1a6e1f1c3cf399aa51ce88d328a24fe62bb227 /doc | |
| parent | 429359819a9a3155984c134f62976a42d314244c (diff) | |
| download | mruby-dee0b2283c180c4e2584ff27dcb241a80fb7cfc2.tar.gz mruby-dee0b2283c180c4e2584ff27dcb241a80fb7cfc2.zip | |
Add MRUBY_CFLAGS / MRUBY_LDFLAGS to mrbgems
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/mrbgems/c_and_ruby_extension_example/.gitignore | 7 | ||||
| -rw-r--r-- | doc/mrbgems/c_and_ruby_extension_example/Makefile | 5 | ||||
| -rw-r--r-- | doc/mrbgems/c_extension_example/.gitignore | 7 | ||||
| -rw-r--r-- | doc/mrbgems/c_extension_example/Makefile | 5 | ||||
| -rw-r--r-- | doc/mrbgems/c_extension_example/test/example.c | 9 | ||||
| -rw-r--r-- | doc/mrbgems/ruby_extension_example/.gitignore | 7 | ||||
| -rw-r--r-- | doc/mrbgems/ruby_extension_example/Makefile | 5 |
7 files changed, 42 insertions, 3 deletions
diff --git a/doc/mrbgems/c_and_ruby_extension_example/.gitignore b/doc/mrbgems/c_and_ruby_extension_example/.gitignore index e6ad3b5cf..186584eb0 100644 --- a/doc/mrbgems/c_and_ruby_extension_example/.gitignore +++ b/doc/mrbgems/c_and_ruby_extension_example/.gitignore @@ -1,3 +1,8 @@ -gem_mixlib.c +# mrbgems +*.tmp *.ctmp *.rbtmp +gem_mixlib.c +gem_mrblib.c +gem_srclib.c + diff --git a/doc/mrbgems/c_and_ruby_extension_example/Makefile b/doc/mrbgems/c_and_ruby_extension_example/Makefile index 57912a936..ba89e4ba4 100644 --- a/doc/mrbgems/c_and_ruby_extension_example/Makefile +++ b/doc/mrbgems/c_and_ruby_extension_example/Makefile @@ -7,6 +7,11 @@ GEM_OBJECTS := $(patsubst %.c, %.o, $(GEM_C_FILES)) GEM_RB_FILES := $(wildcard $(MRB_DIR)/*.rb) +MRUBY_CFLAGS := +MRUBY_LDFLAGS := + gem-all : $(GEM_OBJECTS) gem-c-and-rb-files gem-clean : gem-clean-c-and-rb-files + +gem-test : gem-test-c-and-rb-files diff --git a/doc/mrbgems/c_extension_example/.gitignore b/doc/mrbgems/c_extension_example/.gitignore index e1ef5dc27..186584eb0 100644 --- a/doc/mrbgems/c_extension_example/.gitignore +++ b/doc/mrbgems/c_extension_example/.gitignore @@ -1,3 +1,8 @@ -gem_srclib.c +# mrbgems +*.tmp *.ctmp *.rbtmp +gem_mixlib.c +gem_mrblib.c +gem_srclib.c + diff --git a/doc/mrbgems/c_extension_example/Makefile b/doc/mrbgems/c_extension_example/Makefile index 339669970..556b12d55 100644 --- a/doc/mrbgems/c_extension_example/Makefile +++ b/doc/mrbgems/c_extension_example/Makefile @@ -5,6 +5,11 @@ include $(MAKEFILE_4_GEM) GEM_C_FILES := $(wildcard $(SRC_DIR)/*.c) GEM_OBJECTS := $(patsubst %.c, %.o, $(GEM_C_FILES)) +MRUBY_CFLAGS := +MRUBY_LDFLAGS := + gem-all : $(GEM_OBJECTS) gem-c-files gem-clean : gem-clean-c-files + +gem-test : gem-test-c-files diff --git a/doc/mrbgems/c_extension_example/test/example.c b/doc/mrbgems/c_extension_example/test/example.c new file mode 100644 index 000000000..430e87f19 --- /dev/null +++ b/doc/mrbgems/c_extension_example/test/example.c @@ -0,0 +1,9 @@ +/* + if *.c exists in test directory, auto generate this file +*/ + +void +mrb_c_extension_example_gem_test_init(mrb_state *mrb) +{ + /* test initializer in C */ +} diff --git a/doc/mrbgems/ruby_extension_example/.gitignore b/doc/mrbgems/ruby_extension_example/.gitignore index 0e23b7ac6..186584eb0 100644 --- a/doc/mrbgems/ruby_extension_example/.gitignore +++ b/doc/mrbgems/ruby_extension_example/.gitignore @@ -1,3 +1,8 @@ -gem_mrblib.c +# mrbgems +*.tmp *.ctmp *.rbtmp +gem_mixlib.c +gem_mrblib.c +gem_srclib.c + diff --git a/doc/mrbgems/ruby_extension_example/Makefile b/doc/mrbgems/ruby_extension_example/Makefile index 9c5026744..903666267 100644 --- a/doc/mrbgems/ruby_extension_example/Makefile +++ b/doc/mrbgems/ruby_extension_example/Makefile @@ -4,6 +4,11 @@ include $(MAKEFILE_4_GEM) GEM_RB_FILES := $(wildcard $(MRB_DIR)/*.rb) +MRUBY_CFLAGS := +MRUBY_LDFLAGS := + gem-all : gem-rb-files gem-clean : gem-clean-rb-files + +gem-test : gem-test-rb-files |
