mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* Makefile.in, */Makefile.sub, common.mk: extract common portions.
* Makefile.in, cygwin/GNUmakefile.in, */Makefile.sub (RBCONFIG): separated time stamp file for rbconfig.rb. * configure.in: append common.mk to Makefile. * mkconfig.rb: keep mtime of rbconfig.rb if unchanged. * win32/rm.bat: remove multiple files. * wince/mkconfig_wce.rb: use fake.rb instead. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
48dde6f3e6
commit
71f46f0724
11 changed files with 580 additions and 1270 deletions
15
ChangeLog
15
ChangeLog
|
@ -1,3 +1,18 @@
|
|||
Mon Mar 22 08:21:17 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* Makefile.in, */Makefile.sub, common.mk: extract common portions.
|
||||
|
||||
* Makefile.in, cygwin/GNUmakefile.in, */Makefile.sub (RBCONFIG):
|
||||
separated time stamp file for rbconfig.rb.
|
||||
|
||||
* configure.in: append common.mk to Makefile.
|
||||
|
||||
* mkconfig.rb: keep mtime of rbconfig.rb if unchanged.
|
||||
|
||||
* win32/rm.bat: remove multiple files.
|
||||
|
||||
* wince/mkconfig_wce.rb: use fake.rb instead.
|
||||
|
||||
Sun Mar 21 22:17:35 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
||||
|
||||
* lib/webrick/httpserver.rb (WEBrick::HTTPServer#virtual_host):
|
||||
|
|
332
Makefile.in
332
Makefile.in
|
@ -10,6 +10,7 @@ YACC = @YACC@
|
|||
PURIFY =
|
||||
AUTOCONF = autoconf
|
||||
@SET_MAKE@
|
||||
MKFILES = @MAKEFILES@
|
||||
|
||||
prefix = @prefix@
|
||||
exec_prefix = @exec_prefix@
|
||||
|
@ -24,10 +25,12 @@ sitedir = @sitedir@
|
|||
|
||||
TESTUI = console
|
||||
TESTS =
|
||||
RDOCTARGET = @RDOCTARGET@
|
||||
|
||||
EXTOUT = .ext
|
||||
RIDATADIR = $(DESTDIR)$(datadir)/ri/$(MAJOR).$(MINOR)/system
|
||||
|
||||
OUTFLAG = -o
|
||||
CFLAGS = @CFLAGS@ @XCFLAGS@ @ARCH_FLAG@
|
||||
CPPFLAGS = -I. -I$(srcdir) @CPPFLAGS@
|
||||
LDFLAGS = @STATIC@ $(CFLAGS) @LDFLAGS@
|
||||
|
@ -48,7 +51,6 @@ PROGRAM=$(RUBY_INSTALL_NAME)$(EXEEXT)
|
|||
RUBY = $(RUBY_INSTALL_NAME)
|
||||
MINIRUBY = @MINIRUBY@
|
||||
RUNRUBY = @RUNRUBY@
|
||||
EXTCONF = extconf.rb
|
||||
|
||||
#### End of system configuration section. ####
|
||||
|
||||
|
@ -69,159 +71,51 @@ ARCHFILE = @ARCHFILE@
|
|||
SETUP =
|
||||
EXTSTATIC = @EXTSTATIC@
|
||||
|
||||
RM = rm -f
|
||||
NM = @NM@
|
||||
AR = @AR@
|
||||
ARFLAGS = rcu
|
||||
RANLIB = @RANLIB@
|
||||
|
||||
OBJEXT = @OBJEXT@
|
||||
|
||||
EXTOBJS =
|
||||
DLDOBJS = $(DMYEXT)
|
||||
DMYEXT = dmyext.@OBJEXT@
|
||||
|
||||
MAINOBJ = main.@OBJEXT@
|
||||
|
||||
OBJS = ascii.@OBJEXT@ \
|
||||
array.@OBJEXT@ \
|
||||
bignum.@OBJEXT@ \
|
||||
class.@OBJEXT@ \
|
||||
compar.@OBJEXT@ \
|
||||
dir.@OBJEXT@ \
|
||||
dln.@OBJEXT@ \
|
||||
enum.@OBJEXT@ \
|
||||
error.@OBJEXT@ \
|
||||
euc_jp.@OBJEXT@ \
|
||||
eval.@OBJEXT@ \
|
||||
file.@OBJEXT@ \
|
||||
gc.@OBJEXT@ \
|
||||
hash.@OBJEXT@ \
|
||||
inits.@OBJEXT@ \
|
||||
io.@OBJEXT@ \
|
||||
marshal.@OBJEXT@ \
|
||||
math.@OBJEXT@ \
|
||||
numeric.@OBJEXT@ \
|
||||
object.@OBJEXT@ \
|
||||
pack.@OBJEXT@ \
|
||||
parse.@OBJEXT@ \
|
||||
process.@OBJEXT@ \
|
||||
prec.@OBJEXT@ \
|
||||
random.@OBJEXT@ \
|
||||
range.@OBJEXT@ \
|
||||
re.@OBJEXT@ \
|
||||
regcomp.@OBJEXT@ \
|
||||
regenc.@OBJEXT@ \
|
||||
regerror.@OBJEXT@ \
|
||||
regexec.@OBJEXT@ \
|
||||
reggnu.@OBJEXT@ \
|
||||
regparse.@OBJEXT@ \
|
||||
ruby.@OBJEXT@ \
|
||||
signal.@OBJEXT@ \
|
||||
sjis.@OBJEXT@ \
|
||||
sprintf.@OBJEXT@ \
|
||||
st.@OBJEXT@ \
|
||||
string.@OBJEXT@ \
|
||||
struct.@OBJEXT@ \
|
||||
time.@OBJEXT@ \
|
||||
utf8.@OBJEXT@ \
|
||||
util.@OBJEXT@ \
|
||||
variable.@OBJEXT@ \
|
||||
version.@OBJEXT@ \
|
||||
$(MISSING)
|
||||
MAINOBJ = main.$(OBJEXT)
|
||||
|
||||
MANTYPE = @MANTYPE@
|
||||
|
||||
SCRIPT_ARGS = --dest-dir="$(DESTDIR)" \
|
||||
--make="$(MAKE)" \
|
||||
--mflags="$(MFLAGS)" \
|
||||
--make-flags="$(MAKEFLAGS)"
|
||||
EXTMK_ARGS = $(SCRIPT_ARGS) --extout="$(EXTOUT)" --extension $(EXTS) --extstatic $(EXTSTATIC) --
|
||||
#### End of variables
|
||||
|
||||
all: @MAKEFILES@ $(PREP) rbconfig.rb $(LIBRUBY)
|
||||
@$(MINIRUBY) $(srcdir)/ext/extmk.rb $(EXTMK_ARGS)
|
||||
all:
|
||||
|
||||
miniruby$(EXEEXT): config.status $(LIBRUBY_A) $(MAINOBJ) $(DMYEXT)
|
||||
@rm -f $@
|
||||
$(PURIFY) $(CC) $(LDFLAGS) $(MAINLIBS) $(MAINOBJ) $(LIBRUBY_A) $(LIBS) -o $@
|
||||
.DEFAULT: all
|
||||
|
||||
$(PROGRAM): $(LIBRUBY) $(MAINOBJ) $(EXTOBJS) $(SETUP) $(PREP)
|
||||
@rm -f $@
|
||||
$(PURIFY) $(CC) $(LDFLAGS) $(XLDFLAGS) $(MAINLIBS) $(MAINOBJ) $(EXTOBJS) $(LIBRUBYARG) $(LIBS) -o $@
|
||||
# Prevent GNU make v3 from overflowing arg limit on SysV.
|
||||
.NOEXPORT:
|
||||
|
||||
static-ruby: $(MAINOBJ) $(EXTOBJS) $(LIBRUBY_A)
|
||||
@rm -f $(STATICRUBY)
|
||||
$(PURIFY) $(CC) $(LDFLAGS) $(XLDFLAGS) $(MAINLIBS) $(MAINOBJ) $(EXTOBJS) $(LIBRUBY_A) $(LIBS) -o $(STATICRUBY)
|
||||
miniruby$(EXEEXT):
|
||||
@$(RM) $@
|
||||
$(PURIFY) $(CC) $(MAINOBJ) $(LIBRUBY_A) $(LIBS) $(OUTFLAG)$@ $(LDFLAGS) $(MAINLIBS)
|
||||
|
||||
$(PROGRAM):
|
||||
@$(RM) $@
|
||||
$(PURIFY) $(CC) $(LDFLAGS) $(XLDFLAGS) $(MAINLIBS) $(MAINOBJ) $(EXTOBJS) $(LIBRUBYARG) $(LIBS) $(OUTFLAG)$@
|
||||
|
||||
# We must `rm' the library each time this rule is invoked because "updating" a
|
||||
# MAB library on Apple/NeXT (see --enable-fat-binary in configure) is not
|
||||
# supported.
|
||||
$(LIBRUBY_A): $(OBJS) $(DMYEXT)
|
||||
@rm -f $@
|
||||
@AR@ rcu $@ $(OBJS) $(DMYEXT)
|
||||
@-@RANLIB@ $@ 2> /dev/null || true
|
||||
$(LIBRUBY_A):
|
||||
@$(RM) $@
|
||||
$(AR) $(ARFLAGS) $@ $(OBJS) $(DMYEXT)
|
||||
@-$(RANLIB) $@ 2> /dev/null || true
|
||||
|
||||
$(LIBRUBY_SO): $(OBJS) $(DLDOBJS) $(PREP) $(ARCHFILE)
|
||||
$(LDSHARED) $(DLDFLAGS) $(OBJS) $(DLDOBJS) $(SOLIBS) -o $@
|
||||
$(LIBRUBY_SO):
|
||||
$(LDSHARED) $(DLDFLAGS) $(OBJS) $(DLDOBJS) $(SOLIBS) $(OUTFLAG)$@
|
||||
@-$(MINIRUBY) -e 'ARGV.each{|link| File.delete link if File.exist? link; \
|
||||
File.symlink "$(LIBRUBY_SO)", link}' \
|
||||
$(LIBRUBY_ALIASES) || true
|
||||
|
||||
ruby.imp: $(LIBRUBY_A)
|
||||
@@NM@ -Pgp $(LIBRUBY_A) | awk 'BEGIN{print "#!"}; $$2~/^[BD]$$/{print $$1}' | sort -u -o $@
|
||||
# $(MINIRUBY) $< $@
|
||||
|
||||
install: install-nodoc @RDOCTARGET@
|
||||
install-all: install-nodoc install-doc
|
||||
|
||||
install-nodoc: install-local install-ext
|
||||
install-local: rbconfig.rb
|
||||
$(MINIRUBY) $(srcdir)/instruby.rb $(SCRIPT_ARGS) --mantype="$(MANTYPE)"
|
||||
install-ext: rbconfig.rb
|
||||
$(MINIRUBY) $(srcdir)/ext/extmk.rb $(EXTMK_ARGS) install
|
||||
|
||||
what-where-all no-install-all: no-install no-install-doc
|
||||
what-where no-install: no-install-local no-install-ext
|
||||
what-where-local: no-install-local
|
||||
no-install-local: rbconfig.rb
|
||||
$(MINIRUBY) $(srcdir)/instruby.rb -n $(SCRIPT_ARGS) --mantype="$(MANTYPE)"
|
||||
what-where-ext: no-install-ext
|
||||
no-install-ext: rbconfig.rb
|
||||
$(MINIRUBY) $(srcdir)/ext/extmk.rb -n $(EXTMK_ARGS) install
|
||||
|
||||
install-doc: $(PROGRAM)
|
||||
@echo Generating RDoc documentation
|
||||
$(RUNRUBY) "$(srcdir)/bin/rdoc" --all --ri --op "$(RIDATADIR)" "$(srcdir)"
|
||||
|
||||
clean-ext:
|
||||
@-$(MINIRUBY) $(srcdir)/ext/extmk.rb $(EXTMK_ARGS) clean 2> /dev/null || true
|
||||
|
||||
clean-local:
|
||||
@rm -f $(OBJS) $(MAINOBJ) $(LIBRUBY_A) $(LIBRUBY_SO) $(LIBRUBY_ALIASES)
|
||||
@rm -f ext/extinit.c ext/extinit.@OBJEXT@ dmyext.@OBJEXT@
|
||||
@rm -f $(PROGRAM) miniruby$(EXEEXT)
|
||||
|
||||
clean: clean-ext clean-local
|
||||
|
||||
distclean-ext:
|
||||
@-$(MINIRUBY) $(srcdir)/ext/extmk.rb $(EXTMK_ARGS) distclean 2> /dev/null || true
|
||||
|
||||
distclean-local: clean-local
|
||||
@rm -f @MAKEFILES@ config.h rbconfig.rb
|
||||
@rm -f ext/config.cache config.cache config.log config.status
|
||||
@rm -f *~ core *.core gmon.out y.tab.c y.output ruby.imp
|
||||
|
||||
distclean: distclean-ext distclean-local
|
||||
|
||||
realclean: distclean
|
||||
@rm -f parse.c
|
||||
@rm -f lex.c
|
||||
|
||||
test: miniruby$(EXEEXT) rbconfig.rb $(PROGRAM) PHONY
|
||||
@./miniruby$(EXEEXT) $(srcdir)/rubytest.rb
|
||||
|
||||
test-all:
|
||||
$(RUNRUBY) -C "$(srcdir)/test" runner.rb --runner=$(TESTUI) $(TESTS)
|
||||
|
||||
extconf:
|
||||
$(MINIRUBY) -run -e mkdir -- -p "$(EXTCONFDIR)"
|
||||
$(RUNRUBY) -C "$(EXTCONFDIR)" $(EXTCONF) $(EXTCONFARGS)
|
||||
|
||||
rbconfig.rb: $(srcdir)/mkconfig.rb config.status $(PREP)
|
||||
@$(MINIRUBY) $(srcdir)/mkconfig.rb rbconfig.rb
|
||||
|
||||
fake.rb: Makefile
|
||||
@echo ' \
|
||||
class Object; \
|
||||
|
@ -241,13 +135,9 @@ fake.rb: Makefile
|
|||
|
||||
Makefile: $(srcdir)/Makefile.in
|
||||
|
||||
.PRECIOUS: @MAKEFILES@
|
||||
|
||||
.PHONY: test install install-nodoc install-doc
|
||||
|
||||
PHONY:
|
||||
|
||||
@MAKEFILES@: config.status
|
||||
$(MKFILES): config.status $(srcdir)/common.mk
|
||||
MAKE=$(MAKE) $(SHELL) ./config.status
|
||||
@{ \
|
||||
echo "all:; -@rm -f conftest.mk"; \
|
||||
|
@ -263,166 +153,16 @@ config.status: $(srcdir)/configure
|
|||
$(srcdir)/configure: $(srcdir)/configure.in
|
||||
cd $(srcdir) && $(AUTOCONF)
|
||||
|
||||
.c.@OBJEXT@:
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -c $<
|
||||
|
||||
lex.c: keywords
|
||||
@-rm -f $@
|
||||
@-$(RM) $@
|
||||
gperf -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$$ $? > $@ || \
|
||||
cp "$(srcdir)/$@" .
|
||||
|
||||
.y.c:
|
||||
$(YACC) $<
|
||||
$(YACC) $(YFLAGS) $<
|
||||
sed '/^#/s|y\.tab\.c|$@|' y.tab.c > $@
|
||||
rm -f y.tab.c
|
||||
$(RM) y.tab.c
|
||||
|
||||
ext/extinit.@OBJEXT@: ext/extinit.c $(SETUP)
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) @OUTFLAG@$@ -c ext/extinit.c
|
||||
.c.@OBJEXT@:
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -c $<
|
||||
|
||||
acosh.@OBJEXT@: $(srcdir)/missing/acosh.c
|
||||
$(CC) -I. $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/acosh.c
|
||||
|
||||
alloca.@OBJEXT@: $(srcdir)/missing/alloca.c
|
||||
$(CC) -I. $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/alloca.c
|
||||
|
||||
crypt.@OBJEXT@: $(srcdir)/missing/crypt.c
|
||||
$(CC) -I. $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/crypt.c
|
||||
|
||||
dup2.@OBJEXT@: $(srcdir)/missing/dup2.c
|
||||
$(CC) -I. $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/dup2.c
|
||||
|
||||
fileblocks.@OBJEXT@: $(srcdir)/missing/fileblocks.c
|
||||
$(CC) -I. $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/fileblocks.c
|
||||
|
||||
finite.@OBJEXT@: $(srcdir)/missing/finite.c
|
||||
$(CC) -I. $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/finite.c
|
||||
|
||||
flock.@OBJEXT@: $(srcdir)/missing/flock.c
|
||||
$(CC) -I. $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/flock.c
|
||||
|
||||
isinf.@OBJEXT@: $(srcdir)/missing/isinf.c
|
||||
$(CC) -I. $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/isinf.c
|
||||
|
||||
isnan.@OBJEXT@: $(srcdir)/missing/isnan.c
|
||||
$(CC) -I. $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/isnan.c
|
||||
|
||||
fnmatch.@OBJEXT@: $(srcdir)/missing/fnmatch.c
|
||||
$(CC) -I. $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/fnmatch.c
|
||||
|
||||
memcmp.@OBJEXT@: $(srcdir)/missing/memcmp.c
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/memcmp.c
|
||||
|
||||
memmove.@OBJEXT@: $(srcdir)/missing/memmove.c
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/memmove.c
|
||||
|
||||
mkdir.@OBJEXT@: $(srcdir)/missing/mkdir.c
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/mkdir.c
|
||||
|
||||
vsnprintf.@OBJEXT@: $(srcdir)/missing/vsnprintf.c
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/vsnprintf.c
|
||||
|
||||
strcasecmp.@OBJEXT@: $(srcdir)/missing/strcasecmp.c
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/strcasecmp.c
|
||||
|
||||
strncasecmp.@OBJEXT@: $(srcdir)/missing/strncasecmp.c
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/strncasecmp.c
|
||||
|
||||
strchr.@OBJEXT@: $(srcdir)/missing/strchr.c
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/strchr.c
|
||||
|
||||
strerror.@OBJEXT@: $(srcdir)/missing/strerror.c
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/strerror.c
|
||||
|
||||
strftime.@OBJEXT@: $(srcdir)/missing/strftime.c
|
||||
$(CC) -I. $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/strftime.c
|
||||
|
||||
strstr.@OBJEXT@: $(srcdir)/missing/strstr.c
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/strstr.c
|
||||
|
||||
strtol.@OBJEXT@: $(srcdir)/missing/strtol.c
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/strtol.c
|
||||
|
||||
strtoul.@OBJEXT@: $(srcdir)/missing/strtoul.c
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/strtoul.c
|
||||
|
||||
x68.@OBJEXT@: $(srcdir)/missing/x68.c
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/x68.c
|
||||
|
||||
os2.@OBJEXT@: $(srcdir)/missing/os2.c
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/os2.c
|
||||
|
||||
dl_os2.@OBJEXT@: $(srcdir)/missing/dl_os2.c
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/dl_os2.c
|
||||
|
||||
win32.@OBJEXT@: $(srcdir)/win32/win32.c
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -I$(srcdir)/win32 -c $(srcdir)/win32/win32.c
|
||||
|
||||
# Prevent GNU make v3 from overflowing arg limit on SysV.
|
||||
.NOEXPORT:
|
||||
###
|
||||
ascii.@OBJEXT@: ascii.c regenc.h oniguruma.h config.h
|
||||
array.@OBJEXT@: array.c ruby.h config.h defines.h intern.h missing.h \
|
||||
util.h st.h
|
||||
bignum.@OBJEXT@: bignum.c ruby.h config.h defines.h intern.h missing.h
|
||||
class.@OBJEXT@: class.c ruby.h config.h defines.h intern.h missing.h \
|
||||
rubysig.h node.h st.h
|
||||
compar.@OBJEXT@: compar.c ruby.h config.h defines.h intern.h missing.h
|
||||
dir.@OBJEXT@: dir.c ruby.h config.h defines.h intern.h missing.h util.h
|
||||
dln.@OBJEXT@: dln.c ruby.h config.h defines.h intern.h missing.h dln.h
|
||||
dmyext.@OBJEXT@: dmyext.c
|
||||
enum.@OBJEXT@: enum.c ruby.h config.h defines.h intern.h missing.h node.h \
|
||||
util.h
|
||||
error.@OBJEXT@: error.c ruby.h config.h defines.h intern.h missing.h \
|
||||
env.h version.h st.h
|
||||
euc_jp.@OBJEXT@: euc_jp.c regenc.h oniguruma.h config.h
|
||||
eval.@OBJEXT@: eval.c ruby.h config.h defines.h intern.h missing.h node.h \
|
||||
env.h util.h rubysig.h st.h dln.h
|
||||
file.@OBJEXT@: file.c ruby.h config.h defines.h intern.h missing.h \
|
||||
rubyio.h rubysig.h util.h dln.h
|
||||
gc.@OBJEXT@: gc.c ruby.h config.h defines.h intern.h missing.h rubysig.h \
|
||||
st.h node.h env.h re.h regex.h
|
||||
hash.@OBJEXT@: hash.c ruby.h config.h defines.h intern.h missing.h st.h \
|
||||
util.h rubysig.h
|
||||
inits.@OBJEXT@: inits.c ruby.h config.h defines.h intern.h missing.h
|
||||
io.@OBJEXT@: io.c ruby.h config.h defines.h intern.h missing.h rubyio.h \
|
||||
rubysig.h env.h util.h
|
||||
main.@OBJEXT@: main.c ruby.h config.h defines.h intern.h missing.h
|
||||
marshal.@OBJEXT@: marshal.c ruby.h config.h defines.h intern.h missing.h \
|
||||
rubyio.h st.h util.h
|
||||
math.@OBJEXT@: math.c ruby.h config.h defines.h intern.h missing.h
|
||||
numeric.@OBJEXT@: numeric.c ruby.h config.h defines.h intern.h missing.h
|
||||
object.@OBJEXT@: object.c ruby.h config.h defines.h intern.h missing.h \
|
||||
st.h util.h
|
||||
pack.@OBJEXT@: pack.c ruby.h config.h defines.h intern.h missing.h
|
||||
parse.@OBJEXT@: parse.c ruby.h config.h defines.h intern.h missing.h \
|
||||
env.h node.h st.h regex.h util.h lex.c
|
||||
prec.@OBJEXT@: prec.c ruby.h config.h defines.h intern.h missing.h
|
||||
process.@OBJEXT@: process.c ruby.h config.h defines.h intern.h missing.h \
|
||||
rubysig.h st.h
|
||||
random.@OBJEXT@: random.c ruby.h config.h defines.h intern.h missing.h
|
||||
range.@OBJEXT@: range.c ruby.h config.h defines.h intern.h missing.h
|
||||
re.@OBJEXT@: re.c ruby.h config.h defines.h intern.h missing.h re.h \
|
||||
regex.h
|
||||
regcomp.@OBJEXT@: regcomp.c oniguruma.h regint.h regparse.h regenc.h config.h
|
||||
regenc.@OBJEXT@: regenc.c regint.h regenc.h oniguruma.h config.h
|
||||
regerror.@OBJEXT@: regerror.c regint.h regenc.h oniguruma.h config.h
|
||||
regexec.@OBJEXT@: regexec.c regint.h regenc.h oniguruma.h config.h
|
||||
reggnu.@OBJEXT@: reggnu.c regint.h regenc.h oniguruma.h config.h oniggnu.h
|
||||
regparse.@OBJEXT@: regparse.c oniguruma.h regint.h regparse.h regenc.h config.h
|
||||
ruby.@OBJEXT@: ruby.c ruby.h config.h defines.h intern.h missing.h dln.h \
|
||||
node.h util.h
|
||||
signal.@OBJEXT@: signal.c ruby.h config.h defines.h intern.h missing.h \
|
||||
rubysig.h
|
||||
sjis.@OBJEXT@: sjis.c regenc.h oniguruma.h config.h
|
||||
sprintf.@OBJEXT@: sprintf.c ruby.h config.h defines.h intern.h missing.h
|
||||
st.@OBJEXT@: st.c config.h st.h
|
||||
string.@OBJEXT@: string.c ruby.h config.h defines.h intern.h missing.h \
|
||||
re.h regex.h
|
||||
struct.@OBJEXT@: struct.c ruby.h config.h defines.h intern.h missing.h
|
||||
time.@OBJEXT@: time.c ruby.h config.h defines.h intern.h missing.h
|
||||
utf8.@OBJEXT@: utf8.c regenc.h oniguruma.h config.h
|
||||
util.@OBJEXT@: util.c ruby.h config.h defines.h intern.h missing.h util.h
|
||||
variable.@OBJEXT@: variable.c ruby.h config.h defines.h intern.h \
|
||||
missing.h env.h node.h st.h util.h
|
||||
version.@OBJEXT@: version.c ruby.h config.h defines.h intern.h missing.h \
|
||||
version.h
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# -*- makefile -*-
|
||||
|
||||
SHELL = $(COMSPEC)
|
||||
MAKEFILES = Makefile $(srcdir)bcc32/Makefile.sub
|
||||
MKFILES = Makefile $(srcdir)bcc32/Makefile.sub $(srcdir)common.mk
|
||||
|
||||
#### Start of system configuration section. ####
|
||||
OS = bccwin32
|
||||
|
@ -57,6 +57,7 @@ AR = tlib
|
|||
|
||||
PURIFY =
|
||||
AUTOCONF = autoconf
|
||||
RM = $(srcdir:/=\)\win32\rm.bat
|
||||
|
||||
!if !defined(PROCESSOR_ARCHITECTURE)
|
||||
PROCESSOR_ARCHITECTURE = x86
|
||||
|
@ -152,7 +153,6 @@ WPROGRAM=$(RUBYW_INSTALL_NAME)$(EXEEXT)
|
|||
RUBYDEF = $(RUBY_SO_NAME).def
|
||||
MINIRUBY = .\miniruby$(EXEEXT)
|
||||
RUNRUBY = .\ruby$(EXEEXT) "$(srcdir)runruby.rb" --extout="$(EXTOUT)" --
|
||||
EXTCONF = extconf.rb
|
||||
|
||||
ORGLIBPATH = $(LIB)
|
||||
|
||||
|
@ -165,68 +165,30 @@ LIBRUBYARG = $(LIBRUBY)
|
|||
|
||||
PREP = miniruby$(EXEEXT)
|
||||
|
||||
!ifndef EXTOBJS
|
||||
EXTOBJS = dmyext.obj
|
||||
!endif
|
||||
DMYOBJS = dmyext.obj
|
||||
OBJEXT = obj
|
||||
|
||||
MAINOBJ = main.obj
|
||||
WINMAINOBJ = winmain.obj
|
||||
WINMAINOBJ = winmain.$(OBJEXT)
|
||||
|
||||
OBJS = ascii.obj \
|
||||
array.obj \
|
||||
bignum.obj \
|
||||
class.obj \
|
||||
compar.obj \
|
||||
dir.obj \
|
||||
dln.obj \
|
||||
enum.obj \
|
||||
error.obj \
|
||||
euc_jp.obj \
|
||||
eval.obj \
|
||||
file.obj \
|
||||
gc.obj \
|
||||
hash.obj \
|
||||
inits.obj \
|
||||
io.obj \
|
||||
marshal.obj \
|
||||
math.obj \
|
||||
numeric.obj \
|
||||
object.obj \
|
||||
pack.obj \
|
||||
parse.obj \
|
||||
prec.obj \
|
||||
process.obj \
|
||||
random.obj \
|
||||
range.obj \
|
||||
re.obj \
|
||||
regcomp.obj \
|
||||
regenc.obj \
|
||||
regerror.obj \
|
||||
regexec.obj \
|
||||
reggnu.obj \
|
||||
regparse.obj \
|
||||
ruby.obj \
|
||||
signal.obj \
|
||||
sjis.obj \
|
||||
sprintf.obj \
|
||||
st.obj \
|
||||
string.obj \
|
||||
struct.obj \
|
||||
time.obj \
|
||||
utf8.obj \
|
||||
util.obj \
|
||||
variable.obj \
|
||||
version.obj \
|
||||
$(MISSING)
|
||||
.path.c = .;$(srcdir);$(srcdir)win32;$(srcdir)missing
|
||||
.path.h = .;$(srcdir);$(srcdir)win32;$(srcdir)missing
|
||||
.path.y = $(srcdir)
|
||||
.path. = $(srcdir)
|
||||
|
||||
SCRIPT_ARGS = "--dest-dir=$(DESTDIR)" \
|
||||
"--make=$(MAKE)" \
|
||||
"--mflags=$(MFLAGS)" \
|
||||
"--make-flags=$(MAKEFLAGS)"
|
||||
EXTMK_ARGS = $(SCRIPT_ARGS) --extout="$(EXTOUT)" --extension $(EXTS) --extstatic $(EXTSTATIC) --
|
||||
.c.obj:
|
||||
$(CC) $(CFLAGS) $(XCFLAGS) -I. $(CPPFLAGS) -c $(<:/=\)
|
||||
|
||||
all: $(PREP) rbconfig.rb $(LIBRUBY) $(MISCLIBS)
|
||||
@$(MINIRUBY) $(srcdir)ext/extmk.rb $(EXTMK_ARGS)
|
||||
.rc.res:
|
||||
$(RC) $(RFLAGS) -I. -I$(<D). $(iconinc) -I$(srcdir)win32 $(RFLAGS) -fo$@ $(<:/=\)
|
||||
|
||||
.y.c:
|
||||
$(YACC) $(YFLAGS) $(<:\=/)
|
||||
sed -e "s!^ *extern char \*getenv();!/* & */!;s/^\(#.*\)y\.tab/\1parse/" y.tab.c > $(@F)
|
||||
@del y.tab.c
|
||||
|
||||
all:
|
||||
|
||||
!include $(srcdir)/common.mk
|
||||
|
||||
ruby: $(PROGRAM)
|
||||
rubyw: $(WPROGRAM)
|
||||
|
@ -309,7 +271,7 @@ config.h:
|
|||
\#define RUBY_SITE_ARCHLIB "/lib/ruby/site_ruby/$(MAJOR).$(MINOR)/$(ARCH)-$(OS)"
|
||||
|
|
||||
|
||||
config.status: $(MAKEFILES)
|
||||
config.status: $(MKFILES)
|
||||
@echo Creating $@
|
||||
@type > $@ &&|
|
||||
# Generated automatically by Makefile.sub.
|
||||
|
@ -415,7 +377,7 @@ s,@srcdir@,$(srcdir),;t t
|
|||
s,@top_srcdir@,$(srcdir),;t t
|
||||
|
|
||||
|
||||
miniruby$(EXEEXT): $(LIBRUBY_A) $(MAINOBJ)
|
||||
miniruby$(EXEEXT):
|
||||
@echo $(LIBS)
|
||||
$(LD) $(LDFLAGS) $(XLDFLAGS) $(MAINOBJ),$@,nul,$(LIBRUBY_A) $(LIBS)
|
||||
|
||||
|
@ -432,210 +394,67 @@ $(LIBRUBY_A): $(OBJS) dmyext.obj
|
|||
# $(LIBRUBY): $(LIBRUBY_SO)
|
||||
# implib $@ $(LIBRUBY_SO)
|
||||
|
||||
$(LIBRUBY_SO) $(LIBRUBY): $(LIBRUBY_A) $(EXTOBJS) $(RUBYDEF) $(RUBY_SO_NAME).res
|
||||
$(LIBRUBY_SO): $(LIBRUBY_A) $(EXTOBJS) $(RUBYDEF) $(RUBY_SO_NAME).res
|
||||
@echo $(EXTOBJS)
|
||||
$(LIBRUBY_LDSHARED) $(LIBRUBY_DLDFLAGS) $(EXTOBJS:/=\),$(LIBRUBY_SO),nul,$(LIBRUBY_A) $(LIBS),$(RUBYDEF),$(RUBY_SO_NAME).res
|
||||
|
||||
$(LIBRUBY): $(LIBRUBY_SO)
|
||||
|
||||
$(RUBYDEF): $(LIBRUBY_A) $(PREP)
|
||||
$(MINIRUBY) $(srcdir)bcc32/mkexports.rb -output=$@ $(LIBRUBY_A)
|
||||
$(MINIRUBY) $(srcdir)win32/mkexports.rb -output=$@ -base=$(RUBY_SO_NAME) $(LIBRUBY_A)
|
||||
|
||||
install: install-nodoc $(RDOCTARGET)
|
||||
install-all: install-nodoc install-doc
|
||||
clean-local::
|
||||
@$(RM) ext\extinit.c ext\extinit.$(OBJEXT) *.tds *.il?
|
||||
@$(RM) $(RUBY_INSTALL_NAME).res $(RUBYW_INSTALL_NAME).res $(RUBY_SO_NAME).res
|
||||
|
||||
install-nodoc: install-local install-ext
|
||||
install-local: rbconfig.rb
|
||||
$(MINIRUBY) $(srcdir)instruby.rb $(SCRIPT_ARGS)
|
||||
install-ext: rbconfig.rb
|
||||
$(MINIRUBY) $(srcdir)ext/extmk.rb $(EXTMK_ARGS) install
|
||||
distclean-local::
|
||||
@$(RM) ext\config.cache
|
||||
@$(RM) *.map *.pdb *.ilk *.exp $(RUBYDEF)
|
||||
@$(RM) $(RUBY_INSTALL_NAME).rc $(RUBYW_INSTALL_NAME).rc $(RUBY_SO_NAME).rc
|
||||
|
||||
what-where-all no-install-all: no-install no-install-doc
|
||||
what-where no-install: no-install-local no-install-ext
|
||||
what-where-local: no-install-local
|
||||
no-install-local: rbconfig.rb
|
||||
$(MINIRUBY) $(srcdir)instruby.rb -n $(SCRIPT_ARGS)
|
||||
what-where-ext: no-install-ext
|
||||
no-install-ext: rbconfig.rb
|
||||
$(MINIRUBY) $(srcdir)ext/extmk.rb -n $(EXTMK_ARGS) install
|
||||
|
||||
install-doc: $(PROGRAM)
|
||||
@echo Generating RDoc documentation
|
||||
$(RUNRUBY) "$(srcdir)bin/rdoc" --all --ri --op "$(RIDATADIR)" "$(srcdir)"
|
||||
|
||||
clean: clean-ext clean-local
|
||||
|
||||
clean-local:
|
||||
@if exist $(LIBRUBY_A) del $(LIBRUBY_A)
|
||||
@if exist $(MAINOBJ) del $(MAINOBJ)
|
||||
@if exist rbconfig.rb del rbconfig.rb
|
||||
@if exist ext\extinit.c del ext\extinit.c
|
||||
@if exist ext\extinit.obj del ext\extinit.obj
|
||||
@if exist ext\vc*.pdb del ext\vc*.pdb
|
||||
@if exist *.obj del *.obj
|
||||
@if exist *.res del *.res
|
||||
@if exist *.tds del *.tds
|
||||
@if exist *.il? del *.il?
|
||||
|
||||
clean-ext:
|
||||
@-$(MINIRUBY) $(srcdir)ext/extmk.rb $(EXTMK_ARGS) clean
|
||||
|
||||
distclean: distclean-ext distclean-local
|
||||
|
||||
distclean-local: clean-local
|
||||
@if exist Makefile del Makefile
|
||||
@if exist config.h del config.h
|
||||
@if exist ext\config.cache del ext\config.cache
|
||||
@if exist config.cache del config.cache
|
||||
@if exist config.log del config.log
|
||||
@if exist config.status del config.status
|
||||
@if exist *~ del *~
|
||||
@if exist *.bak del *.bak
|
||||
@if exist *.stackdump del *.stackdump
|
||||
@if exist *.core del *.core
|
||||
@if exist gmon.out del gmon.out
|
||||
@if exist y.tab.c del y.tab.c
|
||||
@if exist y.output del y.output
|
||||
@if exist *.map del *.map
|
||||
@if exist *.pdb del *.pdb
|
||||
@if exist *.ilk del *.ilk
|
||||
@if exist *.exp del *.exp
|
||||
@if exist $(RUBYDEF) del $(RUBYDEF)
|
||||
@if exist $(RUBY_INSTALL_NAME).rc del $(RUBY_INSTALL_NAME).rc
|
||||
@if exist $(RUBYW_INSTALL_NAME).rc del $(RUBYW_INSTALL_NAME).rc
|
||||
@if exist $(RUBY_SO_NAME).rc del $(RUBY_SO_NAME).rc
|
||||
@if exist $(PROGRAM) del $(PROGRAM)
|
||||
@if exist $(WPROGRAM) del $(WPROGRAM)
|
||||
@if exist $(LIBRUBY_SO) del $(LIBRUBY_SO)
|
||||
@if exist $(LIBRUBY) del $(LIBRUBY)
|
||||
@if exist ext\nul if not exist ext\* rmdir ext
|
||||
@if exist miniruby$(EXEEXT) del miniruby$(EXEEXT)
|
||||
|
||||
distclean-ext:
|
||||
@-$(MINIRUBY) $(srcdir)ext/extmk.rb $(EXTMK_ARGS) distclean
|
||||
|
||||
realclean: distclean
|
||||
@if exist parse.c del parse.c
|
||||
@if exist lex.c del lex.c
|
||||
|
||||
test: miniruby$(EXEEXT) NUL
|
||||
@$(MINIRUBY) $(srcdir)rubytest.rb
|
||||
|
||||
test-all:
|
||||
$(RUNRUBY) -C "$(srcdir)test" runner.rb --runner=$(TESTUI) $(TESTS)
|
||||
|
||||
extconf:
|
||||
$(MINIRUBY) -run -e mkdir -- -p "$(EXTCONFDIR)"
|
||||
$(RUNRUBY) -C "$(EXTCONFDIR)" $(EXTCONF) $(EXTCONFARGS)
|
||||
|
||||
rbconfig.rb: $(PREP) config.status
|
||||
@$(MINIRUBY) $(srcdir)mkconfig.rb -srcdir=$(srcdir) \
|
||||
-install_name=$(RUBY_INSTALL_NAME) \
|
||||
-so_name=$(RUBY_SO_NAME) rbconfig.rb
|
||||
|
||||
$(RUBY_INSTALL_NAME).rc $(RUBYW_INSTALL_NAME).rc $(RUBY_SO_NAME).rc: rbconfig.rb
|
||||
@$(MINIRUBY) $(srcdir)win32/resource.rb \
|
||||
-ruby_name=$(RUBY_INSTALL_NAME) \
|
||||
-rubyw_name=$(RUBYW_INSTALL_NAME) \
|
||||
-so_name=$(RUBY_SO_NAME) \
|
||||
. $(icondirs) $(srcdir)win32
|
||||
|
||||
#config.status: $(srcdir)configure
|
||||
# $(SHELL) .config.status --recheck
|
||||
|
||||
.path.c = .;$(srcdir);$(srcdir)win32;$(srcdir)missing
|
||||
.path.h = .;$(srcdir);$(srcdir)win32;$(srcdir)missing
|
||||
.path.y = $(srcdir)
|
||||
|
||||
.c.obj:
|
||||
$(CC) $(CFLAGS) $(XCFLAGS) -I. $(CPPFLAGS) -c $(<:/=\)
|
||||
|
||||
.rc.res:
|
||||
$(RC) $(RFLAGS) -I. -I$(<D). $(iconinc) -I$(srcdir)win32 $(RFLAGS) -fo$@ $(<:/=\)
|
||||
|
||||
.y.c:
|
||||
$(YACC) $(YFLAGS) $(<:\=/)
|
||||
sed -e "s!^ *extern char \*getenv();!/* & */!;s/^\(#.*\)y\.tab/\1parse/" y.tab.c > $(@F)
|
||||
@del y.tab.c
|
||||
|
||||
parse.c: parse.y
|
||||
|
||||
ext/extinit.obj: ext/extinit.c $(SETUP)
|
||||
$(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -o$@ -c ext/extinit.c
|
||||
|
||||
acosh.obj: acosh.c win32.h
|
||||
alloca.obj: alloca.c win32.h
|
||||
crypt.obj: crypt.c win32.h
|
||||
dup2.obj: dup2.c win32.h
|
||||
erf.obj: erf.c win32.h
|
||||
finite.obj: finite.c win32.h
|
||||
flock.obj: flock.c win32.h
|
||||
memcmp.obj: memcmp.c win32.h
|
||||
memmove.obj: memmove.c win32.h
|
||||
mkdir.obj: mkdir.c win32.h
|
||||
vsnprintf.obj: vsnprintf.c win32.h
|
||||
strcasecmp.obj: strcasecmp.c win32.h
|
||||
strncasecmp.obj: strncasecmp.c win32.h
|
||||
strchr.obj: strchr.c win32.h
|
||||
strdup.obj: strdup.c win32.h
|
||||
strerror.obj: strerror.c win32.h
|
||||
strftime.obj: strftime.c win32.h
|
||||
strstr.obj: strstr.c win32.h
|
||||
strtod.obj: strtod.c win32.h
|
||||
strtol.obj: strtol.c win32.h
|
||||
strtoul.obj: strtoul.c win32.h
|
||||
nt.obj: nt.c win32.h
|
||||
x68.obj: x68.c win32.h
|
||||
os2.obj: os2.c win32.h
|
||||
dl_os2.obj: dl_os2.c win32.h
|
||||
|
||||
# when I use -I., there is confliction at "OpenFile"
|
||||
# so, set . into environment varible "include"
|
||||
win32.obj: win32.c win32.h
|
||||
|
||||
###
|
||||
ascii.obj: ascii.c regenc.h oniguruma.h config.h
|
||||
array.obj: array.c ruby.h config.h defines.h intern.h missing.h util.h st.h win32.h
|
||||
bignum.obj: bignum.c ruby.h config.h defines.h intern.h missing.h win32.h
|
||||
class.obj: class.c ruby.h config.h defines.h intern.h missing.h rubysig.h node.h st.h win32.h
|
||||
compar.obj: compar.c ruby.h config.h defines.h intern.h missing.h win32.h
|
||||
dir.obj: dir.c ruby.h config.h defines.h intern.h missing.h util.h win32.h
|
||||
dln.obj: dln.c ruby.h config.h defines.h intern.h missing.h dln.h win32.h
|
||||
dmyext.obj: dmyext.c
|
||||
enum.obj: enum.c ruby.h config.h defines.h intern.h missing.h node.h util.h win32.h
|
||||
error.obj: error.c ruby.h config.h defines.h intern.h missing.h env.h version.h st.h win32.h
|
||||
euc_jp.obj: euc_jp.c regenc.h oniguruma.h config.h
|
||||
eval.obj: eval.c ruby.h config.h defines.h intern.h missing.h node.h env.h util.h rubysig.h st.h dln.h win32.h
|
||||
file.obj: file.c ruby.h config.h defines.h intern.h missing.h rubyio.h rubysig.h util.h dln.h win32.h
|
||||
gc.obj: gc.c ruby.h config.h defines.h intern.h missing.h rubysig.h st.h node.h env.h re.h regex.h win32.h
|
||||
hash.obj: hash.c ruby.h config.h defines.h intern.h missing.h st.h util.h rubysig.h win32.h
|
||||
inits.obj: inits.c ruby.h config.h defines.h intern.h missing.h win32.h
|
||||
io.obj: io.c ruby.h config.h defines.h intern.h missing.h rubyio.h rubysig.h env.h util.h win32.h
|
||||
main.obj: main.c ruby.h config.h defines.h intern.h missing.h win32.h
|
||||
marshal.obj: marshal.c ruby.h config.h defines.h intern.h missing.h rubyio.h st.h util.h win32.h
|
||||
math.obj: math.c ruby.h config.h defines.h intern.h missing.h win32.h
|
||||
numeric.obj: numeric.c ruby.h config.h defines.h intern.h missing.h win32.h
|
||||
object.obj: object.c ruby.h config.h defines.h intern.h missing.h st.h util.h win32.h
|
||||
pack.obj: pack.c ruby.h config.h defines.h intern.h missing.h win32.h
|
||||
parse.obj: parse.c ruby.h config.h defines.h intern.h missing.h env.h node.h st.h regex.h util.h lex.c win32.h
|
||||
prec.obj: prec.c ruby.h config.h defines.h intern.h missing.h win32.h
|
||||
process.obj: process.c ruby.h config.h defines.h intern.h missing.h rubysig.h st.h win32.h
|
||||
random.obj: random.c ruby.h config.h defines.h intern.h missing.h win32.h
|
||||
range.obj: range.c ruby.h config.h defines.h intern.h missing.h win32.h
|
||||
re.obj: re.c ruby.h config.h defines.h intern.h missing.h re.h regex.h win32.h
|
||||
regcomp.obj: regcomp.c oniguruma.h regint.h regparse.h regenc.h config.h win32.h
|
||||
regenc.obj: regenc.c regint.h regenc.h oniguruma.h config.h win32.h
|
||||
regerror.obj: regerror.c regint.h regenc.h oniguruma.h config.h win32.h
|
||||
regexec.obj: regexec.c regint.h regenc.h oniguruma.h config.h win32.h
|
||||
reggnu.obj: reggnu.c regint.h regenc.h oniguruma.h config.h oniggnu.h win32.h
|
||||
regparse.obj: regparse.c oniguruma.h regint.h regparse.h regenc.h config.h win32.h
|
||||
ruby.obj: ruby.c ruby.h config.h defines.h intern.h missing.h dln.h node.h util.h win32.h
|
||||
signal.obj: signal.c ruby.h config.h defines.h intern.h missing.h rubysig.h win32.h
|
||||
sjis.obj: sjis.c regenc.h oniguruma.h config.h
|
||||
sprintf.obj: sprintf.c ruby.h config.h defines.h intern.h missing.h win32.h
|
||||
st.obj: st.c config.h st.h
|
||||
string.obj: string.c ruby.h config.h defines.h intern.h missing.h re.h regex.h win32.h
|
||||
struct.obj: struct.c ruby.h config.h defines.h intern.h missing.h win32.h
|
||||
time.obj: time.c ruby.h config.h defines.h intern.h missing.h win32.h
|
||||
utf8.obj: utf8.c regenc.h oniguruma.h config.h
|
||||
util.obj: util.c ruby.h config.h defines.h intern.h missing.h util.h win32.h
|
||||
variable.obj: variable.c ruby.h config.h defines.h intern.h missing.h env.h node.h st.h util.h win32.h
|
||||
version.obj: version.c ruby.h config.h defines.h intern.h missing.h version.h win32.h
|
||||
main.$(OBJEXT): win32.h
|
||||
ascii.$(OBJEXT): win32.h
|
||||
array.$(OBJEXT): win32.h
|
||||
bignum.$(OBJEXT): win32.h
|
||||
class.$(OBJEXT): win32.h
|
||||
compar.$(OBJEXT): win32.h
|
||||
dir.$(OBJEXT): dir.h win32.h
|
||||
dln.$(OBJEXT): win32.h
|
||||
enum.$(OBJEXT): win32.h
|
||||
error.$(OBJEXT): win32.h
|
||||
euc_jp.$(OBJEXT): win32.h
|
||||
eval.$(OBJEXT): win32.h
|
||||
file.$(OBJEXT): win32.h
|
||||
gc.$(OBJEXT): win32.h
|
||||
hash.$(OBJEXT): win32.h
|
||||
inits.$(OBJEXT): win32.h
|
||||
io.$(OBJEXT): win32.h
|
||||
marshal.$(OBJEXT): win32.h
|
||||
math.$(OBJEXT): win32.h
|
||||
numeric.$(OBJEXT): win32.h
|
||||
object.$(OBJEXT): win32.h
|
||||
pack.$(OBJEXT): win32.h
|
||||
parse.$(OBJEXT): win32.h
|
||||
process.$(OBJEXT): win32.h
|
||||
prec.$(OBJEXT): win32.h
|
||||
random.$(OBJEXT): win32.h
|
||||
range.$(OBJEXT): win32.h
|
||||
re.$(OBJEXT): win32.h
|
||||
regcomp.$(OBJEXT): win32.h
|
||||
regenc.$(OBJEXT): win32.h
|
||||
regerror.$(OBJEXT): win32.h
|
||||
regexec.$(OBJEXT): win32.h
|
||||
reggnu.$(OBJEXT): win32.h
|
||||
regparse.$(OBJEXT): win32.h
|
||||
ruby.$(OBJEXT): win32.h
|
||||
signal.$(OBJEXT): win32.h
|
||||
sjis.$(OBJEXT): win32.h
|
||||
sprintf.$(OBJEXT): win32.h
|
||||
st.$(OBJEXT): win32.h
|
||||
string.$(OBJEXT): win32.h
|
||||
struct.$(OBJEXT): win32.h
|
||||
time.$(OBJEXT): win32.h
|
||||
utf8.$(OBJEXT): win32.h
|
||||
util.$(OBJEXT): win32.h
|
||||
variable.$(OBJEXT): win32.h
|
||||
version.$(OBJEXT): win32.h
|
||||
|
|
295
common.mk
Normal file
295
common.mk
Normal file
|
@ -0,0 +1,295 @@
|
|||
EXTCONF = extconf.rb
|
||||
RBCONFIG = ./.rbconfig.time
|
||||
|
||||
DMYEXT = dmyext.$(OBJEXT)
|
||||
MAINOBJ = main.$(OBJEXT)
|
||||
|
||||
OBJS = ascii.$(OBJEXT) \
|
||||
array.$(OBJEXT) \
|
||||
bignum.$(OBJEXT) \
|
||||
class.$(OBJEXT) \
|
||||
compar.$(OBJEXT) \
|
||||
dir.$(OBJEXT) \
|
||||
dln.$(OBJEXT) \
|
||||
enum.$(OBJEXT) \
|
||||
error.$(OBJEXT) \
|
||||
euc_jp.$(OBJEXT) \
|
||||
eval.$(OBJEXT) \
|
||||
file.$(OBJEXT) \
|
||||
gc.$(OBJEXT) \
|
||||
hash.$(OBJEXT) \
|
||||
inits.$(OBJEXT) \
|
||||
io.$(OBJEXT) \
|
||||
marshal.$(OBJEXT) \
|
||||
math.$(OBJEXT) \
|
||||
numeric.$(OBJEXT) \
|
||||
object.$(OBJEXT) \
|
||||
pack.$(OBJEXT) \
|
||||
parse.$(OBJEXT) \
|
||||
process.$(OBJEXT) \
|
||||
prec.$(OBJEXT) \
|
||||
random.$(OBJEXT) \
|
||||
range.$(OBJEXT) \
|
||||
re.$(OBJEXT) \
|
||||
regcomp.$(OBJEXT) \
|
||||
regenc.$(OBJEXT) \
|
||||
regerror.$(OBJEXT) \
|
||||
regexec.$(OBJEXT) \
|
||||
reggnu.$(OBJEXT) \
|
||||
regparse.$(OBJEXT) \
|
||||
ruby.$(OBJEXT) \
|
||||
signal.$(OBJEXT) \
|
||||
sjis.$(OBJEXT) \
|
||||
sprintf.$(OBJEXT) \
|
||||
st.$(OBJEXT) \
|
||||
string.$(OBJEXT) \
|
||||
struct.$(OBJEXT) \
|
||||
time.$(OBJEXT) \
|
||||
utf8.$(OBJEXT) \
|
||||
util.$(OBJEXT) \
|
||||
variable.$(OBJEXT) \
|
||||
version.$(OBJEXT) \
|
||||
$(MISSING)
|
||||
|
||||
SCRIPT_ARGS = --dest-dir="$(DESTDIR)" \
|
||||
--make="$(MAKE)" \
|
||||
--mflags="$(MFLAGS)" \
|
||||
--make-flags="$(MAKEFLAGS)"
|
||||
EXTMK_ARGS = $(SCRIPT_ARGS) --extout="$(EXTOUT)" --extension $(EXTS) --extstatic $(EXTSTATIC) --
|
||||
|
||||
all: $(MKFILES) $(PREP) $(RBCONFIG) $(LIBRUBY)
|
||||
@$(MINIRUBY) $(srcdir)/ext/extmk.rb $(EXTMK_ARGS)
|
||||
|
||||
miniruby$(EXEEXT): config.status $(LIBRUBY_A) $(MAINOBJ) $(OBJS) $(DMYEXT)
|
||||
|
||||
$(PROGRAM): $(LIBRUBY) $(MAINOBJ) $(OBJS) $(EXTOBJS) $(SETUP) $(PREP)
|
||||
|
||||
$(LIBRUBY_A): $(OBJS) $(DMYEXT)
|
||||
|
||||
$(LIBRUBY_SO): $(OBJS) $(DLDOBJS) $(PREP) $(ARCHFILE)
|
||||
|
||||
static-ruby: $(MAINOBJ) $(EXTOBJS) $(LIBRUBY_A)
|
||||
@$(RM) $@
|
||||
$(PURIFY) $(CC) $(LDFLAGS) $(XLDFLAGS) $(MAINLIBS) $(MAINOBJ) $(EXTOBJS) $(LIBRUBY_A) $(LIBS) $(OUTFLAG)$@
|
||||
|
||||
ruby.imp: $(LIBRUBY_A)
|
||||
@$(NM) -Pgp $(LIBRUBY_A) | awk 'BEGIN{print "#!"}; $$2~/^[BD]$$/{print $$1}' | sort -u -o $@
|
||||
|
||||
install: install-nodoc $(RDOCTARGET)
|
||||
install-all: install-nodoc install-doc
|
||||
|
||||
install-nodoc: install-local install-ext
|
||||
install-local: $(RBCONFIG)
|
||||
$(MINIRUBY) $(srcdir)/instruby.rb $(SCRIPT_ARGS) --mantype="$(MANTYPE)"
|
||||
install-ext: $(RBCONFIG)
|
||||
$(MINIRUBY) $(srcdir)/ext/extmk.rb $(EXTMK_ARGS) install
|
||||
|
||||
what-where-all no-install-all: no-install no-install-doc
|
||||
what-where no-install: no-install-local no-install-ext
|
||||
what-where-local: no-install-local
|
||||
no-install-local: $(RBCONFIG)
|
||||
$(MINIRUBY) $(srcdir)/instruby.rb -n $(SCRIPT_ARGS) --mantype="$(MANTYPE)"
|
||||
what-where-ext: no-install-ext
|
||||
no-install-ext: $(RBCONFIG)
|
||||
$(MINIRUBY) $(srcdir)/ext/extmk.rb -n $(EXTMK_ARGS) install
|
||||
|
||||
install-doc: $(PROGRAM)
|
||||
@echo Generating RDoc documentation
|
||||
$(RUNRUBY) "$(srcdir)/bin/rdoc" --all --ri --op "$(RIDATADIR)" "$(srcdir)"
|
||||
|
||||
clean: clean-ext clean-local
|
||||
clean-local::
|
||||
@$(RM) $(OBJS) $(MAINOBJ) $(WINMAINOBJ) $(LIBRUBY_A) $(LIBRUBY_SO) $(LIBRUBY_ALIASES)
|
||||
@$(RM) ext/extinit.c ext/extinit.$(OBJEXT) dmyext.$(OBJEXT)
|
||||
@$(RM) $(PROGRAM) $(WPROGRAM) miniruby$(EXEEXT)
|
||||
clean-ext:
|
||||
@-$(MINIRUBY) $(srcdir)/ext/extmk.rb $(EXTMK_ARGS) clean
|
||||
|
||||
distclean: distclean-ext distclean-local
|
||||
distclean-local:: clean-local
|
||||
@$(RM) $(MKFILES) config.h rbconfig.rb $(RBCONFIG)
|
||||
@$(RM) ext/config.cache config.cache config.log config.status
|
||||
@$(RM) *~ *.bak *.stackdump core *.core gmon.out y.tab.c y.output ruby.imp
|
||||
distclean-ext:
|
||||
@-$(MINIRUBY) $(srcdir)/ext/extmk.rb $(EXTMK_ARGS) distclean 2> $(NULL)
|
||||
|
||||
realclean:: distclean
|
||||
@$(RM) parse.c lex.c
|
||||
|
||||
test: miniruby$(EXEEXT) $(RBCONFIG) $(PROGRAM) PHONY
|
||||
@$(MINIRUBY) $(srcdir)/rubytest.rb
|
||||
|
||||
test-all:
|
||||
$(RUNRUBY) -C "$(srcdir)/test" runner.rb --runner=$(TESTUI) $(TESTS)
|
||||
|
||||
extconf:
|
||||
$(MINIRUBY) -I$(srcdir)/lib -run -e mkdir -- -p "$(EXTCONFDIR)"
|
||||
$(RUNRUBY) -C "$(EXTCONFDIR)" $(EXTCONF) $(EXTCONFARGS)
|
||||
|
||||
$(RBCONFIG): $(srcdir)/mkconfig.rb config.status $(PREP)
|
||||
@$(MINIRUBY) $(srcdir)/mkconfig.rb -timestamp=$@ \
|
||||
-install_name=$(RUBY_INSTALL_NAME) \
|
||||
-so_name=$(RUBY_SO_NAME) rbconfig.rb
|
||||
|
||||
.PRECIOUS: $(MKFILES)
|
||||
|
||||
.PHONY: test install install-nodoc install-doc
|
||||
|
||||
PHONY:
|
||||
|
||||
{$(VPATH)}parse.c: parse.y
|
||||
ext/extinit.$(OBJEXT): ext/extinit.c $(SETUP)
|
||||
$(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(OUTFLAG)$@ -c ext/extinit.c
|
||||
|
||||
acosh.$(OBJEXT): {$(VPATH)}acosh.c
|
||||
alloca.$(OBJEXT): {$(VPATH)}alloca.c
|
||||
crypt.$(OBJEXT): {$(VPATH)}crypt.c
|
||||
dup2.$(OBJEXT): {$(VPATH)}dup2.c
|
||||
erf.$(OBJEXT): {$(VPATH)}erf.c
|
||||
finite.$(OBJEXT): {$(VPATH)}finite.c
|
||||
flock.$(OBJEXT): {$(VPATH)}flock.c
|
||||
memcmp.$(OBJEXT): {$(VPATH)}memcmp.c
|
||||
memmove.$(OBJEXT): {$(VPATH)}memmove.c
|
||||
mkdir.$(OBJEXT): {$(VPATH)}mkdir.c
|
||||
vsnprintf.$(OBJEXT): {$(VPATH)}vsnprintf.c
|
||||
strcasecmp.$(OBJEXT): {$(VPATH)}strcasecmp.c
|
||||
strncasecmp.$(OBJEXT): {$(VPATH)}strncasecmp.c
|
||||
strchr.$(OBJEXT): {$(VPATH)}strchr.c
|
||||
strdup.$(OBJEXT): {$(VPATH)}strdup.c
|
||||
strerror.$(OBJEXT): {$(VPATH)}strerror.c
|
||||
strftime.$(OBJEXT): {$(VPATH)}strftime.c
|
||||
strstr.$(OBJEXT): {$(VPATH)}strstr.c
|
||||
strtod.$(OBJEXT): {$(VPATH)}strtod.c
|
||||
strtol.$(OBJEXT): {$(VPATH)}strtol.c
|
||||
strtoul.$(OBJEXT): {$(VPATH)}strtoul.c
|
||||
nt.$(OBJEXT): {$(VPATH)}nt.c
|
||||
x68.$(OBJEXT): {$(VPATH)}x68.c
|
||||
os2.$(OBJEXT): {$(VPATH)}os2.c
|
||||
dl_os2.$(OBJEXT): {$(VPATH)}dl_os2.c
|
||||
|
||||
# when I use -I., there is confliction at "OpenFile"
|
||||
# so, set . into environment varible "include"
|
||||
win32.$(OBJEXT): {$(VPATH)}win32.c
|
||||
|
||||
###
|
||||
|
||||
ascii.$(OBJEXT): {$(VPATH)}ascii.c {$(VPATH)}regenc.h \
|
||||
{$(VPATH)}oniguruma.h config.h
|
||||
array.$(OBJEXT): {$(VPATH)}array.c {$(VPATH)}ruby.h config.h \
|
||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h \
|
||||
{$(VPATH)}util.h {$(VPATH)}st.h
|
||||
bignum.$(OBJEXT): {$(VPATH)}bignum.c {$(VPATH)}ruby.h config.h \
|
||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h
|
||||
class.$(OBJEXT): {$(VPATH)}class.c {$(VPATH)}ruby.h config.h \
|
||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h \
|
||||
{$(VPATH)}rubysig.h {$(VPATH)}node.h {$(VPATH)}st.h
|
||||
compar.$(OBJEXT): {$(VPATH)}compar.c {$(VPATH)}ruby.h config.h \
|
||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h
|
||||
dir.$(OBJEXT): {$(VPATH)}dir.c {$(VPATH)}ruby.h config.h \
|
||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h \
|
||||
{$(VPATH)}util.h
|
||||
dln.$(OBJEXT): {$(VPATH)}dln.c {$(VPATH)}ruby.h config.h \
|
||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h \
|
||||
{$(VPATH)}dln.h
|
||||
dmyext.$(OBJEXT): {$(VPATH)}dmyext.c
|
||||
enum.$(OBJEXT): {$(VPATH)}enum.c {$(VPATH)}ruby.h config.h \
|
||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h \
|
||||
{$(VPATH)}node.h {$(VPATH)}util.h
|
||||
error.$(OBJEXT): {$(VPATH)}error.c {$(VPATH)}ruby.h config.h \
|
||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h \
|
||||
{$(VPATH)}env.h {$(VPATH)}version.h {$(VPATH)}st.h
|
||||
euc_jp.$(OBJEXT): {$(VPATH)}euc_jp.c {$(VPATH)}regenc.h \
|
||||
{$(VPATH)}oniguruma.h
|
||||
eval.$(OBJEXT): {$(VPATH)}eval.c {$(VPATH)}ruby.h config.h \
|
||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h \
|
||||
{$(VPATH)}node.h {$(VPATH)}env.h {$(VPATH)}util.h \
|
||||
{$(VPATH)}rubysig.h {$(VPATH)}st.h {$(VPATH)}dln.h
|
||||
file.$(OBJEXT): {$(VPATH)}file.c {$(VPATH)}ruby.h config.h \
|
||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h \
|
||||
{$(VPATH)}rubyio.h {$(VPATH)}rubysig.h {$(VPATH)}util.h \
|
||||
{$(VPATH)}dln.h
|
||||
gc.$(OBJEXT): {$(VPATH)}gc.c {$(VPATH)}ruby.h config.h \
|
||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h \
|
||||
{$(VPATH)}rubysig.h {$(VPATH)}st.h {$(VPATH)}node.h \
|
||||
{$(VPATH)}env.h {$(VPATH)}re.h {$(VPATH)}regex.h
|
||||
hash.$(OBJEXT): {$(VPATH)}hash.c {$(VPATH)}ruby.h config.h \
|
||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h \
|
||||
{$(VPATH)}st.h {$(VPATH)}util.h {$(VPATH)}rubysig.h
|
||||
inits.$(OBJEXT): {$(VPATH)}inits.c {$(VPATH)}ruby.h config.h \
|
||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h
|
||||
io.$(OBJEXT): {$(VPATH)}io.c {$(VPATH)}ruby.h config.h \
|
||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h \
|
||||
{$(VPATH)}rubyio.h {$(VPATH)}rubysig.h {$(VPATH)}env.h \
|
||||
{$(VPATH)}util.h
|
||||
main.$(OBJEXT): {$(VPATH)}main.c {$(VPATH)}ruby.h config.h \
|
||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h
|
||||
marshal.$(OBJEXT): {$(VPATH)}marshal.c {$(VPATH)}ruby.h config.h \
|
||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h \
|
||||
{$(VPATH)}rubyio.h {$(VPATH)}st.h {$(VPATH)}util.h
|
||||
math.$(OBJEXT): {$(VPATH)}math.c {$(VPATH)}ruby.h config.h \
|
||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h
|
||||
numeric.$(OBJEXT): {$(VPATH)}numeric.c {$(VPATH)}ruby.h config.h \
|
||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h
|
||||
object.$(OBJEXT): {$(VPATH)}object.c {$(VPATH)}ruby.h config.h \
|
||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h \
|
||||
{$(VPATH)}st.h {$(VPATH)}util.h
|
||||
pack.$(OBJEXT): {$(VPATH)}pack.c {$(VPATH)}ruby.h config.h \
|
||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h
|
||||
parse.$(OBJEXT): {$(VPATH)}parse.c {$(VPATH)}ruby.h config.h \
|
||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h \
|
||||
{$(VPATH)}env.h {$(VPATH)}node.h {$(VPATH)}st.h \
|
||||
{$(VPATH)}regex.h {$(VPATH)}util.h {$(VPATH)}lex.c
|
||||
prec.$(OBJEXT): {$(VPATH)}prec.c {$(VPATH)}ruby.h config.h \
|
||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h
|
||||
process.$(OBJEXT): {$(VPATH)}process.c {$(VPATH)}ruby.h config.h \
|
||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h \
|
||||
{$(VPATH)}rubysig.h {$(VPATH)}st.h
|
||||
random.$(OBJEXT): {$(VPATH)}random.c {$(VPATH)}ruby.h config.h \
|
||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h
|
||||
range.$(OBJEXT): {$(VPATH)}range.c {$(VPATH)}ruby.h config.h \
|
||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h
|
||||
re.$(OBJEXT): {$(VPATH)}re.c {$(VPATH)}ruby.h config.h \
|
||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h \
|
||||
{$(VPATH)}re.h {$(VPATH)}regex.h
|
||||
regcomp.$(OBJEXT): {$(VPATH)}regcomp.c {$(VPATH)}oniguruma.h \
|
||||
{$(VPATH)}regint.h {$(VPATH)}regparse.h {$(VPATH)}regenc.h config.h
|
||||
regenc.$(OBJEXT): {$(VPATH)}regenc.c {$(VPATH)}regint.h \
|
||||
{$(VPATH)}regenc.h {$(VPATH)}oniguruma.h config.h
|
||||
regerror.$(OBJEXT): {$(VPATH)}regerror.c {$(VPATH)}regint.h \
|
||||
{$(VPATH)}regenc.h {$(VPATH)}oniguruma.h config.h
|
||||
regexec.$(OBJEXT): {$(VPATH)}regexec.c {$(VPATH)}regint.h \
|
||||
{$(VPATH)}regenc.h {$(VPATH)}oniguruma.h config.h
|
||||
reggnu.$(OBJEXT): {$(VPATH)}reggnu.c {$(VPATH)}regint.h \
|
||||
{$(VPATH)}regenc.h {$(VPATH)}oniguruma.h {$(VPATH)}oniggnu.h \
|
||||
config.h
|
||||
regparse.$(OBJEXT): {$(VPATH)}regparse.c {$(VPATH)}oniguruma.h \
|
||||
{$(VPATH)}regint.h {$(VPATH)}regparse.h {$(VPATH)}regenc.h config.h
|
||||
ruby.$(OBJEXT): {$(VPATH)}ruby.c {$(VPATH)}ruby.h config.h \
|
||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h \
|
||||
{$(VPATH)}dln.h {$(VPATH)}node.h {$(VPATH)}util.h
|
||||
signal.$(OBJEXT): {$(VPATH)}signal.c {$(VPATH)}ruby.h config.h \
|
||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h \
|
||||
{$(VPATH)}rubysig.h
|
||||
sjis.$(OBJEXT): {$(VPATH)}sjis.c {$(VPATH)}regenc.h \
|
||||
{$(VPATH)}oniguruma.h config.h
|
||||
sprintf.$(OBJEXT): {$(VPATH)}sprintf.c {$(VPATH)}ruby.h config.h \
|
||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h
|
||||
st.$(OBJEXT): {$(VPATH)}st.c config.h {$(VPATH)}st.h
|
||||
string.$(OBJEXT): {$(VPATH)}string.c {$(VPATH)}ruby.h config.h \
|
||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h \
|
||||
{$(VPATH)}re.h {$(VPATH)}regex.h
|
||||
struct.$(OBJEXT): {$(VPATH)}struct.c {$(VPATH)}ruby.h config.h \
|
||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h
|
||||
time.$(OBJEXT): {$(VPATH)}time.c {$(VPATH)}ruby.h config.h \
|
||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h
|
||||
utf8.$(OBJEXT): {$(VPATH)}utf8.c {$(VPATH)}regenc.h \
|
||||
{$(VPATH)}oniguruma.h config.h
|
||||
util.$(OBJEXT): {$(VPATH)}util.c {$(VPATH)}ruby.h config.h \
|
||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h \
|
||||
{$(VPATH)}util.h
|
||||
variable.$(OBJEXT): {$(VPATH)}variable.c {$(VPATH)}ruby.h config.h \
|
||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h \
|
||||
{$(VPATH)}env.h {$(VPATH)}node.h {$(VPATH)}st.h {$(VPATH)}util.h
|
||||
version.$(OBJEXT): {$(VPATH)}version.c {$(VPATH)}ruby.h config.h \
|
||||
{$(VPATH)}defines.h {$(VPATH)}intern.h {$(VPATH)}missing.h \
|
||||
{$(VPATH)}version.h
|
|
@ -1480,5 +1480,6 @@ else
|
|||
fi
|
||||
: > confdefs.h
|
||||
|
||||
AC_CONFIG_FILES([$FIRSTMAKEFILE Makefile])
|
||||
AC_CONFIG_FILES($FIRSTMAKEFILE)
|
||||
AC_CONFIG_FILES(Makefile, [[sed 's/{\$([^(){}]*)[^{}]*}//g' ${srcdir}/common.mk >> Makefile]])
|
||||
AC_OUTPUT
|
||||
|
|
|
@ -31,7 +31,7 @@ $(RUBY_EXP) $(LIBRUBY_SO): $(DLL_BASE_NAME).res.@OBJEXT@
|
|||
%.res.@OBJEXT@: %.rc
|
||||
@WINDRES@ --include-dir . --include-dir $(<D) --include-dir $(srcdir)/win32 $< $@
|
||||
|
||||
$(RUBY_INSTALL_NAME).rc $(RUBYW_INSTALL_NAME).rc $(DLL_BASE_NAME).rc: rbconfig.rb
|
||||
$(RUBY_INSTALL_NAME).rc $(RUBYW_INSTALL_NAME).rc $(DLL_BASE_NAME).rc: $(RBCONFIG)
|
||||
@$(MINIRUBY) $(srcdir)/win32/resource.rb \
|
||||
-ruby_name=$(RUBY_INSTALL_NAME) -rubyw_name=$(RUBYW_INSTALL_NAME) \
|
||||
-so_name=$(DLL_BASE_NAME) \
|
||||
|
|
13
mkconfig.rb
13
mkconfig.rb
|
@ -132,6 +132,17 @@ EOS
|
|||
$stdout.flush
|
||||
$stdout.reopen($orgout)
|
||||
config.close
|
||||
File.rename(rbconfig_rb_tmp, rbconfig_rb)
|
||||
if $timestamp and
|
||||
File.exist?(rbconfig_rb) and
|
||||
FileUtils.compare_file(rbconfig_rb, rbconfig_rb_tmp)
|
||||
puts "#{rbconfig_rb} unchanged"
|
||||
File.unlink(rbconfig_rb_tmp)
|
||||
else
|
||||
puts "#{rbconfig_rb} updated"
|
||||
File.rename(rbconfig_rb_tmp, rbconfig_rb)
|
||||
end
|
||||
if String === $timestamp
|
||||
FileUtils.touch($timestamp)
|
||||
end
|
||||
|
||||
# vi:set sw=2:
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
# -*- makefile -*-
|
||||
|
||||
SHELL = $(COMSPEC)
|
||||
MAKEFILES = Makefile $(srcdir)/wince/Makefile.sub
|
||||
MKFILES = Makefile $(srcdir)/win32/Makefile.sub $(srcdir)/common.mk
|
||||
NULL = nul
|
||||
|
||||
#### Start of system configuration section. ####
|
||||
|
||||
|
@ -27,7 +28,7 @@ iconinc=-I$(icondirs: = -I)
|
|||
!endif
|
||||
###############
|
||||
|
||||
VPATH = $(srcdir):$(srcdir)/missing
|
||||
VPATH = $(srcdir);$(srcdir)/missing;$(srcdir)/win32
|
||||
.SUFFIXES: .y .def .lib
|
||||
|
||||
!if !defined(CC)
|
||||
|
@ -42,6 +43,7 @@ YACC = byacc
|
|||
AR = lib -nologo
|
||||
PURIFY =
|
||||
AUTOCONF = autoconf
|
||||
RM = $(srcdir:/=\)\win32\rm.bat
|
||||
|
||||
!if !defined(PROCESSOR_ARCHITECTURE)
|
||||
PROCESSOR_ARCHITECTURE = x86
|
||||
|
@ -103,6 +105,8 @@ TESTS =
|
|||
!ifndef RDOCTARGET
|
||||
RDOCTARGET = install-doc
|
||||
!endif
|
||||
|
||||
OUTFLAG = -Fe
|
||||
!if !defined(CFLAGS)
|
||||
CFLAGS = -MD $(DEBUGFLAGS) $(OPTFLAGS) $(PROCESSOR_FLAG)
|
||||
!endif
|
||||
|
@ -141,7 +145,6 @@ WPROGRAM=$(RUBYW_INSTALL_NAME)$(EXEEXT)
|
|||
RUBYDEF = $(RUBY_SO_NAME).def
|
||||
MINIRUBY = .\miniruby$(EXEEXT)
|
||||
RUNRUBY = .\ruby$(EXEEXT) "$(srcdir)/runruby.rb" --extout="$(EXTOUT)" --
|
||||
EXTCONF = extconf.rb
|
||||
|
||||
!if !defined(STACK)
|
||||
STACK = 0x2000000
|
||||
|
@ -161,71 +164,16 @@ PREP = miniruby$(EXEEXT)
|
|||
EXTSTATIC =
|
||||
!endif
|
||||
|
||||
OBJEXT = obj
|
||||
|
||||
EXTOBJS =
|
||||
DLDOBJS =
|
||||
DMYEXT = dmyext.obj
|
||||
|
||||
MAINOBJ = main.obj
|
||||
WINMAINOBJ = winmain.obj
|
||||
WINMAINOBJ = winmain.$(OBJEXT)
|
||||
|
||||
OBJS = ascii.obj \
|
||||
array.obj \
|
||||
bignum.obj \
|
||||
class.obj \
|
||||
compar.obj \
|
||||
dir.obj \
|
||||
dln.obj \
|
||||
enum.obj \
|
||||
error.obj \
|
||||
euc_jp.obj \
|
||||
eval.obj \
|
||||
file.obj \
|
||||
gc.obj \
|
||||
hash.obj \
|
||||
inits.obj \
|
||||
io.obj \
|
||||
marshal.obj \
|
||||
math.obj \
|
||||
numeric.obj \
|
||||
object.obj \
|
||||
pack.obj \
|
||||
parse.obj \
|
||||
prec.obj \
|
||||
process.obj \
|
||||
random.obj \
|
||||
range.obj \
|
||||
re.obj \
|
||||
regcomp.obj \
|
||||
regenc.obj \
|
||||
regerror.obj \
|
||||
regexec.obj \
|
||||
reggnu.obj \
|
||||
regparse.obj \
|
||||
ruby.obj \
|
||||
signal.obj \
|
||||
sjis.obj \
|
||||
sprintf.obj \
|
||||
st.obj \
|
||||
string.obj \
|
||||
struct.obj \
|
||||
time.obj \
|
||||
utf8.obj \
|
||||
util.obj \
|
||||
variable.obj \
|
||||
version.obj \
|
||||
$(MISSING)
|
||||
all:
|
||||
|
||||
SCRIPT_ARGS = "--dest-dir=$(DESTDIR)" \
|
||||
"--make=$(MAKE)" \
|
||||
"--mflags=$(MFLAGS)" \
|
||||
"--make-flags=$(MAKEFLAGS)"
|
||||
EXTMK_ARGS = $(SCRIPT_ARGS) --extout="$(EXTOUT)" --extension $(EXTS) --extstatic $(EXTSTATIC) --
|
||||
|
||||
all: ext rbconfig.rb $(LIBRUBY) $(MISCLIBS)
|
||||
@$(MINIRUBY) $(srcdir)/ext/extmk.rb $(EXTMK_ARGS)
|
||||
|
||||
ext:
|
||||
@mkdir $@
|
||||
!include $(srcdir)/common.mk
|
||||
|
||||
ruby: $(PROGRAM)
|
||||
rubyw: $(WPROGRAM)
|
||||
|
@ -323,7 +271,7 @@ config.h:
|
|||
#define RUBY_SITE_ARCHLIB "/lib/ruby/site_ruby/$(MAJOR).$(MINOR)/$(ARCH)-$(RT)"
|
||||
<<KEEP
|
||||
|
||||
config.status: $(MAKEFILES)
|
||||
config.status: $(MKFILES)
|
||||
@echo Creating <<$@
|
||||
# Generated automatically by Makefile.sub.
|
||||
s,@SHELL@,$$(COMSPEC),;t t
|
||||
|
@ -375,7 +323,7 @@ s,@LIBOBJS@, acosh.obj crypt.obj erf.obj win32.obj,;t t
|
|||
s,@ALLOCA@,$(ALLOCA),;t t
|
||||
s,@DEFAULT_KCODE@,$(DEFAULT_KCODE),;t t
|
||||
s,@EXEEXT@,.exe,;t t
|
||||
s,@OBJEXT@,obj,;t t
|
||||
s,@OBJEXT@,$(OBJEXT),;t t
|
||||
s,@XCFLAGS@,$(XCFLAGS),;t t
|
||||
s,@XLDFLAGS@,$(XLDFLAGS),;t t
|
||||
s,@DLDFLAGS@,$(DLDFLAGS) $$(LIBPATH) -def:$$(DEFFILE) -implib:$$(*F:.so=)-$$(arch).lib -pdb:$$(*F:.so=)-$$(arch).pdb,;t t
|
||||
|
@ -405,7 +353,7 @@ s,@LIBRUBYARG_SHARED@,$$(LIBRUBY),;t t
|
|||
s,@SOLIBS@,$(SOLIBS),;t t
|
||||
s,@DLDLIBS@,$(DLDLIBS),;t t
|
||||
s,@ENABLE_SHARED@,yes,;t t
|
||||
s,@OUTFLAG@,-Fe,;t t
|
||||
s,@OUTFLAG@,$(OUTFLAG),;t t
|
||||
s,@CPPOUTFILE@,-P,;t t
|
||||
s,@LIBPATHFLAG@, -libpath:"%s",;t t
|
||||
s,@RPATHFLAG@,,;t t
|
||||
|
@ -428,17 +376,17 @@ s,@srcdir@,$(srcdir),;t t
|
|||
s,@top_srcdir@,$(srcdir),;t t
|
||||
<<KEEP
|
||||
|
||||
miniruby$(EXEEXT): $(LIBRUBY_A) $(MAINOBJ)
|
||||
miniruby$(EXEEXT):
|
||||
@echo. $(LIBS)
|
||||
$(PURIFY) $(CC) $(MAINOBJ) $(LIBRUBY_A) $(LIBS) -Fe$@ $(LDFLAGS)
|
||||
|
||||
$(PROGRAM): $(MAINOBJ) $(LIBRUBY_SO) $*.res
|
||||
$(PROGRAM): $*.res
|
||||
$(PURIFY) $(CC) $(MAINOBJ) $*.res \
|
||||
-Fe$@ $(LIBRUBYARG) $(LDFLAGS) $(XLDFLAGS)
|
||||
$(OUTFLAG)$@ $(LIBRUBYARG) $(LDFLAGS) $(XLDFLAGS)
|
||||
|
||||
$(WPROGRAM): $(MAINOBJ) $(WINMAINOBJ) $(LIBRUBY_SO) $*.res
|
||||
$(PURIFY) $(CC) $(MAINOBJ) $(WINMAINOBJ) $*.res \
|
||||
-Fe$@ $(LIBRUBYARG) $(LDFLAGS) $(XLDFLAGS) -subsystem:Windows
|
||||
$(OUTFLAG)$@ $(LIBRUBYARG) $(LDFLAGS) $(XLDFLAGS) -subsystem:Windows
|
||||
|
||||
$(LIBRUBY_A): $(OBJS) $(DMYEXT)
|
||||
$(AR) $(ARFLAGS)$@ $(OBJS) $(DMYEXT)
|
||||
|
@ -448,7 +396,7 @@ $(LIBRUBY): $(RUBYDEF)
|
|||
|
||||
$(LIBRUBY_SO): $(LIBRUBY_A) $(DLDOBJS) $(RUBYDEF) $*.res
|
||||
@echo. $(DLDOBJS)
|
||||
$(LIBRUBY_LDSHARED) $(MAINOBJ) $(DLDOBJS) $(LIBRUBY_A) $*.res $(LIBS) \
|
||||
$(LDSHARED) $(MAINOBJ) $(DLDOBJS) $(LIBRUBY_A) $*.res $(LIBS) \
|
||||
-Fe$@ $(LDFLAGS) $(LIBRUBY_DLDFLAGS)
|
||||
|
||||
$(RUBYDEF): $(LIBRUBY_A) $(PREP)
|
||||
|
@ -457,97 +405,16 @@ $(RUBYDEF): $(LIBRUBY_A) $(PREP)
|
|||
{$(srcdir)/win32}.def.lib:
|
||||
$(AR) $(ARFLAGS)$@ -def:$<
|
||||
|
||||
install: install-nodoc $(RDOCTARGET)
|
||||
install-all: install-nodoc install-doc
|
||||
clean-local::
|
||||
@$(RM) ext\extinit.c ext\extinit.$(OBJEXT) ext\vc*.pdb
|
||||
@$(RM) $(RUBY_INSTALL_NAME).res $(RUBYW_INSTALL_NAME).res $(RUBY_SO_NAME).res
|
||||
|
||||
install-nodoc: install-local install-ext
|
||||
install-local: rbconfig.rb
|
||||
$(MINIRUBY) $(srcdir)/instruby.rb $(SCRIPT_ARGS)
|
||||
install-ext: rbconfig.rb
|
||||
$(MINIRUBY) $(srcdir)/ext/extmk.rb $(EXTMK_ARGS) install
|
||||
distclean-local::
|
||||
@$(RM) ext\config.cache
|
||||
@$(RM) *.map *.pdb *.ilk *.exp $(RUBYDEF)
|
||||
@$(RM) $(RUBY_INSTALL_NAME).rc $(RUBYW_INSTALL_NAME).rc $(RUBY_SO_NAME).rc
|
||||
|
||||
what-where-all no-install-all: no-install no-install-doc
|
||||
what-where no-install: no-install-local no-install-ext
|
||||
what-where-local: no-install-local
|
||||
no-install-local: rbconfig.rb
|
||||
$(MINIRUBY) $(srcdir)/instruby.rb -n $(SCRIPT_ARGS)
|
||||
what-where-ext: no-install-ext
|
||||
no-install-ext: rbconfig.rb
|
||||
$(MINIRUBY) $(srcdir)/ext/extmk.rb -n $(EXTMK_ARGS) install
|
||||
|
||||
install-doc: $(PROGRAM)
|
||||
@echo Generating RDoc documentation
|
||||
$(RUNRUBY) "$(srcdir)/bin/rdoc" --all --ri --op "$(RIDATADIR)" "$(srcdir)"
|
||||
|
||||
clean: clean-ext clean-local
|
||||
|
||||
clean-local:
|
||||
@if exist $(LIBRUBY_A) del $(LIBRUBY_A)
|
||||
@if exist $(MAINOBJ) del $(MAINOBJ)
|
||||
@if exist rbconfig.rb del rbconfig.rb
|
||||
@if exist ext\extinit.c del ext\extinit.c
|
||||
@if exist ext\extinit.obj del ext\extinit.obj
|
||||
@if exist ext\vc*.pdb del ext\vc*.pdb
|
||||
@if exist *.obj del *.obj
|
||||
@if exist *.res del *.res
|
||||
|
||||
clean-ext:
|
||||
@-$(MINIRUBY) $(srcdir)/ext/extmk.rb $(EXTMK_ARGS) clean
|
||||
|
||||
distclean: distclean-ext distclean-local
|
||||
|
||||
distclean-local: clean-local
|
||||
@if exist Makefile del Makefile
|
||||
@if exist config.h del config.h
|
||||
@if exist ext\config.cache del ext\config.cache
|
||||
@if exist config.cache del config.cache
|
||||
@if exist config.log del config.log
|
||||
@if exist config.status del config.status
|
||||
@if exist *~ del *~
|
||||
@if exist *.bak del *.bak
|
||||
@if exist *.stackdump del *.stackdump
|
||||
@if exist *.core del *.core
|
||||
@if exist gmon.out del gmon.out
|
||||
@if exist y.tab.c del y.tab.c
|
||||
@if exist y.output del y.output
|
||||
@if exist *.map del *.map
|
||||
@if exist *.pdb del *.pdb
|
||||
@if exist *.ilk del *.ilk
|
||||
@if exist *.exp del *.exp
|
||||
@if exist $(RUBYDEF) del $(RUBYDEF)
|
||||
@if exist $(RUBY_INSTALL_NAME).rc del $(RUBY_INSTALL_NAME).rc
|
||||
@if exist $(RUBYW_INSTALL_NAME).rc del $(RUBYW_INSTALL_NAME).rc
|
||||
@if exist $(RUBY_SO_NAME).rc del $(RUBY_SO_NAME).rc
|
||||
@if exist $(PROGRAM) del $(PROGRAM)
|
||||
@if exist $(WPROGRAM) del $(WPROGRAM)
|
||||
@if exist $(LIBRUBY_SO) del $(LIBRUBY_SO)
|
||||
@if exist $(LIBRUBY) del $(LIBRUBY)
|
||||
@if exist ext\nul if not exist ext\* rmdir ext
|
||||
@if exist miniruby$(EXEEXT) del miniruby$(EXEEXT)
|
||||
|
||||
distclean-ext:
|
||||
@-$(MINIRUBY) $(srcdir)/ext/extmk.rb $(EXTMK_ARGS) distclean
|
||||
|
||||
realclean: distclean
|
||||
@if exist parse.c del parse.c
|
||||
@if exist lex.c del lex.c
|
||||
|
||||
test: miniruby$(EXEEXT) NUL
|
||||
@miniruby$(EXEEXT) $(srcdir)/rubytest.rb
|
||||
|
||||
test-all:
|
||||
$(RUNRUBY) -C "$(srcdir)/test" runner.rb --runner=$(TESTUI) $(TESTS)
|
||||
|
||||
extconf:
|
||||
$(MINIRUBY) -run -e mkdir -- -p "$(EXTCONFDIR)"
|
||||
$(RUNRUBY) -C "$(EXTCONFDIR)" $(EXTCONF) $(EXTCONFARGS)
|
||||
|
||||
rbconfig.rb: $(PREP) config.status
|
||||
@$(MINIRUBY) $(srcdir)/mkconfig.rb -srcdir=$(srcdir) \
|
||||
-install_name=$(RUBY_INSTALL_NAME) \
|
||||
-so_name=$(RUBY_SO_NAME) rbconfig.rb
|
||||
|
||||
$(RUBY_INSTALL_NAME).rc $(RUBYW_INSTALL_NAME).rc $(RUBY_SO_NAME).rc: rbconfig.rb
|
||||
$(RUBY_INSTALL_NAME).rc $(RUBYW_INSTALL_NAME).rc $(RUBY_SO_NAME).rc: $(RBCONFIG)
|
||||
@$(MINIRUBY) $(srcdir)/win32/resource.rb \
|
||||
-ruby_name=$(RUBY_INSTALL_NAME) \
|
||||
-rubyw_name=$(RUBYW_INSTALL_NAME) \
|
||||
|
@ -555,13 +422,13 @@ $(RUBY_INSTALL_NAME).rc $(RUBYW_INSTALL_NAME).rc $(RUBY_SO_NAME).rc: rbconfig.rb
|
|||
. $(icondirs) $(srcdir)/win32
|
||||
|
||||
{$(srcdir)/missing}.c.obj:
|
||||
$(CC) $(CFLAGS) $(XCFLAGS) -I. -I$(<D) $(CPPFLAGS) -c -Tc$(<:\=/)
|
||||
$(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -c -Tc$(<:\=/)
|
||||
{$(srcdir)/win32}.c.obj:
|
||||
$(CC) $(CFLAGS) $(XCFLAGS) -I. -I$(<D) $(CPPFLAGS) -c -Tc$(<:\=/)
|
||||
$(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -c -Tc$(<:\=/)
|
||||
{$(srcdir)}.c.obj:
|
||||
$(CC) $(CFLAGS) $(XCFLAGS) -I. -I$(<D) $(CPPFLAGS) -c -Tc$(<:\=/)
|
||||
$(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -c -Tc$(<:\=/)
|
||||
.c.obj:
|
||||
$(CC) $(CFLAGS) $(XCFLAGS) -I. $(CPPFLAGS) -c -Tc$(<:\=/)
|
||||
$(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -c -Tc$(<:\=/)
|
||||
|
||||
.rc.res:
|
||||
$(RC) -I. -I$(<D) $(iconinc) -I$(srcdir)/win32 $(RFLAGS) -fo$@ $(<:\=/)
|
||||
|
@ -571,184 +438,6 @@ $(RUBY_INSTALL_NAME).rc $(RUBYW_INSTALL_NAME).rc $(RUBY_SO_NAME).rc: rbconfig.rb
|
|||
sed -e "s!^ *extern char \*getenv();!/* & */!;s/^\(#.*\)y\.tab/\1parse/" y.tab.c > $@
|
||||
@del y.tab.c
|
||||
|
||||
{$(srcdir)}parse.c: parse.y
|
||||
$(OBJS): {$(srcdir)}win32/win32.h
|
||||
|
||||
ext/extinit.obj: ext/extinit.c $(SETUP)
|
||||
$(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -Fo$@ -c ext/extinit.c
|
||||
|
||||
acosh.obj: {$(srcdir)}missing/acosh.c
|
||||
alloca.obj: {$(srcdir)}missing/alloca.c
|
||||
crypt.obj: {$(srcdir)}missing/crypt.c
|
||||
dup2.obj: {$(srcdir)}missing/dup2.c
|
||||
erf.obj: {$(srcdir)}missing/erf.c
|
||||
finite.obj: {$(srcdir)}missing/finite.c
|
||||
flock.obj: {$(srcdir)}missing/flock.c
|
||||
memcmp.obj: {$(srcdir)}missing/memcmp.c
|
||||
memmove.obj: {$(srcdir)}missing/memmove.c
|
||||
mkdir.obj: {$(srcdir)}missing/mkdir.c
|
||||
vsnprintf.obj: {$(srcdir)}missing/vsnprintf.c
|
||||
strcasecmp.obj: {$(srcdir)}missing/strcasecmp.c
|
||||
strncasecmp.obj: {$(srcdir)}missing/strncasecmp.c
|
||||
strchr.obj: {$(srcdir)}missing/strchr.c
|
||||
strdup.obj: {$(srcdir)}missing/strdup.c
|
||||
strerror.obj: {$(srcdir)}missing/strerror.c
|
||||
strftime.obj: {$(srcdir)}missing/strftime.c
|
||||
strstr.obj: {$(srcdir)}missing/strstr.c
|
||||
strtod.obj: {$(srcdir)}missing/strtod.c
|
||||
strtol.obj: {$(srcdir)}missing/strtol.c
|
||||
strtoul.obj: {$(srcdir)}missing/strtoul.c
|
||||
nt.obj: {$(srcdir)}missing/nt.c
|
||||
x68.obj: {$(srcdir)}missing/x68.c
|
||||
os2.obj: {$(srcdir)}missing/os2.c
|
||||
dl_os2.obj: {$(srcdir)}missing/dl_os2.c
|
||||
|
||||
# when I use -I., there is confliction at "OpenFile"
|
||||
# so, set . into environment varible "include"
|
||||
win32.obj: {$(srcdir)}win32/win32.c
|
||||
|
||||
# Prevent GNU make v3 from overflowing arg limit on SysV.
|
||||
.NOEXPORT:
|
||||
###
|
||||
ascii.obj: {$(srcdir)}ascii.c {$(srcdir)}regenc.h {$(srcdir)}oniguruma.h \
|
||||
config.h
|
||||
array.obj: {$(srcdir)}array.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}util.h {$(srcdir)}st.h {$(srcdir)}/win32/win32.h
|
||||
bignum.obj: {$(srcdir)}bignum.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
class.obj: {$(srcdir)}class.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}rubysig.h {$(srcdir)}node.h {$(srcdir)}st.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
compar.obj: {$(srcdir)}compar.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
dir.obj: {$(srcdir)}dir.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}util.h {$(srcdir)}/win32/win32.h {$(srcdir)}/win32/dir.h
|
||||
dln.obj: {$(srcdir)}dln.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}dln.h {$(srcdir)}/win32/win32.h
|
||||
dmyext.obj: {$(srcdir)}dmyext.c
|
||||
enum.obj: {$(srcdir)}enum.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}node.h {$(srcdir)}util.h {$(srcdir)}/win32/win32.h
|
||||
error.obj: {$(srcdir)}error.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}env.h {$(srcdir)}version.h {$(srcdir)}st.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
euc_jp.obj: {$(srcdir)}euc_jp.c {$(srcdir)}regenc.h {$(srcdir)}oniguruma.h \
|
||||
config.h
|
||||
eval.obj: {$(srcdir)}eval.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}node.h {$(srcdir)}env.h {$(srcdir)}util.h \
|
||||
{$(srcdir)}rubysig.h {$(srcdir)}st.h {$(srcdir)}dln.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
file.obj: {$(srcdir)}file.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}rubyio.h {$(srcdir)}rubysig.h {$(srcdir)}util.h \
|
||||
{$(srcdir)}dln.h {$(srcdir)}/win32/win32.h
|
||||
gc.obj: {$(srcdir)}gc.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}rubysig.h {$(srcdir)}st.h {$(srcdir)}node.h \
|
||||
{$(srcdir)}env.h {$(srcdir)}re.h {$(srcdir)}regex.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
hash.obj: {$(srcdir)}hash.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}st.h {$(srcdir)}util.h {$(srcdir)}rubysig.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
inits.obj: {$(srcdir)}inits.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
io.obj: {$(srcdir)}io.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}rubyio.h {$(srcdir)}rubysig.h {$(srcdir)}env.h \
|
||||
{$(srcdir)}util.h {$(srcdir)}/win32/win32.h
|
||||
main.obj: {$(srcdir)}main.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
marshal.obj: {$(srcdir)}marshal.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}rubyio.h {$(srcdir)}st.h {$(srcdir)}util.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
math.obj: {$(srcdir)}math.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
numeric.obj: {$(srcdir)}numeric.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
object.obj: {$(srcdir)}object.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}st.h {$(srcdir)}util.h {$(srcdir)}/win32/win32.h
|
||||
pack.obj: {$(srcdir)}pack.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
parse.obj: {$(srcdir)}parse.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}env.h {$(srcdir)}node.h {$(srcdir)}st.h {$(srcdir)}regex.h \
|
||||
{$(srcdir)}util.h {$(srcdir)}lex.c {$(srcdir)}/win32/win32.h
|
||||
prec.obj: {$(srcdir)}prec.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
process.obj: {$(srcdir)}process.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}rubysig.h {$(srcdir)}st.h {$(srcdir)}/win32/win32.h
|
||||
random.obj: {$(srcdir)}random.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
range.obj: {$(srcdir)}range.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
re.obj: {$(srcdir)}re.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}re.h {$(srcdir)}regex.h {$(srcdir)}/win32/win32.h
|
||||
regcomp.obj: {$(srcdir)}regcomp.c {$(srcdir)}oniguruma.h {$(srcdir)}regint.h \
|
||||
{$(srcdir)}regparse.h {$(srcdir)}regenc.h {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
regenc.obj: {$(srcdir)}regenc.c {$(srcdir)}regint.h {$(srcdir)}regenc.h \
|
||||
{$(srcdir)}oniguruma.h {$(srcdir)}ruby.h config.h {$(srcdir)}/win32/win32.h
|
||||
regerror.obj: {$(srcdir)}regerror.c {$(srcdir)}regint.h {$(srcdir)}regenc.h \
|
||||
{$(srcdir)}oniguruma.h {$(srcdir)}ruby.h config.h {$(srcdir)}/win32/win32.h
|
||||
regexec.obj: {$(srcdir)}regexec.c {$(srcdir)}regint.h {$(srcdir)}regenc.h \
|
||||
{$(srcdir)}oniguruma.h {$(srcdir)}ruby.h config.h {$(srcdir)}/win32/win32.h
|
||||
reggnu.obj: {$(srcdir)}reggnu.c {$(srcdir)}regint.h {$(srcdir)}regenc.h \
|
||||
{$(srcdir)}oniguruma.h {$(srcdir)}ruby.h config.h {$(srcdir)}oniggnu.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
regparse.obj: {$(srcdir)}regparse.c {$(srcdir)}oniguruma.h {$(srcdir)}regint.h \
|
||||
{$(srcdir)}regparse.h {$(srcdir)}regenc.h {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
ruby.obj: {$(srcdir)}ruby.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}dln.h {$(srcdir)}node.h {$(srcdir)}util.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
signal.obj: {$(srcdir)}signal.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}rubysig.h {$(srcdir)}/win32/win32.h
|
||||
sjis.obj: {$(srcdir)}sjis.c {$(srcdir)}regenc.h {$(srcdir)}oniguruma.h \
|
||||
config.h
|
||||
sprintf.obj: {$(srcdir)}sprintf.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
st.obj: {$(srcdir)}st.c config.h {$(srcdir)}st.h
|
||||
string.obj: {$(srcdir)}string.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}re.h {$(srcdir)}regex.h {$(srcdir)}/win32/win32.h
|
||||
struct.obj: {$(srcdir)}struct.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
time.obj: {$(srcdir)}time.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
utf8.obj: {$(srcdir)}utf8.c {$(srcdir)}regenc.h {$(srcdir)}oniguruma.h \
|
||||
config.h
|
||||
util.obj: {$(srcdir)}util.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}util.h {$(srcdir)}/win32/win32.h
|
||||
variable.obj: {$(srcdir)}variable.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}env.h {$(srcdir)}node.h {$(srcdir)}st.h {$(srcdir)}util.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
version.obj: {$(srcdir)}version.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}version.h {$(srcdir)}/win32/win32.h
|
||||
dir.$(OBJEXT): {$(srcdir)}win32/dir.h
|
||||
|
|
9
win32/rm.bat
Executable file
9
win32/rm.bat
Executable file
|
@ -0,0 +1,9 @@
|
|||
@echo off
|
||||
::: $Id$
|
||||
if "%1" == "-f" shift
|
||||
:begin
|
||||
if "%1" == "" goto :end
|
||||
if exist %1 del %1
|
||||
shift
|
||||
goto :begin
|
||||
:end
|
|
@ -1,6 +1,8 @@
|
|||
# -*- makefile -*-
|
||||
|
||||
SHELL = $(COMSPEC)
|
||||
MKFILES = Makefile $(srcdir)/wince/Makefile.sub $(srcdir)/common.mk
|
||||
NULL = nul
|
||||
|
||||
#### Start of system configuration section. ####
|
||||
|
||||
|
@ -26,7 +28,7 @@ iconinc=-I$(icondirs: = -I)
|
|||
!endif
|
||||
###############
|
||||
|
||||
VPATH = $(srcdir):$(srcdir)/missing
|
||||
VPATH = $(srcdir);$(srcdir)/missing;$(srcdir)/wince
|
||||
.SUFFIXES: .y .def .lib
|
||||
|
||||
!if !defined(CC)
|
||||
|
@ -41,6 +43,7 @@ YACC = byacc
|
|||
AR = lib -nologo
|
||||
PURIFY =
|
||||
AUTOCONF = autoconf
|
||||
RM = $(srcdir)\win32\rm.bat
|
||||
|
||||
!if !defined(PROCESSOR_ARCHITECTURE)
|
||||
PROCESSOR_ARCHITECTURE = x86
|
||||
|
@ -66,11 +69,9 @@ DEBUGFLAGS = -Zi
|
|||
!if !defined(OPTFLAGS)
|
||||
OPTFLAGS = -w -O2b2xg-
|
||||
!endif
|
||||
!ifndef OS
|
||||
OS = mswin32
|
||||
!endif
|
||||
!ifndef RT
|
||||
RT = msvcrt
|
||||
!if !defined(OS) || !defined(RT)
|
||||
OS = mswince
|
||||
RT = $(OS)
|
||||
!endif
|
||||
|
||||
!ifndef RUBY_SO_NAME
|
||||
|
@ -80,7 +81,6 @@ RUBY_SO_NAME = $(RT)-$(RUBY_INSTALL_NAME)$(MAJOR)$(MINOR)
|
|||
RUBY_PLATFORM = $(ARCH)-$(OS)
|
||||
!endif
|
||||
|
||||
|
||||
!if !defined(prefix)
|
||||
prefix = /usr
|
||||
!endif
|
||||
|
@ -90,17 +90,34 @@ exec_prefix = $(prefix)
|
|||
!if !defined(libdir)
|
||||
libdir = $(exec_prefix)/lib
|
||||
!endif
|
||||
!if !defined(DESTDIR)
|
||||
DESTDIR = $(prefix)
|
||||
!if !defined(datadir)
|
||||
datadir = $(prefix)/share
|
||||
!endif
|
||||
!ifndef EXTOUT
|
||||
EXTOUT = .ext
|
||||
!endif
|
||||
!ifndef RIDATADIR
|
||||
RIDATADIR = $(DESTDIR)$(datadir)/ri/$(MAJOR).$(MINOR)/system
|
||||
!endif
|
||||
!ifndef RDOCTARGET
|
||||
RDOCTARGET = install-doc
|
||||
!endif
|
||||
|
||||
OUTFLAG = -Fe
|
||||
!if !defined(CFLAGS)
|
||||
CFLAGS = $(DEBUGFLAGS) $(OPTFLAGS) $(PROCESSOR_FLAG)
|
||||
!endif
|
||||
!if !defined(CPPFLAGS)
|
||||
CPPFLAGS = -I. -I$(srcdir) -I$(srcdir)/missing -I$(srcdir)/wince
|
||||
CPPFLAGS = -I. -I$(srcdir) -I$(srcdir)/missing -I$(srcdir)/wince \
|
||||
$(CECPUDEF) -DUNDER_CE -D_WIN32_WCE=$(SUBSYSVERSION:.=) \
|
||||
-DFILENAME_MAX=MAX_PATH -DTLS_OUT_OF_INDEXES=0xFFFFFFFF \
|
||||
-DBUFSIZ=512 -D_UNICODE -DUNICODE
|
||||
!endif
|
||||
!if !defined(LDFLAGS)
|
||||
LDFLAGS = -link -incremental:yes -pdb:none -machine:$(MACHINE) -subsystem:$(SUBSYSTEM)
|
||||
!endif
|
||||
!if !defined(XLDFLAGS)
|
||||
XLDFLAGS =
|
||||
XLDFLAGS = -stack:$(STACK) -subsystem:$(SUBSYSTEM)
|
||||
!endif
|
||||
!if !defined(RFLAGS)
|
||||
RFLAGS = -r
|
||||
|
@ -110,20 +127,18 @@ EXTLIBS =
|
|||
!endif
|
||||
LIBS = coredll.lib winsock.lib $(EXTLIBS)
|
||||
MISSING = acosh.obj crypt.obj dup2.obj erf.obj hypot.obj \
|
||||
isinf.obj isnan.obj strftime.obj win32.obj
|
||||
WINCEOBJ= assert.obj direct.obj errno.obj io_wce.obj process_wce.obj \
|
||||
isinf.obj isnan.obj strftime.obj win32.obj \
|
||||
assert.obj direct.obj errno.obj io_wce.obj process_wce.obj \
|
||||
signal_wce.obj stdio.obj stdlib.obj string_wce.obj \
|
||||
time_wce.obj wince.obj winsock2.obj
|
||||
WINCESYSOBJ = stat.obj timeb.obj utime.obj
|
||||
time_wce.obj wince.obj winsock2.obj \
|
||||
stat.obj timeb.obj utime.obj
|
||||
|
||||
ARFLAGS = -machine:$(MACHINE) -out:
|
||||
CC = $(CC) -nologo
|
||||
LD = $(CC)
|
||||
LDSHARED = $(LD) -LD
|
||||
XCFLAGS =
|
||||
LDFLAGS = -link -incremental:yes -pdb:none -MACHINE:$(MACHINE) -subsystem:$(SUBSYSTEM)
|
||||
XCFLAGS = -DRUBY_EXPORT
|
||||
DLDFLAGS = $(LDFLAGS) -dll
|
||||
XLDFLAGS = -stack:$(STACK) -subsystem:$(SUBSYSTEM)
|
||||
SOLIBS =
|
||||
|
||||
LIBRUBY_LDSHARED = $(LDSHARED)
|
||||
|
@ -131,10 +146,12 @@ LIBRUBY_DLDFLAGS = $(EXTLDFLAGS) -def:$(RUBYDEF)
|
|||
|
||||
EXEEXT = .exe
|
||||
PROGRAM=$(RUBY_INSTALL_NAME)$(EXEEXT)
|
||||
WPROGRAM=$(RUBYW_INSTALL_NAME)$(EXEEXT)
|
||||
RUBYDEF = $(RUBY_SO_NAME).def
|
||||
MINIRUBY = .\minirubyce$(EXEEXT)
|
||||
MINIRUBY_WIN = .\miniruby$(EXEEXT)
|
||||
MINIRUBY = $(RUBY) -I$(MAKEDIR) -rfake
|
||||
RUNRUBY = $(MINIRUBY) "$(srcdir)/runruby.rb" --extout="$(EXTOUT)" --
|
||||
!ifndef RUBY
|
||||
RUBY = ruby
|
||||
!endif
|
||||
|
||||
!if !defined(STACK)
|
||||
STACK = 0x200000,0x10000
|
||||
|
@ -148,69 +165,21 @@ LIBRUBY_SO = $(RUBY_SO_NAME).dll
|
|||
LIBRUBY = $(RUBY_SO_NAME).lib
|
||||
LIBRUBYARG = $(LIBRUBY)
|
||||
|
||||
PREP = fake.rb
|
||||
|
||||
!if !defined(EXTSTATIC)
|
||||
EXTSTATIC =
|
||||
!endif
|
||||
|
||||
OBJEXT = obj
|
||||
|
||||
EXTOBJS =
|
||||
DLDOBJS =
|
||||
|
||||
MAINOBJ = main.obj
|
||||
WINMAINOBJ = wincemain.obj
|
||||
|
||||
OBJS = ascii.obj \
|
||||
array.obj \
|
||||
bignum.obj \
|
||||
class.obj \
|
||||
compar.obj \
|
||||
dir.obj \
|
||||
dln.obj \
|
||||
enum.obj \
|
||||
error.obj \
|
||||
euc_jp.obj \
|
||||
eval.obj \
|
||||
file.obj \
|
||||
gc.obj \
|
||||
hash.obj \
|
||||
inits.obj \
|
||||
io.obj \
|
||||
marshal.obj \
|
||||
math.obj \
|
||||
numeric.obj \
|
||||
object.obj \
|
||||
pack.obj \
|
||||
parse.obj \
|
||||
prec.obj \
|
||||
process.obj \
|
||||
random.obj \
|
||||
range.obj \
|
||||
re.obj \
|
||||
regcomp.obj \
|
||||
regenc.obj \
|
||||
regerror.obj \
|
||||
regexec.obj \
|
||||
reggnu.obj \
|
||||
regparse.obj \
|
||||
ruby.obj \
|
||||
signal.obj \
|
||||
sjis.obj \
|
||||
sprintf.obj \
|
||||
st.obj \
|
||||
string.obj \
|
||||
struct.obj \
|
||||
time.obj \
|
||||
utf8.obj \
|
||||
util.obj \
|
||||
variable.obj \
|
||||
version.obj \
|
||||
$(MISSING) \
|
||||
$(WINCEOBJ) \
|
||||
$(WINCESYSOBJ)
|
||||
|
||||
all: ext minirubyce$(EXEEXT) rbconfig.rb \
|
||||
$(LIBRUBY) $(MISCLIBS)
|
||||
@$(MINIRUBY_WIN) $(srcdir)/ext/extmk.rb --extstatic=$(EXTSTATIC) --make "$(MAKE)" --make-flags "-$(MFLAGS)$(MAKEFLAGS)"
|
||||
|
||||
ext:
|
||||
@mkdir $@
|
||||
WINMAINOBJ = wincemain.$(OBJEXT)
|
||||
|
||||
all:
|
||||
ruby: $(PROGRAM)
|
||||
rubyw: $(WPROGRAM)
|
||||
lib: $(LIBRUBY)
|
||||
dll: $(LIBRUBY_SO)
|
||||
|
||||
|
@ -328,7 +297,7 @@ $(BANG)endif
|
|||
#endif
|
||||
<<KEEP
|
||||
|
||||
config.status: Makefile $(srcdir)/wince/Makefile.sub
|
||||
config.status: $(MKFILES)
|
||||
@echo Creating <<$@
|
||||
# Generated automatically by Makefile.sub.
|
||||
s,@SHELL@,$$(COMSPEC),;t t
|
||||
|
@ -339,7 +308,7 @@ s,@FFLAGS@,$(FFLAGS),;t t
|
|||
s,@LDFLAGS@,,;t t
|
||||
s,@LIBS@,$(LIBS),;t t
|
||||
s,@exec_prefix@,$${prefix},;t t
|
||||
s,@prefix@,,;t t
|
||||
s,@prefix@,$(prefix),;t t
|
||||
s,@program_transform_name@,s,,,,;t t
|
||||
s,@bindir@,$${exec_prefix}/bin,;t t
|
||||
s,@sbindir@,$${exec_prefix}/sbin,;t t
|
||||
|
@ -380,13 +349,13 @@ s,@LIBOBJS@, acosh.obj crypt.obj erf.obj win32.obj isinf.obj isnan.obj,;t t
|
|||
s,@ALLOCA@,$(ALLOCA),;t t
|
||||
s,@DEFAULT_KCODE@,$(DEFAULT_KCODE),;t t
|
||||
s,@EXEEXT@,.exe,;t t
|
||||
s,@OBJEXT@,obj,;t t
|
||||
s,@OBJEXT@,$(OBJEXT),;t t
|
||||
s,@XCFLAGS@,$(XCFLAGS),;t t
|
||||
s,@XLDFLAGS@,$(XLDFLAGS),;t t
|
||||
s,@DLDFLAGS@,$(DLDFLAGS) $$(LIBPATH) -def:$$(DEFFILE),;t t
|
||||
s,@DLDFLAGS@,$(DLDFLAGS) $$(LIBPATH) -def:$$(DEFFILE) -implib:$$(*F:.so=)-$$(arch).lib -pdb:$$(*F:.so=)-$$(arch).pdb,;t t
|
||||
s,@ARCH_FLAG@,$(ARCH_FLAG),;t t
|
||||
s,@STATIC@,$(STATIC),;t t
|
||||
s,@CCDLFLAGS@,-DIMPORT,;t t
|
||||
s,@CCDLFLAGS@,,;t t
|
||||
s,@LDSHARED@,$(LDSHARED),;t t
|
||||
s,@DLEXT@,so,;t t
|
||||
s,@LIBEXT@,lib,;t t
|
||||
|
@ -410,7 +379,7 @@ s,@LIBRUBYARG_SHARED@,$$(LIBRUBY),;t t
|
|||
s,@SOLIBS@,$(SOLIBS),;t t
|
||||
s,@DLDLIBS@,$(DLDLIBS),;t t
|
||||
s,@ENABLE_SHARED@,yes,;t t
|
||||
s,@OUTFLAG@,-Fe,;t t
|
||||
s,@OUTFLAG@,$(OUTFLAG),;t t
|
||||
s,@CPPOUTFILE@,-P,;t t
|
||||
s,@LIBPATHFLAG@, -libpath:"%s",;t t
|
||||
s,@RPATHFLAG@,,;t t
|
||||
|
@ -431,127 +400,74 @@ s,@configure_args@,--with-make-prog=nmake --enable-shared $(configure_args),;t t
|
|||
s,@configure_input@,$$configure_input,;t t
|
||||
s,@srcdir@,$(srcdir),;t t
|
||||
s,@top_srcdir@,$(srcdir),;t t
|
||||
s,@RUBY_PLATFORM@,$(RUBY_PLATFORM),;t t
|
||||
<<KEEP
|
||||
|
||||
minirubyce$(EXEEXT): $(OBJS) $(MAINOBJ) $(WINMAINOBJ) dmyext.obj
|
||||
@echo. $(LIBS)
|
||||
$(PURIFY) $(CC) $(MAINOBJ) $(WINMAINOBJ) dmyext.obj $(OBJS) $(LIBS) -Fe$@ $(LDFLAGS)
|
||||
|
||||
$(PROGRAM): $(MAINOBJ) $(WINMAINOBJ) $(LIBRUBY_SO) $*.res
|
||||
$(PURIFY) $(CC) $(MAINOBJ) $(WINMAINOBJ) $*.res \
|
||||
-Fe$@ $(LIBRUBYARG) $(LDFLAGS) $(XLDFLAGS)
|
||||
|
||||
$(WPROGRAM): $(MAINOBJ) $(WINMAINOBJ) $(LIBRUBY_SO) $*.res
|
||||
$(PURIFY) $(CC) $(MAINOBJ) $(WINMAINOBJ) $*.res \
|
||||
-Fe$@ $(LIBRUBYARG) $(LDFLAGS) $(XLDFLAGS)
|
||||
|
||||
$(LIBRUBY_A): $(OBJS) dmyext.obj
|
||||
$(AR) $(ARFLAGS)$@ $(OBJS) dmyext.obj
|
||||
$(LIBRUBY_A): $(OBJS) $(DMYEXT)
|
||||
$(AR) $(ARFLAGS)$@ $(OBJS) $(DMYEXT)
|
||||
|
||||
$(LIBRUBY): $(RUBYDEF)
|
||||
$(AR) $(ARFLAGS)$@ -def:$(RUBYDEF)
|
||||
|
||||
$(LIBRUBY_SO): $(LIBRUBY_A) $(EXTOBJS) $(RUBYDEF) $*.res
|
||||
@echo. $(EXTOBJS)
|
||||
$(LIBRUBY_LDSHARED) $(MAINOBJ) $(EXTOBJS) $(LIBRUBY_A) $*.res $(LIBS) \
|
||||
$(LIBRUBY_SO): $(LIBRUBY_A) $(DLDOBJS) $(RUBYDEF) $*.res
|
||||
@echo. $(DLDOBJS)
|
||||
$(LDSHARED) $(MAINOBJ) $(DLDOBJS) $(LIBRUBY_A) $*.res $(LIBS) \
|
||||
-Fe$@ $(LDFLAGS) $(LIBRUBY_DLDFLAGS)
|
||||
|
||||
$(RUBYDEF): $(LIBRUBY_A) minirubyce$(EXEEXT)
|
||||
$(MINIRUBY_WIN) $(srcdir)/wince/mkexports.rb \
|
||||
-output=$@ $(LIBRUBY_A) $(ARCH)
|
||||
$(RUBYDEF): $(LIBRUBY_A) $(PREP)
|
||||
$(MINIRUBY) $(srcdir)/win32/mkexports.rb \
|
||||
-output=$@ -arch=$(ARCH) $(LIBRUBY_A)
|
||||
|
||||
{$(srcdir)/wince}.def.lib:
|
||||
$(AR) $(ARFLAGS)$@ -def:$<
|
||||
|
||||
install: rbconfig.rb
|
||||
$(MINIRUBY_WIN) $(srcdir)/instruby.rb \
|
||||
"--dest-dir=$(DESTDIR)" "--make=nmake"
|
||||
$(MINIRUBY_WIN) $(srcdir)/ext/extmk.rb \
|
||||
--make "$(MAKE)" --make-flags "-$(MFLAGS)$(MAKEFLAGS) DESTDIR=$(DESTDIR)" install
|
||||
clean-local::
|
||||
@$(RM) ext\extinit.c ext\extinit.$(OBJEXT) ext\vc*.pdb
|
||||
@$(RM) $(RUBY_INSTALL_NAME).res $(RUBYW_INSTALL_NAME).res $(RUBY_SO_NAME).res
|
||||
|
||||
clean: clean-ext clean-local
|
||||
distclean-local::
|
||||
@$(RM) ext\config.cache
|
||||
@$(RM) *.map *.pdb *.ilk *.exp $(RUBYDEF)
|
||||
@$(RM) $(RUBY_INSTALL_NAME).rc $(RUBYW_INSTALL_NAME).rc $(RUBY_SO_NAME).rc
|
||||
|
||||
clean-local:
|
||||
@if exist $(LIBRUBY_A) del $(LIBRUBY_A)
|
||||
@if exist $(MAINOBJ) del $(MAINOBJ)
|
||||
@if exist rbconfig.rb del rbconfig.rb
|
||||
@if exist ext\extinit.c del ext\extinit.c
|
||||
@if exist ext\extinit.obj del ext\extinit.obj
|
||||
@if exist ext\vc*.pdb del ext\vc*.pdb
|
||||
@if exist *.obj del *.obj
|
||||
@if exist *.res del *.res
|
||||
|
||||
clean-ext:
|
||||
@-$(MINIRUBY_WIN) $(srcdir)/ext/extmk.rb --make "$(MAKE)" --make-flags "-$(MFLAGS)$(MAKEFLAGS)" clean
|
||||
|
||||
distclean: distclean-ext distclean-local
|
||||
|
||||
distclean-local: clean-local
|
||||
@if exist Makefile del Makefile
|
||||
@if exist config.h del config.h
|
||||
@if exist ext\config.cache del ext\config.cache
|
||||
@if exist config.cache del config.cache
|
||||
@if exist config.log del config.log
|
||||
@if exist config.status del config.status
|
||||
@if exist *~ del *~
|
||||
@if exist *.bak del *.bak
|
||||
@if exist *.stackdump del *.stackdump
|
||||
@if exist *.core del *.core
|
||||
@if exist gmon.out del gmon.out
|
||||
@if exist y.tab.c del y.tab.c
|
||||
@if exist y.output del y.output
|
||||
@if exist *.map del *.map
|
||||
@if exist *.pdb del *.pdb
|
||||
@if exist *.ilk del *.ilk
|
||||
@if exist *.exp del *.exp
|
||||
@if exist $(RUBYDEF) del $(RUBYDEF)
|
||||
@if exist $(RUBY_INSTALL_NAME).rc del $(RUBY_INSTALL_NAME).rc
|
||||
@if exist $(RUBYW_INSTALL_NAME).rc del $(RUBYW_INSTALL_NAME).rc
|
||||
@if exist $(RUBY_SO_NAME).rc del $(RUBY_SO_NAME).rc
|
||||
@if exist $(PROGRAM) del $(PROGRAM)
|
||||
@if exist $(WPROGRAM) del $(WPROGRAM)
|
||||
@if exist $(LIBRUBY_SO) del $(LIBRUBY_SO)
|
||||
@if exist $(LIBRUBY) del $(LIBRUBY)
|
||||
@if exist ext\nul if not exist ext\* rmdir ext
|
||||
@if exist minirubyce$(EXEEXT) del minirubyce$(EXEEXT)
|
||||
|
||||
distclean-ext:
|
||||
@-$(MINIRUBY_WIN) $(srcdir)/ext/extmk.rb --make "$(MAKE)" --make-flags "-$(MFLAGS)$(MAKEFLAGS)" distclean
|
||||
|
||||
realclean: distclean
|
||||
@if exist parse.c del parse.c
|
||||
@if exist lex.c del lex.c
|
||||
|
||||
test: miniruby$(EXEEXT)
|
||||
@miniruby$(EXEEXT) $(srcdir)/rubytest.rb
|
||||
|
||||
rbconfig.rb: miniruby$(EXEEXT) config.status
|
||||
$(MINIRUBY_WIN) $(srcdir)/mkconfig.rb -srcdir=$(srcdir) \
|
||||
-install_name=$(RUBY_INSTALL_NAME) \
|
||||
-so_name=$(RUBY_SO_NAME) rbconfig.rb
|
||||
$(MINIRUBY_WIN) $(srcdir)/wince/mkconfig_wce.rb rbconfig.rb
|
||||
|
||||
$(RUBY_INSTALL_NAME).rc $(RUBYW_INSTALL_NAME).rc $(RUBY_SO_NAME).rc: rbconfig.rb
|
||||
$(MINIRUBY_WIN) $(srcdir)/wince/resource.rb \
|
||||
$(RUBY_INSTALL_NAME).rc $(RUBYW_INSTALL_NAME).rc $(RUBY_SO_NAME).rc: $(RBCONFIG)
|
||||
@$(MINIRUBY) $(srcdir)/win32/resource.rb \
|
||||
-ruby_name=$(RUBY_INSTALL_NAME) \
|
||||
-rubyw_name=$(RUBYW_INSTALL_NAME) \
|
||||
-so_name=$(RUBY_SO_NAME) \
|
||||
-wce_ver=$(SUBSYSVERSION) \
|
||||
. $(icondirs) $(srcdir)/wince
|
||||
|
||||
fake.rb: $(MKFILES)
|
||||
@echo Creating <<$@
|
||||
class Object
|
||||
CROSS_COMPILING = RUBY_PLATFORM
|
||||
remove_const :RUBY_PLATFORM
|
||||
remove_const :RUBY_VERSION
|
||||
RUBY_PLATFORM = "$(ARCH)"
|
||||
RUBY_VERSION = "$(MAJOR).$(MINOR).$(TEENY)"
|
||||
end
|
||||
class File
|
||||
remove_const :ALT_SEPARATOR
|
||||
ALT_SEPARATOR = "\\"
|
||||
end
|
||||
<<KEEP
|
||||
|
||||
{$(srcdir)/missing}.c.obj:
|
||||
$(CC) $(CFLAGS) $(XCFLAGS) -I. -I$(<D) $(CPPFLAGS) -c -Tc$(<:\=/)
|
||||
$(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -c -Tc$(<:\=/)
|
||||
{$(srcdir)/win32}.c.obj:
|
||||
$(CC) $(CFLAGS) $(XCFLAGS) -I. -I$(<D) $(CPPFLAGS) -c -Tc$(<:\=/)
|
||||
$(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -c -Tc$(<:\=/)
|
||||
{$(srcdir)/wince}.c.obj:
|
||||
$(CC) $(CFLAGS) $(XCFLAGS) -I. -I$(<D) $(CPPFLAGS) -c -Tc$(<:\=/)
|
||||
$(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -c -Tc$(<:\=/)
|
||||
{$(srcdir)/wince/sys}.c.obj:
|
||||
$(CC) $(CFLAGS) $(XCFLAGS) -I. -I$(<D) $(CPPFLAGS) -c -Tc$(<:\=/)
|
||||
$(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -c -Tc$(<:\=/)
|
||||
{$(srcdir)}.c.obj:
|
||||
$(CC) $(CFLAGS) $(XCFLAGS) -I. -I$(<D) $(CPPFLAGS) -c -Tc$(<:\=/)
|
||||
$(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -c -Tc$(<:\=/)
|
||||
.c.obj:
|
||||
$(CC) $(CFLAGS) $(XCFLAGS) -I. $(CPPFLAGS) -c -Tc$(<:\=/)
|
||||
$(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -c -Tc$(<:\=/)
|
||||
|
||||
.rc.res:
|
||||
$(RC) -I. -I$(<D) $(iconinc) -I$(srcdir)/win32 $(RFLAGS) -fo$@ $(<:\=/)
|
||||
|
@ -561,186 +477,8 @@ $(RUBY_INSTALL_NAME).rc $(RUBYW_INSTALL_NAME).rc $(RUBY_SO_NAME).rc: rbconfig.rb
|
|||
sed -e "s!^ *extern char \*getenv();!/* & */!;s/^\(#.*\)y\.tab/\1parse/" y.tab.c > $@
|
||||
@del y.tab.c
|
||||
|
||||
{$(srcdir)}parse.c: parse.y
|
||||
!include $(srcdir)/common.mk
|
||||
|
||||
ext/extinit.obj: ext/extinit.c $(SETUP)
|
||||
$(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -Fo$@ -c ext/extinit.c
|
||||
$(OBJS): {$(srcdir)}win32/win32.h
|
||||
|
||||
acosh.obj: {$(srcdir)}missing/acosh.c
|
||||
alloca.obj: {$(srcdir)}missing/alloca.c
|
||||
crypt.obj: {$(srcdir)}missing/crypt.c
|
||||
dup2.obj: {$(srcdir)}missing/dup2.c
|
||||
erf.obj: {$(srcdir)}missing/erf.c
|
||||
finite.obj: {$(srcdir)}missing/finite.c
|
||||
flock.obj: {$(srcdir)}missing/flock.c
|
||||
isinf.obj: {$(srcdir)}missing/isinf.c
|
||||
isnan.obj: {$(srcdir)}missing/isnan.c
|
||||
memcmp.obj: {$(srcdir)}missing/memcmp.c
|
||||
memmove.obj: {$(srcdir)}missing/memmove.c
|
||||
mkdir.obj: {$(srcdir)}missing/mkdir.c
|
||||
vsnprintf.obj: {$(srcdir)}missing/vsnprintf.c
|
||||
strcasecmp.obj: {$(srcdir)}missing/strcasecmp.c
|
||||
strncasecmp.obj: {$(srcdir)}missing/strncasecmp.c
|
||||
strchr.obj: {$(srcdir)}missing/strchr.c
|
||||
strdup.obj: {$(srcdir)}missing/strdup.c
|
||||
strerror.obj: {$(srcdir)}missing/strerror.c
|
||||
strftime.obj: {$(srcdir)}missing/strftime.c
|
||||
strstr.obj: {$(srcdir)}missing/strstr.c
|
||||
strtod.obj: {$(srcdir)}missing/strtod.c
|
||||
strtol.obj: {$(srcdir)}missing/strtol.c
|
||||
strtoul.obj: {$(srcdir)}missing/strtoul.c
|
||||
nt.obj: {$(srcdir)}missing/nt.c
|
||||
x68.obj: {$(srcdir)}missing/x68.c
|
||||
os2.obj: {$(srcdir)}missing/os2.c
|
||||
dl_os2.obj: {$(srcdir)}missing/dl_os2.c
|
||||
|
||||
# when I use -I., there is confliction at "OpenFile"
|
||||
# so, set . into environment varible "include"
|
||||
win32.obj: {$(srcdir)}win32/win32.c
|
||||
|
||||
# Prevent GNU make v3 from overflowing arg limit on SysV.
|
||||
.NOEXPORT:
|
||||
###
|
||||
ascii.obj: {$(srcdir)}ascii.c {$(srcdir)}regenc.h {$(srcdir)}oniguruma.h \
|
||||
config.h
|
||||
array.obj: {$(srcdir)}array.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}util.h {$(srcdir)}st.h {$(srcdir)}/win32/win32.h
|
||||
bignum.obj: {$(srcdir)}bignum.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
class.obj: {$(srcdir)}class.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}rubysig.h {$(srcdir)}node.h {$(srcdir)}st.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
compar.obj: {$(srcdir)}compar.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
dir.obj: {$(srcdir)}dir.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}util.h {$(srcdir)}/win32/win32.h
|
||||
dln.obj: {$(srcdir)}dln.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}dln.h {$(srcdir)}/win32/win32.h
|
||||
dmyext.obj: {$(srcdir)}dmyext.c
|
||||
enum.obj: {$(srcdir)}enum.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}node.h {$(srcdir)}util.h {$(srcdir)}/win32/win32.h
|
||||
error.obj: {$(srcdir)}error.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}env.h {$(srcdir)}version.h {$(srcdir)}st.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
euc_jp.obj: {$(srcdir)}euc_jp.c {$(srcdir)}regenc.h {$(srcdir)}oniguruma.h \
|
||||
config.h
|
||||
eval.obj: {$(srcdir)}eval.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}node.h {$(srcdir)}env.h {$(srcdir)}util.h \
|
||||
{$(srcdir)}rubysig.h {$(srcdir)}st.h {$(srcdir)}dln.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
file.obj: {$(srcdir)}file.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}rubyio.h {$(srcdir)}rubysig.h {$(srcdir)}util.h \
|
||||
{$(srcdir)}dln.h {$(srcdir)}/win32/win32.h
|
||||
gc.obj: {$(srcdir)}gc.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}rubysig.h {$(srcdir)}st.h {$(srcdir)}node.h \
|
||||
{$(srcdir)}env.h {$(srcdir)}re.h {$(srcdir)}regex.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
hash.obj: {$(srcdir)}hash.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}st.h {$(srcdir)}util.h {$(srcdir)}rubysig.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
inits.obj: {$(srcdir)}inits.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
io.obj: {$(srcdir)}io.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}rubyio.h {$(srcdir)}rubysig.h {$(srcdir)}env.h \
|
||||
{$(srcdir)}util.h {$(srcdir)}/win32/win32.h
|
||||
main.obj: {$(srcdir)}main.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
marshal.obj: {$(srcdir)}marshal.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}rubyio.h {$(srcdir)}st.h {$(srcdir)}util.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
math.obj: {$(srcdir)}math.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
numeric.obj: {$(srcdir)}numeric.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
object.obj: {$(srcdir)}object.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}st.h {$(srcdir)}util.h {$(srcdir)}/win32/win32.h
|
||||
pack.obj: {$(srcdir)}pack.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
parse.obj: {$(srcdir)}parse.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}env.h {$(srcdir)}node.h {$(srcdir)}st.h {$(srcdir)}regex.h \
|
||||
{$(srcdir)}util.h {$(srcdir)}lex.c {$(srcdir)}/win32/win32.h
|
||||
prec.obj: {$(srcdir)}prec.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
process.obj: {$(srcdir)}process.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}rubysig.h {$(srcdir)}st.h {$(srcdir)}/win32/win32.h
|
||||
random.obj: {$(srcdir)}random.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
range.obj: {$(srcdir)}range.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
re.obj: {$(srcdir)}re.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}re.h {$(srcdir)}regex.h {$(srcdir)}/win32/win32.h
|
||||
regcomp.obj: {$(srcdir)}regcomp.c {$(srcdir)}oniguruma.h {$(srcdir)}regint.h \
|
||||
{$(srcdir)}regparse.h {$(srcdir)}regenc.h {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
regenc.obj: {$(srcdir)}regenc.c {$(srcdir)}regint.h {$(srcdir)}regenc.h \
|
||||
{$(srcdir)}oniguruma.h {$(srcdir)}ruby.h config.h {$(srcdir)}/win32/win32.h
|
||||
regerror.obj: {$(srcdir)}regerror.c {$(srcdir)}regint.h {$(srcdir)}regenc.h \
|
||||
{$(srcdir)}oniguruma.h {$(srcdir)}ruby.h config.h {$(srcdir)}/win32/win32.h
|
||||
regexec.obj: {$(srcdir)}regexec.c {$(srcdir)}regint.h {$(srcdir)}regenc.h \
|
||||
{$(srcdir)}oniguruma.h {$(srcdir)}ruby.h config.h {$(srcdir)}/win32/win32.h
|
||||
reggnu.obj: {$(srcdir)}reggnu.c {$(srcdir)}regint.h {$(srcdir)}regenc.h \
|
||||
{$(srcdir)}oniguruma.h {$(srcdir)}ruby.h config.h {$(srcdir)}oniggnu.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
regparse.obj: {$(srcdir)}regparse.c {$(srcdir)}oniguruma.h {$(srcdir)}regint.h \
|
||||
{$(srcdir)}regparse.h {$(srcdir)}regenc.h {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
ruby.obj: {$(srcdir)}ruby.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}dln.h {$(srcdir)}node.h {$(srcdir)}util.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
signal.obj: {$(srcdir)}signal.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}rubysig.h {$(srcdir)}/win32/win32.h
|
||||
sjis.obj: {$(srcdir)}sjis.c {$(srcdir)}regenc.h {$(srcdir)}oniguruma.h \
|
||||
config.h
|
||||
sprintf.obj: {$(srcdir)}sprintf.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
st.obj: {$(srcdir)}st.c config.h {$(srcdir)}st.h
|
||||
string.obj: {$(srcdir)}string.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}re.h {$(srcdir)}regex.h {$(srcdir)}/win32/win32.h
|
||||
struct.obj: {$(srcdir)}struct.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
time.obj: {$(srcdir)}time.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
utf8.obj: {$(srcdir)}utf8.c {$(srcdir)}regenc.h {$(srcdir)}oniguruma.h \
|
||||
config.h
|
||||
util.obj: {$(srcdir)}util.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}util.h {$(srcdir)}/win32/win32.h
|
||||
variable.obj: {$(srcdir)}variable.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}env.h {$(srcdir)}node.h {$(srcdir)}st.h {$(srcdir)}util.h \
|
||||
{$(srcdir)}/win32/win32.h
|
||||
version.obj: {$(srcdir)}version.c {$(srcdir)}ruby.h config.h \
|
||||
{$(srcdir)}defines.h {$(srcdir)}intern.h {$(srcdir)}missing.h \
|
||||
{$(srcdir)}version.h {$(srcdir)}/win32/win32.h
|
||||
dir.$(OBJEXT): {$(srcdir)}win32/dir.h
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
f = File.open(ARGV[0], File::WRONLY|File::APPEND)
|
||||
f.write <<EOM
|
||||
class Object
|
||||
remove_const :RUBY_PLATFORM
|
||||
RUBY_PLATFORM = Config::CONFIG[\"RUBY_PLATFORM\"]
|
||||
end
|
||||
EOM
|
Loading…
Add table
Reference in a new issue