Commit 3e3a8c18 authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

avoid updating existing libmruby.a to avoid problems on low time resolution...

avoid updating existing libmruby.a to avoid problems on low time resolution file systems; close #136
parent 74e531ec
...@@ -12,6 +12,7 @@ RLIB := $(TARGET).rbtmp ...@@ -12,6 +12,7 @@ RLIB := $(TARGET).rbtmp
DEPLIB := $(TARGET).d DEPLIB := $(TARGET).d
MRB1 := $(BASEDIR)/*.rb MRB1 := $(BASEDIR)/*.rb
MRBS := $(MRB1) MRBS := $(MRB1)
LIBR0 := ../lib/libmruby_core.a
LIBR := ../lib/libmruby.a LIBR := ../lib/libmruby.a
# C compiler (gcc) # C compiler (gcc)
...@@ -47,6 +48,7 @@ all : $(LIBR) ...@@ -47,6 +48,7 @@ all : $(LIBR)
# update libmruby.a # update libmruby.a
$(LIBR) : $(MLIB) $(LIBR) : $(MLIB)
cp $(LIBR0) $(LIBR)
$(AR) r $(LIBR) $(MLIB) $(AR) r $(LIBR) $(MLIB)
# Compile mrblib source # Compile mrblib source
...@@ -69,4 +71,3 @@ $(RLIB) : $(MRBS) ...@@ -69,4 +71,3 @@ $(RLIB) : $(MRBS)
clean : clean :
@echo "make: removing targets, objects and depend files of `pwd`" @echo "make: removing targets, objects and depend files of `pwd`"
-rm -f $(MRBC) $(MLIB) $(CLIB) $(RLIB) $(DLIB) $(DEPLIB) -rm -f $(MRBC) $(MLIB) $(CLIB) $(RLIB) $(DLIB) $(DEPLIB)
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# project-specific macros # project-specific macros
# extension of the executable-file is modifiable(.exe .out ...) # extension of the executable-file is modifiable(.exe .out ...)
BASEDIR = . BASEDIR = .
TARGET := ../lib/libmruby.a TARGET := ../lib/libmruby_core.a
YSRC := $(BASEDIR)/parse.y YSRC := $(BASEDIR)/parse.y
YC := $(BASEDIR)/y.tab.c YC := $(BASEDIR)/y.tab.c
EXCEPT1 := $(YC) $(BASEDIR)/minimain.c EXCEPT1 := $(YC) $(BASEDIR)/minimain.c
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
# extension of the executable-file is modifiable(.exe .out ...) # extension of the executable-file is modifiable(.exe .out ...)
BASEDIR := ../../src BASEDIR := ../../src
TARGET := ../../bin/mrbc TARGET := ../../bin/mrbc
LIBR := ../../lib/libmruby.a LIBR := ../../lib/libmruby_core.a
ifeq ($(OS),Windows_NT) ifeq ($(OS),Windows_NT)
EXE := $(TARGET).exe EXE := $(TARGET).exe
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment