mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
33ecb05d51
commit
4cf13ffaef
6 changed files with 31 additions and 33 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
Mon Dec 17 17:17:49 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* 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@fsij.org>
|
||||
|
||||
* string.c (rb_enc_str_asciionly_p): use rb_enc_str_coderange.
|
||||
|
|
|
@ -147,6 +147,11 @@ $(BANG)endif
|
|||
@$(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) &&|
|
||||
|
||||
|
|
26
configure.in
26
configure.in
|
@ -1735,39 +1735,17 @@ else
|
|||
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)'
|
||||
|
|
|
@ -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 @@ ENCSODIR = $(EXTOUT)/$(arch)/enc
|
|||
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 @@ XLDFLAGS = @XLDFLAGS@ $(EXTLDFLAGS)
|
|||
LIBS = @LIBS@ $(EXTLIBS)
|
||||
LDSHARED = @LDSHARED@
|
||||
DLDFLAGS = @DLDFLAGS@ $(EXTLDFLAGS) @ARCH_FLAG@
|
||||
|
||||
all: $(ENCOBJS) $(ENCSOS)
|
||||
|
||||
.c.@OBJEXT@:
|
||||
$(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -c $<
|
||||
|
|
|
@ -197,6 +197,11 @@ $(CPU) = $(PROCESSOR_LEVEL)
|
|||
-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)
|
||||
|
|
|
@ -219,6 +219,11 @@ INCLUDE = $$(CE_TOOLS4_DIR)/wce410/sigmarionIII SDK/include/$$(ARCHFOLDER)
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue