Add MRUBY_CFLAGS / MRUBY_LDFLAGS to mrbgems

This commit is contained in:
Yuichiro MASUI
2012-12-22 01:38:06 +09:00
parent 429359819a
commit dee0b2283c
14 changed files with 144 additions and 38 deletions
@@ -1,3 +1,8 @@
gem_mixlib.c
# mrbgems
*.tmp
*.ctmp
*.rbtmp
gem_mixlib.c
gem_mrblib.c
gem_srclib.c
@@ -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
+6 -1
View File
@@ -1,3 +1,8 @@
gem_srclib.c
# mrbgems
*.tmp
*.ctmp
*.rbtmp
gem_mixlib.c
gem_mrblib.c
gem_srclib.c
+5
View File
@@ -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
@@ -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 */
}
@@ -1,3 +1,8 @@
gem_mrblib.c
# mrbgems
*.tmp
*.ctmp
*.rbtmp
gem_mixlib.c
gem_mrblib.c
gem_srclib.c
@@ -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