1998-01-16 15:13:05 +03:00
|
|
|
SHELL = /bin/sh
|
|
|
|
|
|
|
|
#### Start of system configuration section. ####
|
|
|
|
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@:@srcdir@/missing
|
|
|
|
|
|
|
|
CC = @CC@
|
|
|
|
YACC = @YACC@
|
|
|
|
PURIFY =
|
1999-01-20 07:59:39 +03:00
|
|
|
AUTOCONF = autoconf
|
1998-01-16 15:13:05 +03:00
|
|
|
@SET_MAKE@
|
|
|
|
|
1999-01-20 07:59:39 +03:00
|
|
|
prefix = @prefix@
|
1999-10-12 08:53:36 +04:00
|
|
|
CFLAGS = @CFLAGS@
|
|
|
|
CPPFLAGS = -I. -I@srcdir@ -I@includedir@
|
1998-01-16 15:13:05 +03:00
|
|
|
LDFLAGS = @STATIC@ $(CFLAGS) @LDFLAGS@
|
1999-08-13 09:45:20 +04:00
|
|
|
XLDFLAGS = @XLDFLAGS@
|
1999-01-20 07:59:39 +03:00
|
|
|
EXTLIBS =
|
1998-01-16 15:13:05 +03:00
|
|
|
LIBS = @LIBS@ $(EXTLIBS)
|
|
|
|
MISSING = @LIBOBJS@ @ALLOCA@
|
1999-08-13 09:45:20 +04:00
|
|
|
LDSHARED = @LIBRUBY_LDSHARED@
|
|
|
|
DLDFLAGS = @LIBRUBY_DLDFLAGS@
|
1999-01-20 07:59:39 +03:00
|
|
|
SOLIBS = @SOLIBS@
|
1998-01-16 15:13:05 +03:00
|
|
|
|
1999-08-13 09:45:20 +04:00
|
|
|
RUBY_INSTALL_NAME=@RUBY_INSTALL_NAME@
|
|
|
|
EXEEXT = @EXEEXT@
|
|
|
|
PROGRAM=$(RUBY_INSTALL_NAME)$(EXEEXT)
|
1998-01-16 15:13:05 +03:00
|
|
|
|
|
|
|
#### End of system configuration section. ####
|
|
|
|
|
1999-08-13 09:45:20 +04:00
|
|
|
MAJOR= @MAJOR@
|
|
|
|
MINOR= @MINOR@
|
|
|
|
TEENY= @TEENY@
|
1998-01-16 15:13:05 +03:00
|
|
|
|
1999-08-13 09:45:20 +04:00
|
|
|
LIBRUBY_A = @LIBRUBY_A@
|
|
|
|
LIBRUBY_SO = @LIBRUBY_SO@
|
|
|
|
LIBRUBY_ALIASES= @LIBRUBY_ALIASES@
|
1999-01-20 07:59:39 +03:00
|
|
|
LIBRUBY = @LIBRUBY@
|
|
|
|
LIBRUBYARG = @LIBRUBYARG@
|
1998-01-16 15:13:05 +03:00
|
|
|
|
1999-10-12 08:53:36 +04:00
|
|
|
EXTOBJS =
|
1998-01-16 15:13:05 +03:00
|
|
|
|
1999-08-13 09:45:20 +04:00
|
|
|
MAINOBJ = main.@OBJEXT@
|
|
|
|
|
|
|
|
OBJS = array.@OBJEXT@ \
|
|
|
|
bignum.@OBJEXT@ \
|
|
|
|
class.@OBJEXT@ \
|
|
|
|
compar.@OBJEXT@ \
|
|
|
|
dir.@OBJEXT@ \
|
|
|
|
dln.@OBJEXT@ \
|
|
|
|
enum.@OBJEXT@ \
|
|
|
|
error.@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@ \
|
|
|
|
regex.@OBJEXT@ \
|
|
|
|
ruby.@OBJEXT@ \
|
|
|
|
signal.@OBJEXT@ \
|
|
|
|
sprintf.@OBJEXT@ \
|
|
|
|
st.@OBJEXT@ \
|
|
|
|
string.@OBJEXT@ \
|
|
|
|
struct.@OBJEXT@ \
|
|
|
|
time.@OBJEXT@ \
|
|
|
|
util.@OBJEXT@ \
|
|
|
|
variable.@OBJEXT@ \
|
|
|
|
version.@OBJEXT@ \
|
1998-01-16 15:13:05 +03:00
|
|
|
$(MISSING)
|
|
|
|
|
2000-05-09 08:53:16 +04:00
|
|
|
all: miniruby$(EXEEXT) @PREP@ rbconfig.rb $(LIBRUBY)
|
2000-01-05 07:41:21 +03:00
|
|
|
@@MINIRUBY@ -Xext extmk.rb @EXTSTATIC@
|
1998-01-16 15:13:05 +03:00
|
|
|
|
1999-10-12 08:53:36 +04:00
|
|
|
miniruby$(EXEEXT): config.status $(LIBRUBY_A) $(MAINOBJ) dmyext.@OBJEXT@
|
1998-01-16 15:13:05 +03:00
|
|
|
@rm -f $@
|
1999-10-12 08:53:36 +04:00
|
|
|
$(PURIFY) $(CC) $(LDFLAGS) $(MAINOBJ) dmyext.@OBJEXT@ $(LIBRUBY_A) $(LIBS) -o $@
|
1998-01-16 15:13:05 +03:00
|
|
|
|
1999-08-13 09:45:20 +04:00
|
|
|
$(PROGRAM): $(LIBRUBY) $(MAINOBJ) $(EXTOBJS)
|
1998-01-16 15:13:05 +03:00
|
|
|
@rm -f $@
|
1999-08-13 09:45:20 +04:00
|
|
|
$(PURIFY) $(CC) $(LDFLAGS) $(XLDFLAGS) $(MAINOBJ) $(EXTOBJS) $(LIBRUBYARG) $(LIBS) -o $@
|
1998-01-16 15:13:05 +03:00
|
|
|
|
1999-10-12 08:53:36 +04:00
|
|
|
$(LIBRUBY_A): $(OBJS) dmyext.@OBJEXT@
|
|
|
|
@AR@ rcu $@ $(OBJS) dmyext.@OBJEXT@
|
1999-01-20 07:59:39 +03:00
|
|
|
@-@RANLIB@ $@ 2> /dev/null || true
|
|
|
|
|
1999-10-12 08:53:36 +04:00
|
|
|
$(LIBRUBY_SO): $(OBJS) dmyext.@OBJEXT@
|
2000-07-25 18:46:46 +04:00
|
|
|
$(LDSHARED) $(DLDFLAGS) $(OBJS) dmyext.@OBJEXT@ $(SOLIBS) -o $@
|
2000-01-05 07:41:21 +03:00
|
|
|
@-@MINIRUBY@ -e 'ARGV.each{|link| File.delete link if File.exist? link; \
|
1999-08-13 09:45:20 +04:00
|
|
|
File.symlink "$(LIBRUBY_SO)", link}' \
|
|
|
|
$(LIBRUBY_ALIASES) || true
|
1998-01-16 15:13:05 +03:00
|
|
|
|
1998-01-16 15:19:22 +03:00
|
|
|
install: rbconfig.rb
|
2000-01-05 07:41:21 +03:00
|
|
|
@MINIRUBY@ $(srcdir)/instruby.rb $(DESTDIR)
|
1998-01-16 15:13:05 +03:00
|
|
|
|
1999-08-13 09:45:20 +04:00
|
|
|
clean:; @rm -f $(OBJS) $(LIBRUBY_A) $(LIBRUBY_SO) $(LIBRUBY_ALIASES) $(MAINOBJ) rbconfig.rb
|
|
|
|
@rm -f ext/extinit.c ext/extinit.@OBJEXT@ dmyext.@OBJEXT@
|
2000-01-05 07:41:21 +03:00
|
|
|
@-@MINIRUBY@ -Xext extmk.rb clean 2> /dev/null || true
|
1999-08-13 09:45:20 +04:00
|
|
|
@rm -f $(PROGRAM) miniruby$(EXEEXT)
|
1999-01-20 07:59:39 +03:00
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
@rm -f Makefile ext/extmk.rb config.h
|
|
|
|
@rm -f ext/config.cache config.cache config.log config.status
|
1999-08-13 09:45:20 +04:00
|
|
|
@rm -f *~ core *.core gmon.out y.tab.c y.output ruby.imp
|
1998-01-16 15:19:22 +03:00
|
|
|
|
1999-01-20 07:59:39 +03:00
|
|
|
realclean: distclean
|
1999-08-13 09:45:20 +04:00
|
|
|
@rm -f parse.c
|
1999-01-20 07:59:39 +03:00
|
|
|
@rm -f lex.c
|
|
|
|
|
1999-08-13 09:45:20 +04:00
|
|
|
test: miniruby$(EXEEXT)
|
|
|
|
@./miniruby$(EXEEXT) $(srcdir)/rubytest.rb
|
1998-01-16 15:19:22 +03:00
|
|
|
|
1999-08-13 09:45:20 +04:00
|
|
|
rbconfig.rb: miniruby$(EXEEXT)
|
2000-01-05 07:41:21 +03:00
|
|
|
@@MINIRUBY@ $(srcdir)/mkconfig.rb rbconfig.rb
|
|
|
|
|
2000-05-21 13:25:58 +04:00
|
|
|
fake.rb: miniruby$(EXEEXT)
|
|
|
|
@echo ' \
|
|
|
|
class Object; \
|
|
|
|
remove_const :RUBY_PLATFORM; \
|
|
|
|
RUBY_PLATFORM = "@arch@"; \
|
|
|
|
if defined? PLATFORM; \
|
|
|
|
remove_const :PLATFORM; \
|
|
|
|
PLATFORM = "@arch@"; \
|
|
|
|
end; \
|
|
|
|
CROSS_COMPILING = true; \
|
|
|
|
end \
|
|
|
|
' > $@
|
1998-01-16 15:13:05 +03:00
|
|
|
|
1999-01-20 07:59:39 +03:00
|
|
|
config.status: $(srcdir)/configure
|
|
|
|
$(SHELL) ./config.status --recheck
|
|
|
|
|
|
|
|
$(srcdir)/configure: $(srcdir)/configure.in
|
|
|
|
cd $(srcdir) && $(AUTOCONF)
|
|
|
|
|
1999-08-13 09:45:20 +04:00
|
|
|
.c.@OBJEXT@:
|
1998-01-16 15:13:05 +03:00
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c $<
|
|
|
|
|
1998-01-16 15:19:22 +03:00
|
|
|
lex.c: keywords
|
1999-01-20 07:59:39 +03:00
|
|
|
gperf -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$$ @srcdir@/keywords > lex.c
|
1998-01-16 15:19:22 +03:00
|
|
|
|
1998-01-16 15:13:05 +03:00
|
|
|
parse.c: parse.y
|
|
|
|
$(YACC) $<
|
|
|
|
mv -f y.tab.c parse.c
|
|
|
|
|
1999-11-08 06:57:01 +03:00
|
|
|
parse.@OBJEXT@: parse.c
|
|
|
|
|
1999-08-13 09:45:20 +04:00
|
|
|
alloca.@OBJEXT@: @srcdir@/missing/alloca.c
|
1998-01-16 15:13:05 +03:00
|
|
|
$(CC) -I. $(CFLAGS) $(CPPFLAGS) -c @srcdir@/missing/alloca.c
|
|
|
|
|
1999-08-13 09:45:20 +04:00
|
|
|
crypt.@OBJEXT@: @srcdir@/missing/crypt.c
|
1998-01-16 15:13:05 +03:00
|
|
|
$(CC) -I. $(CFLAGS) $(CPPFLAGS) -c @srcdir@/missing/crypt.c
|
|
|
|
|
1999-08-13 09:45:20 +04:00
|
|
|
dup2.@OBJEXT@: @srcdir@/missing/dup2.c
|
1998-01-16 15:13:05 +03:00
|
|
|
$(CC) -I. $(CFLAGS) $(CPPFLAGS) -c @srcdir@/missing/dup2.c
|
|
|
|
|
1999-08-13 09:45:20 +04:00
|
|
|
finite.@OBJEXT@: @srcdir@/missing/finite.c
|
|
|
|
$(CC) -I. $(CFLAGS) $(CPPFLAGS) -c @srcdir@/missing/finite.c
|
|
|
|
|
|
|
|
flock.@OBJEXT@: @srcdir@/missing/flock.c
|
1998-01-16 15:13:05 +03:00
|
|
|
$(CC) -I. $(CFLAGS) $(CPPFLAGS) -c @srcdir@/missing/flock.c
|
|
|
|
|
1999-08-13 09:45:20 +04:00
|
|
|
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
|
1999-01-20 07:59:39 +03:00
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c @srcdir@/missing/memcmp.c
|
|
|
|
|
1999-08-13 09:45:20 +04:00
|
|
|
memmove.@OBJEXT@: @srcdir@/missing/memmove.c
|
1998-01-16 15:13:05 +03:00
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c @srcdir@/missing/memmove.c
|
|
|
|
|
1999-08-13 09:45:20 +04:00
|
|
|
mkdir.@OBJEXT@: @srcdir@/missing/mkdir.c
|
1998-01-16 15:13:05 +03:00
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c @srcdir@/missing/mkdir.c
|
|
|
|
|
1999-08-13 09:45:20 +04:00
|
|
|
vsnprintf.@OBJEXT@: @srcdir@/missing/vsnprintf.c
|
1999-01-20 07:59:39 +03:00
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c @srcdir@/missing/vsnprintf.c
|
1998-01-16 15:13:05 +03:00
|
|
|
|
1999-08-13 09:45:20 +04:00
|
|
|
strcasecmp.@OBJEXT@: @srcdir@/missing/strcasecmp.c
|
1998-01-16 15:13:05 +03:00
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c @srcdir@/missing/strcasecmp.c
|
|
|
|
|
1999-08-13 09:45:20 +04:00
|
|
|
strncasecmp.@OBJEXT@: @srcdir@/missing/strncasecmp.c
|
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c @srcdir@/missing/strncasecmp.c
|
|
|
|
|
|
|
|
strchr.@OBJEXT@: @srcdir@/missing/strchr.c
|
1999-01-20 07:59:39 +03:00
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c @srcdir@/missing/strchr.c
|
1998-01-16 15:13:05 +03:00
|
|
|
|
1999-08-13 09:45:20 +04:00
|
|
|
strerror.@OBJEXT@: @srcdir@/missing/strerror.c
|
1999-01-20 07:59:39 +03:00
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c @srcdir@/missing/strerror.c
|
|
|
|
|
1999-08-13 09:45:20 +04:00
|
|
|
strftime.@OBJEXT@: @srcdir@/missing/strftime.c
|
1998-01-16 15:13:05 +03:00
|
|
|
$(CC) -I. $(CFLAGS) $(CPPFLAGS) -c @srcdir@/missing/strftime.c
|
|
|
|
|
1999-08-13 09:45:20 +04:00
|
|
|
strstr.@OBJEXT@: @srcdir@/missing/strstr.c
|
1998-01-16 15:13:05 +03:00
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c @srcdir@/missing/strstr.c
|
|
|
|
|
1999-08-13 09:45:20 +04:00
|
|
|
strtod.@OBJEXT@: @srcdir@/missing/strtod.c
|
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c @srcdir@/missing/strtod.c
|
|
|
|
|
|
|
|
strtol.@OBJEXT@: @srcdir@/missing/strtol.c
|
1998-01-16 15:13:05 +03:00
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c @srcdir@/missing/strtol.c
|
|
|
|
|
1999-08-13 09:45:20 +04:00
|
|
|
strtoul.@OBJEXT@: @srcdir@/missing/strtoul.c
|
1998-01-16 15:13:05 +03:00
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c @srcdir@/missing/strtoul.c
|
|
|
|
|
1999-08-13 09:45:20 +04:00
|
|
|
x68.@OBJEXT@: @srcdir@/missing/x68.c
|
1998-01-16 15:13:05 +03:00
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c @srcdir@/missing/x68.c
|
|
|
|
|
1999-08-13 09:45:20 +04:00
|
|
|
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
|
|
|
|
|
2000-05-14 13:36:29 +04:00
|
|
|
win32.@OBJEXT@: @srcdir@/win32/win32.c
|
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c @srcdir@/win32/win32.c
|
|
|
|
|
1998-01-16 15:13:05 +03:00
|
|
|
# Prevent GNU make v3 from overflowing arg limit on SysV.
|
|
|
|
.NOEXPORT:
|
|
|
|
###
|
1999-08-13 09:45:20 +04:00
|
|
|
parse.@OBJEXT@: parse.y ruby.h config.h defines.h intern.h env.h node.h st.h regex.h util.h lex.c
|
1998-01-16 15:13:05 +03:00
|
|
|
###
|
1999-08-13 09:45:20 +04:00
|
|
|
array.@OBJEXT@: array.c ruby.h config.h defines.h intern.h
|
|
|
|
bignum.@OBJEXT@: bignum.c ruby.h config.h defines.h intern.h
|
|
|
|
class.@OBJEXT@: class.c ruby.h config.h defines.h intern.h node.h st.h
|
|
|
|
compar.@OBJEXT@: compar.c ruby.h config.h defines.h intern.h
|
|
|
|
dir.@OBJEXT@: dir.c ruby.h config.h defines.h intern.h
|
|
|
|
dln.@OBJEXT@: dln.c config.h defines.h dln.h
|
|
|
|
dmyext.@OBJEXT@: dmyext.c
|
|
|
|
enum.@OBJEXT@: enum.c ruby.h config.h defines.h intern.h
|
|
|
|
error.@OBJEXT@: error.c ruby.h config.h defines.h intern.h env.h
|
|
|
|
eval.@OBJEXT@: eval.c ruby.h config.h defines.h intern.h node.h env.h rubysig.h st.h dln.h
|
|
|
|
file.@OBJEXT@: file.c ruby.h config.h defines.h intern.h rubyio.h rubysig.h
|
|
|
|
gc.@OBJEXT@: gc.c ruby.h config.h defines.h intern.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 st.h rubysig.h util.h
|
|
|
|
inits.@OBJEXT@: inits.c ruby.h config.h defines.h intern.h
|
|
|
|
io.@OBJEXT@: io.c ruby.h config.h defines.h intern.h rubyio.h rubysig.h env.h
|
|
|
|
main.@OBJEXT@: main.c ruby.h config.h defines.h intern.h
|
|
|
|
marshal.@OBJEXT@: marshal.c ruby.h config.h defines.h intern.h rubyio.h st.h
|
|
|
|
prec.@OBJEXT@: prec.c ruby.h config.h defines.h intern.h
|
|
|
|
math.@OBJEXT@: math.c ruby.h config.h defines.h intern.h
|
|
|
|
numeric.@OBJEXT@: numeric.c ruby.h config.h defines.h intern.h
|
|
|
|
object.@OBJEXT@: object.c ruby.h config.h defines.h intern.h st.h
|
|
|
|
pack.@OBJEXT@: pack.c ruby.h config.h defines.h intern.h
|
|
|
|
process.@OBJEXT@: process.c ruby.h config.h defines.h intern.h rubysig.h st.h
|
|
|
|
random.@OBJEXT@: random.c ruby.h config.h defines.h intern.h
|
|
|
|
range.@OBJEXT@: range.c ruby.h config.h defines.h intern.h
|
|
|
|
re.@OBJEXT@: re.c ruby.h config.h defines.h intern.h re.h regex.h
|
|
|
|
regex.@OBJEXT@: regex.c config.h regex.h util.h
|
|
|
|
ruby.@OBJEXT@: ruby.c ruby.h config.h defines.h intern.h dln.h util.h
|
|
|
|
signal.@OBJEXT@: signal.c ruby.h config.h defines.h intern.h rubysig.h
|
|
|
|
sprintf.@OBJEXT@: sprintf.c ruby.h config.h defines.h intern.h
|
|
|
|
st.@OBJEXT@: st.c config.h st.h
|
|
|
|
string.@OBJEXT@: string.c ruby.h config.h defines.h intern.h re.h regex.h
|
|
|
|
struct.@OBJEXT@: struct.c ruby.h config.h defines.h intern.h
|
|
|
|
time.@OBJEXT@: time.c ruby.h config.h defines.h intern.h
|
|
|
|
util.@OBJEXT@: util.c ruby.h config.h defines.h intern.h util.h
|
|
|
|
variable.@OBJEXT@: variable.c ruby.h config.h defines.h intern.h env.h node.h st.h
|
|
|
|
version.@OBJEXT@: version.c ruby.h config.h defines.h intern.h version.h
|