Add TODOs to finalize gems

This commit is contained in:
Daniel Bovensiepen
2012-09-13 22:31:23 +09:00
parent f89e722ef0
commit a941934045
4 changed files with 13 additions and 2 deletions
+4
View File
@@ -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)
+2
View File
@@ -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"
+3 -1
View File
@@ -1,4 +1,6 @@
mruby-md5
=========
MD5 digest function
MD5 digest function.
This library comes original from mattn (http://github.com/mattn/mruby-md5)
+4 -1
View File
@@ -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)