ruby-changes:2773
From: ko1@a...
Date: 17 Dec 2007 17:18:10 +0900
Subject: [ruby-changes:2773] nobu - Ruby:r14264 (trunk): * configure.in (EXTERNAL_ENCOBJS, ENCSOS): removed.
nobu 2007-12-17 17:17:50 +0900 (Mon, 17 Dec 2007) New Revision: 14264 Modified files: trunk/ChangeLog trunk/bcc32/setup.mak trunk/configure.in trunk/enc/Makefile.in trunk/win32/setup.mak trunk/wince/setup.mak Log: * configure.in (EXTERNAL_ENCOBJS, ENCSOS): removed. * enc/Makefile.in (BUILTIN_ENCS): includes .c suffix. * enc/depend: splitted from Makefile.in. * {bcc32,win32,wince}/setup.mak (-encs-): extracts BUILTIN_ENCOBJS. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/bcc32/setup.mak?r1=14264&r2=14263 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/win32/setup.mak?r1=14264&r2=14263 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14264&r2=14263 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/enc/Makefile.in?r1=14264&r2=14263 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/wince/setup.mak?r1=14264&r2=14263 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/configure.in?r1=14264&r2=14263 Index: configure.in =================================================================== --- configure.in (revision 14263) +++ configure.in (revision 14264) @@ -1735,39 +1735,17 @@ fi tr -d '\015' < largefile.h > confdefs.h -test -d enc || mkdir enc BUILTIN_ENCS=["`sed -n -e '/^BUILTIN_ENCS[ ]*=/{' \ -e s/// -e :l -e '/\\\\$/N' -e 's/\\\\\\n/ /' -e 't l' -e p \ -e '}' "${srcdir}/enc/Makefile.in"`"] BUILTIN_ENCS="`echo $BUILTIN_ENCS`" -EXTERNAL_ENCS= -for e in "${srcdir}/enc"/*.c; do - e=`basename "$e" .c` - case " $BUILTIN_ENCS " in - *" $e "*) ;; - *) EXTERNAL_ENCS="$EXTERNAL_ENCS $e";; - esac -done -echo $EX BUILTIN_ENCOBJS= -for e in $BUILTIN_ENCS; do BUILTIN_ENCOBJS="$BUILTIN_ENCOBJS $e"'.$(OBJEXT)'; done -EXTERNAL_ENCOBJS= -for e in $EXTERNAL_ENCS; do EXTERNAL_ENCOBJS="$EXTERNAL_ENCOBJS $e"'.$(OBJEXT)'; done -ENCSOS= -for e in $EXTERNAL_ENCS; do ENCSOS="$ENCSOS "'$(ENCSODIR)/'"$e"'.$(DLEXT)'; done +for e in $BUILTIN_ENCS; do BUILTIN_ENCOBJS="$BUILTIN_ENCOBJS `basename $e .c`"'.$(OBJEXT)'; done +AC_SUBST(BUILTIN_ENCS) AC_SUBST(BUILTIN_ENCOBJS) -AC_SUBST(EXTERNAL_ENCOBJS) -AC_SUBST(ENCSOS) AC_CONFIG_FILES($FIRSTMAKEFILE) -AC_CONFIG_FILES(enc/Makefile, [{ - for e in $ENCS; do - echo '' - echo '$(ENCSODIR)/'"$e"'.$(DLEXT): '"$e"'.$(OBJEXT)' - echo ' $(LDSHARED) $(DLDFLAGS) $< $(OUTFLAG)$''@' - done >> enc/Makefile -}], [ENCS="$EXTERNAL_ENCS"]) AC_CONFIG_FILES(Makefile, [{ sed '/^MISSING/s/\$U\././g' Makefile echo; test x"$EXEEXT" = x || echo 'miniruby: miniruby$(EXEEXT)' Index: ChangeLog =================================================================== --- ChangeLog (revision 14263) +++ ChangeLog (revision 14264) @@ -1,3 +1,13 @@ +Mon Dec 17 17:17:49 2007 Nobuyoshi Nakada <nobu@r...> + + * configure.in (EXTERNAL_ENCOBJS, ENCSOS): removed. + + * enc/Makefile.in (BUILTIN_ENCS): includes .c suffix. + + * enc/depend: splitted from Makefile.in. + + * {bcc32,win32,wince}/setup.mak (-encs-): extracts BUILTIN_ENCOBJS. + Mon Dec 17 17:07:53 2007 Tanaka Akira <akr@f...> * string.c (rb_enc_str_asciionly_p): use rb_enc_str_coderange. Index: enc/Makefile.in =================================================================== --- enc/Makefile.in (revision 14263) +++ enc/Makefile.in (revision 14264) @@ -1,7 +1,7 @@ srcdir = @srcdir@ top_srcdir = $(srcdir:/enc=) arch = @arch@ -EXTOUT = $(top_srcdir)/@EXTOUT@ +EXTOUT = @EXTOUT@ hdrdir = $(top_srcdir)/include arch_hdrdir = $(EXTOUT)/include/$(arch) VPATH = $(arch_hdrdir)/ruby:$(hdrdir)/ruby:$(top_srcdir):$(srcdir) @@ -9,9 +9,9 @@ DLEXT = @DLEXT@ OBJEXT = @OBJEXT@ -BUILTIN_ENCS = ascii \ - euc_jp sjis \ - unicode utf8 +BUILTIN_ENCS = ascii.c \ + euc_jp.c sjis.c \ + unicode.c utf8.c ENCOBJS = @EXTERNAL_ENCOBJS@ ENCSOS = @ENCSOS@ @@ -26,8 +26,3 @@ LIBS = @LIBS@ $(EXTLIBS) LDSHARED = @LDSHARED@ DLDFLAGS = @DLDFLAGS@ $(EXTLDFLAGS) @ARCH_FLAG@ - -all: $(ENCOBJS) $(ENCSOS) - -.c.@OBJEXT@: - $(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -c $< Index: win32/setup.mak =================================================================== --- win32/setup.mak (revision 14263) +++ win32/setup.mak (revision 14264) @@ -197,6 +197,11 @@ -i686-: -ix86- @$(APPEND) $(CPU) = 6 +-epilogue-: -encs- + +-encs-: nul + @$(MAKE) -l -f $(srcdir)/win32/enc-setup.mak srcdir="$(srcdir)" MAKEFILE=$(MAKEFILE) + -epilogue-: nul !if exist(confargs.c) @$(CPP) confargs.c >> $(MAKEFILE) Index: bcc32/setup.mak =================================================================== --- bcc32/setup.mak (revision 14263) +++ bcc32/setup.mak (revision 14264) @@ -147,6 +147,11 @@ @$(APPEND) PROCESSOR_LEVEL = 6 @$(APPEND) !endif +-epilogue-: -encs- + +-encs-: nul + @$(MAKE) -f $(srcdir)/win32/enc-setup.mak srcdir="$(srcdir)" MAKEFILE=$(MAKEFILE) + -epilogue-: nul @type >> $(MAKEFILE) &&| Index: wince/setup.mak =================================================================== --- wince/setup.mak (revision 14263) +++ wince/setup.mak (revision 14264) @@ -219,6 +219,11 @@ LIB = $$(CE_TOOLS4_DIR)/wce410/sigmarionIII SDK/lib/$$(ARCHFOLDER) << +-epilogue-: -encs- + +-encs-: nul + @$(MAKE) -l -f $(srcdir)/win32/enc-setup.mak srcdir="$(srcdir)" MAKEFILE=$(MAKEFILE) + -epilogue-: nul @type << >>$(MAKEFILE) !ifdef RUBY_INSTALL_NAME -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml