diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-05-02 16:46:13 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-05-02 16:46:13 +0900 |
| commit | 0026d5ff8259ce18bde1bebf3be938dce1ca2227 (patch) | |
| tree | 4366a94ccb89cf9b949cdb37068bc2a07ca8c178 /mrblib | |
| parent | af2ceeb5bf535d0bd0c98f91f8fb99ada638d6a1 (diff) | |
| download | mruby-0026d5ff8259ce18bde1bebf3be938dce1ca2227.tar.gz mruby-0026d5ff8259ce18bde1bebf3be938dce1ca2227.zip | |
run make -c mrblib from top
Diffstat (limited to 'mrblib')
| -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 |
