diff options
| author | Daniel Bovensiepen <[email protected]> | 2012-11-23 22:49:21 +0800 |
|---|---|---|
| committer | Daniel Bovensiepen <[email protected]> | 2012-11-23 22:49:21 +0800 |
| commit | cc382f9bacf43e901ec2c87616c987c7f0a3e686 (patch) | |
| tree | 78cdadbde2258c2108f563b54e2209abd78a21b8 /Makefile | |
| parent | 3d81ed3dc17e1112e9e47877946dea78a366a663 (diff) | |
| download | mruby-cc382f9bacf43e901ec2c87616c987c7f0a3e686.tar.gz mruby-cc382f9bacf43e901ec2c87616c987c7f0a3e686.zip | |
Add the usage of MRUBY_ROOT to the mrbgems build system, so that we can easily build everywhere
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -7,6 +7,8 @@ export LL = gcc export AR = ar export YACC = bison +MRUBY_ROOT := $(realpath .) + ifeq ($(strip $(ENABLE_GEMS)),) # by default GEMs are deactivated ENABLE_GEMS = false @@ -32,9 +34,9 @@ endif ALL_CFLAGS = -Wall -Werror-implicit-function-declaration $(CFLAGS) ifeq ($(OS),Windows_NT) - MAKE_FLAGS = --no-print-directory CC=$(CC) LL=$(LL) ALL_CFLAGS='$(ALL_CFLAGS)' ENABLE_GEMS='$(ENABLE_GEMS)' ACTIVE_GEMS='$(ACTIVE_GEMS)' + MAKE_FLAGS = --no-print-directory CC=$(CC) LL=$(LL) ALL_CFLAGS='$(ALL_CFLAGS)' ENABLE_GEMS='$(ENABLE_GEMS)' ACTIVE_GEMS='$(ACTIVE_GEMS)' MRUBY_ROOT='$(MRUBY_ROOT)' else - MAKE_FLAGS = --no-print-directory CC='$(CC)' LL='$(LL)' ALL_CFLAGS='$(ALL_CFLAGS)' ENABLE_GEMS='$(ENABLE_GEMS)' ACTIVE_GEMS='$(ACTIVE_GEMS)' + MAKE_FLAGS = --no-print-directory CC='$(CC)' LL='$(LL)' ALL_CFLAGS='$(ALL_CFLAGS)' ENABLE_GEMS='$(ENABLE_GEMS)' ACTIVE_GEMS='$(ACTIVE_GEMS)' MRUBY_ROOT='$(MRUBY_ROOT)' endif ############################## |
