summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Bovensiepen <[email protected]>2012-11-23 22:49:21 +0800
committerDaniel Bovensiepen <[email protected]>2012-11-23 22:49:21 +0800
commitcc382f9bacf43e901ec2c87616c987c7f0a3e686 (patch)
tree78cdadbde2258c2108f563b54e2209abd78a21b8 /Makefile
parent3d81ed3dc17e1112e9e47877946dea78a366a663 (diff)
downloadmruby-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--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 2174eef7b..475db6440 100644
--- a/Makefile
+++ b/Makefile
@@ -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
##############################