diff options
Diffstat (limited to 'mrblib/Makefile')
| -rw-r--r-- | mrblib/Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
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 |
