summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDaniel Bovensiepen <[email protected]>2012-09-13 22:31:23 +0900
committerDaniel Bovensiepen <[email protected]>2012-09-13 22:31:23 +0900
commita941934045e9c63eb9a620e3e516b377a42e0943 (patch)
tree135ec2f4e4c048517b89232a427cb106495a94e1
parentf89e722ef09211d3e5b39344c6df66217966f8df (diff)
downloadmruby-a941934045e9c63eb9a620e3e516b377a42e0943.tar.gz
mruby-a941934045e9c63eb9a620e3e516b377a42e0943.zip
Add TODOs to finalize gems
-rw-r--r--mrbgems/Makefile4
-rw-r--r--mrbgems/init_gems.c2
-rw-r--r--mrbgems/md5/README.md4
-rw-r--r--mrblib/Makefile5
4 files changed, 13 insertions, 2 deletions
diff --git a/mrbgems/Makefile b/mrbgems/Makefile
index 7f2157032..368488926 100644
--- a/mrbgems/Makefile
+++ b/mrbgems/Makefile
@@ -12,10 +12,14 @@ CC_FLAGS := -Wall -Werror-implicit-function-declaration -g -O3 -MMD -I. -I./../i
.PHONY : all
all : $(INIT).o
+# @TODO:
+# all available GEMS have to be built
$(INIT).o : $(INIT).c
gcc $(CC_FLAGS) -c $(INIT).c -o $(INIT).o
@$(MAKE) -C md5
+# @TODO:
+# all available GEMS have to be cleaned
.PHONY : clean
clean :
$(RM_F) $(INIT).o $(INIT).d $(LIBRGEMS)
diff --git a/mrbgems/init_gems.c b/mrbgems/init_gems.c
index 302720da4..02024d5a2 100644
--- a/mrbgems/init_gems.c
+++ b/mrbgems/init_gems.c
@@ -3,6 +3,8 @@
* initializing methods necessary to
* bootstrap every gem.
*
+ * @TODO:
+ * this file has to be generated based on the active gems
*/
#include "mruby.h"
diff --git a/mrbgems/md5/README.md b/mrbgems/md5/README.md
index c96475aa1..d84bb9941 100644
--- a/mrbgems/md5/README.md
+++ b/mrbgems/md5/README.md
@@ -1,4 +1,6 @@
mruby-md5
=========
-MD5 digest function
+MD5 digest function.
+
+This library comes original from mattn (http://github.com/mattn/mruby-md5)
diff --git a/mrblib/Makefile b/mrblib/Makefile
index 9b6badd09..c3817e334 100644
--- a/mrblib/Makefile
+++ b/mrblib/Makefile
@@ -14,6 +14,7 @@ MRB1 := $(BASEDIR)/*.rb
MRBS := $(MRB1)
LIBR0 := ../lib/libmruby_core.a
LIBR := ../lib/libmruby.a
+GEM0 := ../mrbgems/md5/
# libraries, includes
INCLUDES = -I../src -I../include
@@ -52,10 +53,12 @@ endif
.PHONY : all
all : $(LIBR)
+# TODO:
+# all available GEMS have to be added to the main library
# update libmruby.a
$(LIBR) : $(MLIB) $(LIBR0)
$(CP) $(LIBR0) $(LIBR)
- $(AR) rs $(LIBR) ../mrbgems/md5/md5.o ../mrbgems/md5/mrb_md5.o ../mrbgems/init_gems.o $(MLIB)
+ $(AR) rs $(LIBR) $(GEM0)md5.o $(GEM0)mrb_md5.o ../mrbgems/init_gems.o $(MLIB)
# Compile mrblib source
$(MLIB) : $(CLIB)