From db999237bc0f9d8e9aed5f22f41b780884ceb6b8 Mon Sep 17 00:00:00 2001 From: Yukihiro Matsumoto Date: Mon, 30 Apr 2012 10:58:36 +0900 Subject: build process restructured --- mrblib/Makefile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'mrblib') 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) -- cgit v1.2.3