diff options
| author | Daniel Bovensiepen <[email protected]> | 2012-11-21 15:57:24 +0800 |
|---|---|---|
| committer | Daniel Bovensiepen <[email protected]> | 2012-11-21 15:57:24 +0800 |
| commit | a9513c1d1dd89bd23f3220e3dab37e52a6ed0ae1 (patch) | |
| tree | 3c86db69871454003ff6a8c07e929beb05da2d48 /test | |
| parent | a9df6f85e67bb5af1e76447248fe95aedd2ec83e (diff) | |
| download | mruby-a9513c1d1dd89bd23f3220e3dab37e52a6ed0ae1.tar.gz mruby-a9513c1d1dd89bd23f3220e3dab37e52a6ed0ae1.zip | |
Include dynamically GEMs into mrbtest
Diffstat (limited to 'test')
| -rw-r--r-- | test/Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/Makefile b/test/Makefile index a4d8b7c0b..1cadd90a2 100644 --- a/test/Makefile +++ b/test/Makefile @@ -3,9 +3,18 @@ # project-specific macros # extension of the executable-file is modifiable(.exe .out ...) +MRUBY_ROOT := .. BASEDIR = . TARGET := mrbtest 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 + MLIB := $(TARGET).o CLIB := $(TARGET).c INIT := init_$(TARGET).c @@ -77,7 +86,7 @@ all : $(EXE) $(MRUBY) $(TESTRB) $(TESTMRB) # executable constructed using linker from object files $(EXE) : $(OBJS) $(LIBR) - $(LL) -o $@ $(CFLAGS) $(OBJS) $(LIBR) $(LIBS) + $(LL) -o $@ $(CFLAGS) $(OBJS) $(LIBR) $(GEM_ARCHIVE_FILES) $(LIBS) -include $(OBJS:.o=.d) |
