зеркало из https://github.com/github/ruby.git
* Makefile.in, */Makefile.sub (VPATH): add enc directory.
* common.mk (ENCOBJS): encoding objects. * enc: directory for encodings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
5fc7312d1b
Коммит
72483cdcca
|
@ -1,3 +1,11 @@
|
||||||
|
Thu Oct 11 06:35:43 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* Makefile.in, */Makefile.sub (VPATH): add enc directory.
|
||||||
|
|
||||||
|
* common.mk (ENCOBJS): encoding objects.
|
||||||
|
|
||||||
|
* enc: directory for encodings.
|
||||||
|
|
||||||
Thu Oct 11 00:04:37 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Thu Oct 11 00:04:37 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* include/ruby/oniguruma.h (OnigEncodingTypeST): add OnigEncoding
|
* include/ruby/oniguruma.h (OnigEncodingTypeST): add OnigEncoding
|
||||||
|
|
|
@ -33,7 +33,7 @@ RDOCTARGET = @RDOCTARGET@
|
||||||
EXTOUT = @EXTOUT@
|
EXTOUT = @EXTOUT@
|
||||||
RIDATADIR = $(DESTDIR)$(datadir)/ri/$(MAJOR).$(MINOR)/system
|
RIDATADIR = $(DESTDIR)$(datadir)/ri/$(MAJOR).$(MINOR)/system
|
||||||
arch_hdrdir = $(EXTOUT)/include/$(arch)
|
arch_hdrdir = $(EXTOUT)/include/$(arch)
|
||||||
VPATH = $(arch_hdrdir)/ruby:$(hdrdir)/ruby:$(srcdir):$(srcdir)/missing
|
VPATH = $(arch_hdrdir)/ruby:$(hdrdir)/ruby:$(srcdir):$(srcdir)/enc:$(srcdir)/missing
|
||||||
|
|
||||||
empty =
|
empty =
|
||||||
OUTFLAG = @OUTFLAG@$(empty)
|
OUTFLAG = @OUTFLAG@$(empty)
|
||||||
|
|
|
@ -190,9 +190,9 @@ MINIOBJS = dmydln.$(OBJEXT)
|
||||||
|
|
||||||
arch_hdrdir = $(EXTOUT)/include/$(arch)
|
arch_hdrdir = $(EXTOUT)/include/$(arch)
|
||||||
hdrdir = $(srcdir)/include
|
hdrdir = $(srcdir)/include
|
||||||
VPATH = $(arch_hdrdir)/ruby;$(hdrdir)/ruby;$(srcdir);$(srcdir)/missing;$(srcdir)/win32
|
VPATH = $(arch_hdrdir)/ruby;$(hdrdir)/ruby;$(srcdir);$(srcdir)/enc;$(srcdir)/missing;$(srcdir)/win32
|
||||||
|
|
||||||
.path.c = .;$(srcdir);$(srcdir)/win32;$(srcdir)/missing
|
.path.c = .;$(srcdir);$(srcdir)/enc;$(srcdir)/win32;$(srcdir)/missing
|
||||||
.path.ci = $(srcdir)
|
.path.ci = $(srcdir)
|
||||||
.path.inc = .;$(srcdir)
|
.path.inc = .;$(srcdir)
|
||||||
.path.def = .;$(srcdir)
|
.path.def = .;$(srcdir)
|
||||||
|
|
35
common.mk
35
common.mk
|
@ -18,8 +18,13 @@ MAINOBJ = main.$(OBJEXT)
|
||||||
EXTOBJS =
|
EXTOBJS =
|
||||||
DLDOBJS = $(DMYEXT)
|
DLDOBJS = $(DMYEXT)
|
||||||
|
|
||||||
|
ENCOBJS = ascii.$(OBJEXT) \
|
||||||
|
euc_jp.$(OBJEXT) \
|
||||||
|
sjis.$(OBJEXT) \
|
||||||
|
unicode.$(OBJEXT) \
|
||||||
|
utf8.$(OBJEXT)
|
||||||
|
|
||||||
OBJS = array.$(OBJEXT) \
|
OBJS = array.$(OBJEXT) \
|
||||||
ascii.$(OBJEXT) \
|
|
||||||
bignum.$(OBJEXT) \
|
bignum.$(OBJEXT) \
|
||||||
class.$(OBJEXT) \
|
class.$(OBJEXT) \
|
||||||
compar.$(OBJEXT) \
|
compar.$(OBJEXT) \
|
||||||
|
@ -29,7 +34,6 @@ OBJS = array.$(OBJEXT) \
|
||||||
enum.$(OBJEXT) \
|
enum.$(OBJEXT) \
|
||||||
enumerator.$(OBJEXT) \
|
enumerator.$(OBJEXT) \
|
||||||
error.$(OBJEXT) \
|
error.$(OBJEXT) \
|
||||||
euc_jp.$(OBJEXT) \
|
|
||||||
eval.$(OBJEXT) \
|
eval.$(OBJEXT) \
|
||||||
eval_load.$(OBJEXT) \
|
eval_load.$(OBJEXT) \
|
||||||
proc.$(OBJEXT) \
|
proc.$(OBJEXT) \
|
||||||
|
@ -57,14 +61,11 @@ OBJS = array.$(OBJEXT) \
|
||||||
regsyntax.$(OBJEXT) \
|
regsyntax.$(OBJEXT) \
|
||||||
ruby.$(OBJEXT) \
|
ruby.$(OBJEXT) \
|
||||||
signal.$(OBJEXT) \
|
signal.$(OBJEXT) \
|
||||||
sjis.$(OBJEXT) \
|
|
||||||
sprintf.$(OBJEXT) \
|
sprintf.$(OBJEXT) \
|
||||||
st.$(OBJEXT) \
|
st.$(OBJEXT) \
|
||||||
string.$(OBJEXT) \
|
string.$(OBJEXT) \
|
||||||
struct.$(OBJEXT) \
|
struct.$(OBJEXT) \
|
||||||
time.$(OBJEXT) \
|
time.$(OBJEXT) \
|
||||||
unicode.$(OBJEXT) \
|
|
||||||
utf8.$(OBJEXT) \
|
|
||||||
util.$(OBJEXT) \
|
util.$(OBJEXT) \
|
||||||
variable.$(OBJEXT) \
|
variable.$(OBJEXT) \
|
||||||
version.$(OBJEXT) \
|
version.$(OBJEXT) \
|
||||||
|
@ -78,6 +79,7 @@ OBJS = array.$(OBJEXT) \
|
||||||
cont.$(OBJEXT) \
|
cont.$(OBJEXT) \
|
||||||
id.$(OBJEXT) \
|
id.$(OBJEXT) \
|
||||||
prelude.$(OBJEXT) \
|
prelude.$(OBJEXT) \
|
||||||
|
$(ENCOBJS) \
|
||||||
$(MISSING)
|
$(MISSING)
|
||||||
|
|
||||||
SCRIPT_ARGS = --dest-dir="$(DESTDIR)" \
|
SCRIPT_ARGS = --dest-dir="$(DESTDIR)" \
|
||||||
|
@ -383,8 +385,6 @@ win32.$(OBJEXT): {$(VPATH)}win32.c
|
||||||
array.$(OBJEXT): {$(VPATH)}array.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
|
array.$(OBJEXT): {$(VPATH)}array.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
|
||||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h \
|
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h \
|
||||||
{$(VPATH)}util.h {$(VPATH)}st.h
|
{$(VPATH)}util.h {$(VPATH)}st.h
|
||||||
ascii.$(OBJEXT): {$(VPATH)}ascii.c {$(VPATH)}regenc.h \
|
|
||||||
{$(VPATH)}oniguruma.h {$(VPATH)}config.h {$(VPATH)}defines.h
|
|
||||||
bignum.$(OBJEXT): {$(VPATH)}bignum.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
|
bignum.$(OBJEXT): {$(VPATH)}bignum.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
|
||||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h
|
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h
|
||||||
class.$(OBJEXT): {$(VPATH)}class.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
|
class.$(OBJEXT): {$(VPATH)}class.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
|
||||||
|
@ -415,8 +415,6 @@ error.$(OBJEXT): {$(VPATH)}error.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
|
||||||
{$(VPATH)}st.h {$(VPATH)}vm_opts.h {$(VPATH)}signal.h \
|
{$(VPATH)}st.h {$(VPATH)}vm_opts.h {$(VPATH)}signal.h \
|
||||||
{$(VPATH)}vm_core.h {$(VPATH)}id.h {$(VPATH)}node.h {$(VPATH)}debug.h \
|
{$(VPATH)}vm_core.h {$(VPATH)}id.h {$(VPATH)}node.h {$(VPATH)}debug.h \
|
||||||
{$(VPATH)}thread_$(THREAD_MODEL).h
|
{$(VPATH)}thread_$(THREAD_MODEL).h
|
||||||
euc_jp.$(OBJEXT): {$(VPATH)}euc_jp.c {$(VPATH)}regenc.h \
|
|
||||||
{$(VPATH)}oniguruma.h {$(VPATH)}config.h {$(VPATH)}defines.h
|
|
||||||
eval.$(OBJEXT): {$(VPATH)}eval.c {$(VPATH)}eval_error.ci {$(VPATH)}eval_intern.h \
|
eval.$(OBJEXT): {$(VPATH)}eval.c {$(VPATH)}eval_error.ci {$(VPATH)}eval_intern.h \
|
||||||
{$(VPATH)}eval_method.ci {$(VPATH)}eval_safe.ci {$(VPATH)}eval_jump.ci \
|
{$(VPATH)}eval_method.ci {$(VPATH)}eval_safe.ci {$(VPATH)}eval_jump.ci \
|
||||||
{$(VPATH)}ruby.h {$(VPATH)}config.h {$(VPATH)}vm_core.h {$(VPATH)}id.h \
|
{$(VPATH)}ruby.h {$(VPATH)}config.h {$(VPATH)}vm_core.h {$(VPATH)}id.h \
|
||||||
|
@ -518,8 +516,6 @@ signal.$(OBJEXT): {$(VPATH)}signal.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
|
||||||
{$(VPATH)}signal.h {$(VPATH)}vm_core.h {$(VPATH)}id.h {$(VPATH)}node.h \
|
{$(VPATH)}signal.h {$(VPATH)}vm_core.h {$(VPATH)}id.h {$(VPATH)}node.h \
|
||||||
{$(VPATH)}debug.h {$(VPATH)}vm_opts.h \
|
{$(VPATH)}debug.h {$(VPATH)}vm_opts.h \
|
||||||
{$(VPATH)}thread_$(THREAD_MODEL).h
|
{$(VPATH)}thread_$(THREAD_MODEL).h
|
||||||
sjis.$(OBJEXT): {$(VPATH)}sjis.c {$(VPATH)}regenc.h \
|
|
||||||
{$(VPATH)}oniguruma.h {$(VPATH)}config.h {$(VPATH)}defines.h
|
|
||||||
sprintf.$(OBJEXT): {$(VPATH)}sprintf.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
|
sprintf.$(OBJEXT): {$(VPATH)}sprintf.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
|
||||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h \
|
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h \
|
||||||
{$(VPATH)}re.h {$(VPATH)}regex.h {$(VPATH)}oniguruma.h \
|
{$(VPATH)}re.h {$(VPATH)}regex.h {$(VPATH)}oniguruma.h \
|
||||||
|
@ -544,10 +540,6 @@ cont.$(OBJEXT): {$(VPATH)}cont.c {$(VPATH)}eval_intern.h \
|
||||||
{$(VPATH)}signal.h {$(VPATH)}st.h {$(VPATH)}dln.h
|
{$(VPATH)}signal.h {$(VPATH)}st.h {$(VPATH)}dln.h
|
||||||
time.$(OBJEXT): {$(VPATH)}time.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
|
time.$(OBJEXT): {$(VPATH)}time.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
|
||||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h
|
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h
|
||||||
unicode.$(OBJEXT): {$(VPATH)}unicode.c {$(VPATH)}regenc.h \
|
|
||||||
{$(VPATH)}oniguruma.h {$(VPATH)}config.h {$(VPATH)}defines.h
|
|
||||||
utf8.$(OBJEXT): {$(VPATH)}utf8.c {$(VPATH)}regenc.h \
|
|
||||||
{$(VPATH)}oniguruma.h {$(VPATH)}config.h {$(VPATH)}defines.h
|
|
||||||
util.$(OBJEXT): {$(VPATH)}util.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
|
util.$(OBJEXT): {$(VPATH)}util.c {$(VPATH)}ruby.h {$(VPATH)}config.h \
|
||||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h \
|
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h \
|
||||||
{$(VPATH)}util.h
|
{$(VPATH)}util.h
|
||||||
|
@ -595,6 +587,17 @@ blockinlining.$(OBJEXT): {$(VPATH)}blockinlining.c \
|
||||||
id.$(OBJEXT): {$(VPATH)}id.c {$(VPATH)}ruby.h
|
id.$(OBJEXT): {$(VPATH)}id.c {$(VPATH)}ruby.h
|
||||||
prelude.$(OBJEXT): {$(VPATH)}prelude.c {$(VPATH)}ruby.h {$(VPATH)}vm_core.h
|
prelude.$(OBJEXT): {$(VPATH)}prelude.c {$(VPATH)}ruby.h {$(VPATH)}vm_core.h
|
||||||
|
|
||||||
|
ascii.$(OBJEXT): {$(VPATH)}ascii.c {$(VPATH)}regenc.h \
|
||||||
|
{$(VPATH)}oniguruma.h {$(VPATH)}config.h {$(VPATH)}defines.h
|
||||||
|
euc_jp.$(OBJEXT): {$(VPATH)}euc_jp.c {$(VPATH)}regenc.h \
|
||||||
|
{$(VPATH)}oniguruma.h {$(VPATH)}config.h {$(VPATH)}defines.h
|
||||||
|
sjis.$(OBJEXT): {$(VPATH)}sjis.c {$(VPATH)}regenc.h \
|
||||||
|
{$(VPATH)}oniguruma.h {$(VPATH)}config.h {$(VPATH)}defines.h
|
||||||
|
unicode.$(OBJEXT): {$(VPATH)}unicode.c {$(VPATH)}regenc.h \
|
||||||
|
{$(VPATH)}oniguruma.h {$(VPATH)}config.h {$(VPATH)}defines.h
|
||||||
|
utf8.$(OBJEXT): {$(VPATH)}utf8.c {$(VPATH)}regenc.h \
|
||||||
|
{$(VPATH)}oniguruma.h {$(VPATH)}config.h {$(VPATH)}defines.h
|
||||||
|
|
||||||
INSNS = opt_sc.inc optinsn.inc optunifs.inc insns.inc \
|
INSNS = opt_sc.inc optinsn.inc optunifs.inc insns.inc \
|
||||||
vmtc.inc vm.inc
|
vmtc.inc vm.inc
|
||||||
|
|
||||||
|
@ -625,7 +628,7 @@ incs: $(INSNS) node_name.inc
|
||||||
node_name.inc: {$(VPATH)}node.h
|
node_name.inc: {$(VPATH)}node.h
|
||||||
$(BASERUBY) -n $(srcdir)/tool/node_name.rb $? > $@
|
$(BASERUBY) -n $(srcdir)/tool/node_name.rb $? > $@
|
||||||
|
|
||||||
prelude.c: $(srcdir)/tool/compile_prelude.rb $(srcdir)/prelude.rb
|
{$(VPATH)}prelude.c: $(srcdir)/tool/compile_prelude.rb $(srcdir)/prelude.rb
|
||||||
$(BASERUBY) $(srcdir)/tool/compile_prelude.rb $(srcdir)/prelude.rb $@
|
$(BASERUBY) $(srcdir)/tool/compile_prelude.rb $(srcdir)/prelude.rb $@
|
||||||
|
|
||||||
prereq: incs prelude.c
|
prereq: incs prelude.c
|
||||||
|
|
|
@ -202,7 +202,7 @@ MINIOBJS = dmydln.$(OBJEXT)
|
||||||
|
|
||||||
arch_hdrdir = $(EXTOUT)/include/$(arch)
|
arch_hdrdir = $(EXTOUT)/include/$(arch)
|
||||||
hdrdir = $(srcdir)/include
|
hdrdir = $(srcdir)/include
|
||||||
VPATH = $(arch_hdrdir)/ruby;$(hdrdir)/ruby;$(srcdir);$(srcdir)/missing;$(srcdir)/win32
|
VPATH = $(arch_hdrdir)/ruby;$(hdrdir)/ruby;$(srcdir);$(srcdir)/enc;$(srcdir)/missing;$(srcdir)/win32
|
||||||
|
|
||||||
all: $(srcdir)/win32/Makefile.sub $(srcdir)/common.mk
|
all: $(srcdir)/win32/Makefile.sub $(srcdir)/common.mk
|
||||||
|
|
||||||
|
@ -547,6 +547,8 @@ $(RUBY_INSTALL_NAME).rc $(RUBYW_INSTALL_NAME).rc $(RUBY_SO_NAME).rc: $(RBCONFIG)
|
||||||
-so_name=$(RUBY_SO_NAME) \
|
-so_name=$(RUBY_SO_NAME) \
|
||||||
. $(icondirs) $(srcdir)/win32
|
. $(icondirs) $(srcdir)/win32
|
||||||
|
|
||||||
|
{$(srcdir)/enc}.c.obj:
|
||||||
|
$(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -c -Tc$(<:\=/)
|
||||||
{$(srcdir)/missing}.c.obj:
|
{$(srcdir)/missing}.c.obj:
|
||||||
$(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -c -Tc$(<:\=/)
|
$(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -c -Tc$(<:\=/)
|
||||||
{$(srcdir)/win32}.c.obj:
|
{$(srcdir)/win32}.c.obj:
|
||||||
|
|
|
@ -28,7 +28,6 @@ iconinc=-I$(icondirs: = -I)
|
||||||
!endif
|
!endif
|
||||||
###############
|
###############
|
||||||
|
|
||||||
VPATH = $(srcdir);$(srcdir)/missing;$(srcdir)/wince
|
|
||||||
.SUFFIXES: .y .def .lib
|
.SUFFIXES: .y .def .lib
|
||||||
|
|
||||||
!if !defined(CC)
|
!if !defined(CC)
|
||||||
|
@ -185,6 +184,10 @@ INSTALLED_LIST= .installed.list
|
||||||
|
|
||||||
WINMAINOBJ = wincemain.$(OBJEXT)
|
WINMAINOBJ = wincemain.$(OBJEXT)
|
||||||
|
|
||||||
|
arch_hdrdir = $(EXTOUT)/include/$(arch)
|
||||||
|
hdrdir = $(srcdir)/include
|
||||||
|
VPATH = $(arch_hdrdir)/ruby;$(hdrdir)/ruby;$(srcdir);$(srcdir)/enc;$(srcdir)/missing;$(srcdir)/wince
|
||||||
|
|
||||||
all: $(srcdir)/wince/Makefile.sub $(srcdir)/common.mk
|
all: $(srcdir)/wince/Makefile.sub $(srcdir)/common.mk
|
||||||
ruby: $(PROGRAM)
|
ruby: $(PROGRAM)
|
||||||
|
|
||||||
|
@ -490,6 +493,8 @@ class File
|
||||||
end
|
end
|
||||||
<<KEEP
|
<<KEEP
|
||||||
|
|
||||||
|
{$(srcdir)/enc}.c.obj:
|
||||||
|
$(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -c -Tc$(<:\=/)
|
||||||
{$(srcdir)/missing}.c.obj:
|
{$(srcdir)/missing}.c.obj:
|
||||||
$(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -c -Tc$(<:\=/)
|
$(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -c -Tc$(<:\=/)
|
||||||
{$(srcdir)/win32}.c.obj:
|
{$(srcdir)/win32}.c.obj:
|
||||||
|
|
Загрузка…
Ссылка в новой задаче