diff options
| author | Daniel Bovensiepen <[email protected]> | 2012-11-21 15:57:41 +0800 |
|---|---|---|
| committer | Daniel Bovensiepen <[email protected]> | 2012-11-21 15:57:41 +0800 |
| commit | 1e4d20a766a3483fb9be1518253864d5082dbf9d (patch) | |
| tree | e75ebd82799ed674bd978077aee03d77f5fecf64 /tools | |
| parent | a9513c1d1dd89bd23f3220e3dab37e52a6ed0ae1 (diff) | |
| download | mruby-1e4d20a766a3483fb9be1518253864d5082dbf9d.tar.gz mruby-1e4d20a766a3483fb9be1518253864d5082dbf9d.zip | |
Include dynamically GEMs into mirb
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/mirb/Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tools/mirb/Makefile b/tools/mirb/Makefile index 8dbbc52b3..2729c4829 100644 --- a/tools/mirb/Makefile +++ b/tools/mirb/Makefile @@ -3,9 +3,18 @@ # project-specific macros # extension of the executable-file is modifiable(.exe .out ...) +MRUBY_ROOT := ../.. BASEDIR = ../../src TARGET := ../../bin/mirb LIBR := ../../lib/libmruby.a + +MAKEFILE_GEM_LIST := $(MRUBY_ROOT)/mrbgems/g/MakefileGemList +ifeq ($(wildcard $(MAKEFILE_GEM_LIST)),) + GEM_ARCHIVE_FILES = +else + include $(MAKEFILE_GEM_LIST) +endif + ifeq ($(OS),Windows_NT) EXE := $(TARGET).exe else @@ -49,7 +58,7 @@ all : $(LIBR) $(EXE) # executable constructed using linker from object files $(EXE) : $(LIBR) $(OBJS) $(EXTS) - $(LL) -o $@ $(CFLAGS) $(OBJS) $(LIBR) $(EXTS) $(LIBS) + $(LL) -o $@ $(CFLAGS) $(OBJS) $(LIBR) $(GEM_ARCHIVE_FILES) $(EXTS) $(LIBS) -include $(OBJS:.o=.d) |
