From 0026d5ff8259ce18bde1bebf3be938dce1ca2227 Mon Sep 17 00:00:00 2001 From: Yukihiro Matsumoto Date: Wed, 2 May 2012 16:46:13 +0900 Subject: run make -c mrblib from top --- mrblib/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mrblib') diff --git a/mrblib/Makefile b/mrblib/Makefile index 8f4787e6e..10cf654cd 100644 --- a/mrblib/Makefile +++ b/mrblib/Makefile @@ -12,10 +12,17 @@ RLIB := $(TARGET).rbtmp DEPLIB := $(TARGET).d MRB1 := $(BASEDIR)/*.rb MRBS := $(MRB1) +LIB := ../lib/mruby +ifeq ($(OS),Windows_NT) +LIBR := $(LIB).lib +else +LIBR := $(LIB).a +endif # C compiler (gcc) CC = gcc LL = gcc +AR = ar DEBUG_MODE = 1 ifeq ($(DEBUG_MODE),1) CFLAGS = -g @@ -42,6 +49,7 @@ endif .PHONY : all all : $(MRBC) $(MLIB) + $(AR) r $(LIBR) $(MLIB) @echo "make: built targets of `pwd`" # Compile mrblib source -- cgit v1.2.3