summaryrefslogtreecommitdiffhomepage
path: root/mrblib
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-04-30 10:58:36 +0900
committerYukihiro Matsumoto <[email protected]>2012-04-30 10:58:36 +0900
commitdb999237bc0f9d8e9aed5f22f41b780884ceb6b8 (patch)
tree93e443677acc3c3a6c551854e8ca2357bb1a70e5 /mrblib
parentf8fb9474aad9ffc6921755eda3006475f556c4ea (diff)
downloadmruby-db999237bc0f9d8e9aed5f22f41b780884ceb6b8.tar.gz
mruby-db999237bc0f9d8e9aed5f22f41b780884ceb6b8.zip
build process restructured
Diffstat (limited to 'mrblib')
-rw-r--r--mrblib/Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/mrblib/Makefile b/mrblib/Makefile
index ef60654fd..ea08ca1ec 100644
--- a/mrblib/Makefile
+++ b/mrblib/Makefile
@@ -1,6 +1,5 @@
# makefile discription.
-# basic build file for RiteVM library
-# 11.Oct.2011 coded by Hiroshi Mimaki.
+# basic build file for mruby library (Ruby part)
# project-specific macros
# extension of the executable-file is modifiable(.exe .out ...)
@@ -24,7 +23,11 @@ CFLAGS = -O3
endif
INCLUDES = -I../src -I../include
ALL_CFLAGS = -Wall -Werror-implicit-function-declaration $(CFLAGS)
-MAKE_FLAGS = --no-print-directory CC=$(CC) LL=$(LL)
+ifeq ($(OS),Windows_NT)
+ MAKE_FLAGS = CC=$(CC) LL=$(LL) ALL_CFLAGS="$(ALL_CFLAGS)"
+else
+ MAKE_FLAGS = CC='$(CC)' LL='$(LL)' ALL_CFLAGS='$(ALL_CFLAGS)'
+endif
# mruby compiler
ifeq ($(OS),Windows_NT)
@@ -58,8 +61,7 @@ $(RLIB) : $(MRBS)
# clean up
.PHONY : clean
clean :
- -rm -f $(MRBC) $(MLIB) $(CLIB) $(RLIB) $(DLIB)
- -rm -f $(patsubst %.c,%.d,$(CLIB))
- -rm -f $(patsubst %.c,%.o,$(EXCEPT1)) $(patsubst %.c,%.d,$(EXCEPT1))
@echo "make: removing targets, objects and depend files of `pwd`"
+ -rm -f $(MRBC) $(MLIB) $(CLIB) $(RLIB) $(DLIB)
+ -rm -f $(OBJS:.o=.d)