Makefile.in


DEFINITIONS

This source file includes following functions.


   1  SHELL = /bin/sh
   2  
   3  #### Start of system configuration section. ####
   4  
   5  srcdir = @srcdir@
   6  VPATH = $(srcdir):$(srcdir)/missing
   7  
   8  CC = @CC@
   9  YACC = @YACC@
  10  PURIFY =
  11  AUTOCONF = autoconf
  12  @SET_MAKE@
  13  
  14  prefix = @prefix@
  15  CFLAGS = @CFLAGS@
  16  CPPFLAGS = -I. -I$(srcdir)
  17  LDFLAGS = @STATIC@ $(CFLAGS) @LDFLAGS@
  18  XLDFLAGS = @XLDFLAGS@
  19  EXTLIBS = 
  20  LIBS = @LIBS@ $(EXTLIBS)
  21  MISSING = @LIBOBJS@ @ALLOCA@
  22  LDSHARED = @LIBRUBY_LDSHARED@
  23  DLDFLAGS = @LIBRUBY_DLDFLAGS@
  24  SOLIBS = @SOLIBS@
  25  MAINLIBS = @MAINLIBS@
  26  
  27  RUBY_INSTALL_NAME=@RUBY_INSTALL_NAME@
  28  RUBY_SO_NAME=@RUBY_SO_NAME@
  29  EXEEXT = @EXEEXT@
  30  PROGRAM=$(RUBY_INSTALL_NAME)$(EXEEXT)
  31  
  32  #### End of system configuration section. ####
  33  
  34  MAJOR=  @MAJOR@
  35  MINOR=  @MINOR@
  36  TEENY=  @TEENY@
  37  
  38  LIBRUBY_A     = @LIBRUBY_A@
  39  LIBRUBY_SO    = @LIBRUBY_SO@
  40  LIBRUBY_ALIASES= @LIBRUBY_ALIASES@
  41  LIBRUBY       = @LIBRUBY@
  42  LIBRUBYARG    = @LIBRUBYARG@
  43  
  44  EXTOBJS       = 
  45  
  46  MAINOBJ       = main.@OBJEXT@
  47  
  48  OBJS          = array.@OBJEXT@ \
  49                  bignum.@OBJEXT@ \
  50                  class.@OBJEXT@ \
  51                  compar.@OBJEXT@ \
  52                  dir.@OBJEXT@ \
  53                  dln.@OBJEXT@ \
  54                  enum.@OBJEXT@ \
  55                  error.@OBJEXT@ \
  56                  eval.@OBJEXT@ \
  57                  file.@OBJEXT@ \
  58                  gc.@OBJEXT@ \
  59                  hash.@OBJEXT@ \
  60                  inits.@OBJEXT@ \
  61                  io.@OBJEXT@ \
  62                  marshal.@OBJEXT@ \
  63                  math.@OBJEXT@ \
  64                  numeric.@OBJEXT@ \
  65                  object.@OBJEXT@ \
  66                  pack.@OBJEXT@ \
  67                  parse.@OBJEXT@ \
  68                  process.@OBJEXT@ \
  69                  prec.@OBJEXT@ \
  70                  random.@OBJEXT@ \
  71                  range.@OBJEXT@ \
  72                  re.@OBJEXT@ \
  73                  regex.@OBJEXT@ \
  74                  ruby.@OBJEXT@ \
  75                  signal.@OBJEXT@ \
  76                  sprintf.@OBJEXT@ \
  77                  st.@OBJEXT@ \
  78                  string.@OBJEXT@ \
  79                  struct.@OBJEXT@ \
  80                  time.@OBJEXT@ \
  81                  util.@OBJEXT@ \
  82                  variable.@OBJEXT@ \
  83                  version.@OBJEXT@ \
  84                  $(MISSING)
  85  
  86  all:            miniruby$(EXEEXT) @PREP@ rbconfig.rb $(LIBRUBY)
  87                  @@MINIRUBY@ $(srcdir)/ext/extmk.rb @EXTSTATIC@
  88  
  89  miniruby$(EXEEXT):      config.status $(LIBRUBY_A) $(MAINOBJ) dmyext.@OBJEXT@
  90                  @rm -f $@
  91                  $(PURIFY) $(CC) $(LDFLAGS) $(MAINOBJ) dmyext.@OBJEXT@ $(LIBRUBY_A) $(LIBS) -o $@
  92  
  93  $(PROGRAM):     $(LIBRUBY) $(MAINOBJ) $(EXTOBJS) 
  94                  @rm -f $@
  95                  $(PURIFY) $(CC) $(LDFLAGS) $(XLDFLAGS) $(MAINLIBS) $(MAINOBJ) $(EXTOBJS) $(LIBRUBYARG) $(LIBS) -o $@
  96  
  97  $(LIBRUBY_A):   $(OBJS) dmyext.@OBJEXT@
  98                  @AR@ rcu $@ $(OBJS) dmyext.@OBJEXT@
  99                  @-@RANLIB@ $@ 2> /dev/null || true
 100  
 101  $(LIBRUBY_SO):  $(OBJS) dmyext.@OBJEXT@ miniruby$(EXEEXT)
 102                  $(LDSHARED) $(DLDFLAGS) $(OBJS) dmyext.@OBJEXT@ $(SOLIBS) -o $@
 103                  @-@MINIRUBY@ -e 'ARGV.each{|link| File.delete link if File.exist? link; \
 104                                                    File.symlink "$(LIBRUBY_SO)", link}' \
 105                                  $(LIBRUBY_ALIASES) || true
 106  
 107  install:        rbconfig.rb
 108                  @MINIRUBY@ $(srcdir)/instruby.rb $(DESTDIR)
 109  
 110  clean-ext:;     @-@MINIRUBY@ $(srcdir)/ext/extmk.rb clean 2> /dev/null || true
 111  
 112  clean-local:
 113                  @rm -f $(OBJS) $(MAINOBJ) $(LIBRUBY_A) $(LIBRUBY_SO) $(LIBRUBY_ALIASES)
 114                  @rm -f ext/extinit.c ext/extinit.@OBJEXT@ dmyext.@OBJEXT@
 115                  @rm -f $(PROGRAM) miniruby$(EXEEXT)
 116  
 117  clean: clean-ext clean-local
 118  
 119  distclean-ext:
 120                  @-@MINIRUBY@ $(srcdir)/ext/extmk.rb distclean 2> /dev/null || true
 121  
 122  distclean-local: clean-local
 123                  @rm -f Makefile config.h rbconfig.rb
 124                  @rm -f ext/config.cache config.cache config.log config.status
 125                  @rm -f *~ core *.core gmon.out y.tab.c y.output ruby.imp
 126  
 127  distclean: distclean-ext distclean-local
 128  
 129  realclean:      distclean
 130                  @rm -f parse.c
 131                  @rm -f lex.c
 132  
 133  test:           miniruby$(EXEEXT) rbconfig.rb
 134                  @./miniruby$(EXEEXT) $(srcdir)/rubytest.rb
 135  
 136  rbconfig.rb:    miniruby$(EXEEXT) $(srcdir)/mkconfig.rb config.status
 137                  @@MINIRUBY@ $(srcdir)/mkconfig.rb rbconfig.rb
 138  
 139  fake.rb:        miniruby$(EXEEXT)
 140                  @echo ' \
 141                  class Object; \
 142                    remove_const :RUBY_PLATFORM; \
 143                    remove_const :RUBY_VERSION; \
 144                    RUBY_PLATFORM = "@arch@"; \
 145                    RUBY_VERSION = "@MAJOR@.@MINOR@.@TEENY@"; \
 146                    CROSS_COMPILING = true; \
 147                  end \
 148                  ' > $@
 149  
 150  config.status:  $(srcdir)/configure
 151                  $(SHELL) ./config.status --recheck
 152  
 153  $(srcdir)/configure: $(srcdir)/configure.in
 154                  cd $(srcdir) && $(AUTOCONF)
 155  
 156  .c.@OBJEXT@:
 157          $(CC) $(CFLAGS) $(CPPFLAGS) -c $<
 158  
 159  lex.c: keywords
 160          gperf -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$$ $(srcdir)/keywords > lex.c
 161  
 162  parse.c: parse.y
 163          $(YACC) $<
 164          mv -f y.tab.c parse.c
 165  
 166  acosh.@OBJEXT@: $(srcdir)/missing/acosh.c
 167          $(CC) -I. $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/acosh.c
 168  
 169  alloca.@OBJEXT@: $(srcdir)/missing/alloca.c
 170          $(CC) -I. $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/alloca.c
 171  
 172  crypt.@OBJEXT@: $(srcdir)/missing/crypt.c
 173          $(CC) -I. $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/crypt.c
 174  
 175  dup2.@OBJEXT@: $(srcdir)/missing/dup2.c
 176          $(CC) -I. $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/dup2.c
 177  
 178  fileblocks.@OBJEXT@: $(srcdir)/missing/fileblocks.c
 179          $(CC) -I. $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/fileblocks.c
 180  
 181  finite.@OBJEXT@: $(srcdir)/missing/finite.c
 182          $(CC) -I. $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/finite.c
 183  
 184  flock.@OBJEXT@: $(srcdir)/missing/flock.c
 185          $(CC) -I. $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/flock.c
 186  
 187  isinf.@OBJEXT@: $(srcdir)/missing/isinf.c
 188          $(CC) -I. $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/isinf.c
 189  
 190  isnan.@OBJEXT@: $(srcdir)/missing/isnan.c
 191          $(CC) -I. $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/isnan.c
 192  
 193  fnmatch.@OBJEXT@: $(srcdir)/missing/fnmatch.c
 194          $(CC) -I. $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/fnmatch.c
 195  
 196  memcmp.@OBJEXT@: $(srcdir)/missing/memcmp.c
 197          $(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/memcmp.c
 198  
 199  memmove.@OBJEXT@: $(srcdir)/missing/memmove.c
 200          $(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/memmove.c
 201  
 202  mkdir.@OBJEXT@: $(srcdir)/missing/mkdir.c
 203          $(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/mkdir.c
 204  
 205  vsnprintf.@OBJEXT@: $(srcdir)/missing/vsnprintf.c
 206          $(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/vsnprintf.c
 207  
 208  strcasecmp.@OBJEXT@: $(srcdir)/missing/strcasecmp.c
 209          $(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/strcasecmp.c
 210  
 211  strncasecmp.@OBJEXT@: $(srcdir)/missing/strncasecmp.c
 212          $(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/strncasecmp.c
 213  
 214  strchr.@OBJEXT@: $(srcdir)/missing/strchr.c
 215          $(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/strchr.c
 216  
 217  strerror.@OBJEXT@: $(srcdir)/missing/strerror.c
 218          $(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/strerror.c
 219  
 220  strftime.@OBJEXT@: $(srcdir)/missing/strftime.c
 221          $(CC) -I. $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/strftime.c
 222  
 223  strstr.@OBJEXT@: $(srcdir)/missing/strstr.c
 224          $(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/strstr.c
 225  
 226  strtol.@OBJEXT@: $(srcdir)/missing/strtol.c
 227          $(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/strtol.c
 228  
 229  strtoul.@OBJEXT@: $(srcdir)/missing/strtoul.c
 230          $(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/strtoul.c
 231  
 232  x68.@OBJEXT@: $(srcdir)/missing/x68.c
 233          $(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/x68.c
 234  
 235  os2.@OBJEXT@: $(srcdir)/missing/os2.c
 236          $(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/os2.c
 237  
 238  dl_os2.@OBJEXT@: $(srcdir)/missing/dl_os2.c
 239          $(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/missing/dl_os2.c
 240  
 241  win32.@OBJEXT@: $(srcdir)/win32/win32.c
 242          $(CC) $(CFLAGS) $(CPPFLAGS) -I$(srcdir)/win32 -c $(srcdir)/win32/win32.c
 243  
 244  # Prevent GNU make v3 from overflowing arg limit on SysV.
 245  .NOEXPORT:
 246  ###
 247  array.@OBJEXT@: array.c ruby.h config.h defines.h intern.h missing.h \
 248    util.h st.h
 249  bignum.@OBJEXT@: bignum.c ruby.h config.h defines.h intern.h missing.h
 250  class.@OBJEXT@: class.c ruby.h config.h defines.h intern.h missing.h \
 251    rubysig.h node.h st.h
 252  compar.@OBJEXT@: compar.c ruby.h config.h defines.h intern.h missing.h
 253  dir.@OBJEXT@: dir.c ruby.h config.h defines.h intern.h missing.h util.h
 254  dln.@OBJEXT@: dln.c config.h defines.h dln.h
 255  dmyext.@OBJEXT@: dmyext.c
 256  enum.@OBJEXT@: enum.c ruby.h config.h defines.h intern.h missing.h node.h \
 257    util.h
 258  error.@OBJEXT@: error.c ruby.h config.h defines.h intern.h missing.h \
 259    env.h version.h
 260  eval.@OBJEXT@: eval.c ruby.h config.h defines.h intern.h missing.h node.h \
 261    env.h util.h rubysig.h st.h dln.h
 262  file.@OBJEXT@: file.c ruby.h config.h defines.h intern.h missing.h \
 263    rubyio.h rubysig.h util.h dln.h
 264  gc.@OBJEXT@: gc.c ruby.h config.h defines.h intern.h missing.h rubysig.h \
 265    st.h node.h env.h re.h regex.h
 266  hash.@OBJEXT@: hash.c ruby.h config.h defines.h intern.h missing.h st.h \
 267    util.h rubysig.h
 268  inits.@OBJEXT@: inits.c ruby.h config.h defines.h intern.h missing.h
 269  io.@OBJEXT@: io.c ruby.h config.h defines.h intern.h missing.h rubyio.h \
 270    rubysig.h env.h util.h
 271  main.@OBJEXT@: main.c ruby.h config.h defines.h intern.h missing.h
 272  marshal.@OBJEXT@: marshal.c ruby.h config.h defines.h intern.h missing.h \
 273    rubyio.h st.h
 274  math.@OBJEXT@: math.c ruby.h config.h defines.h intern.h missing.h
 275  numeric.@OBJEXT@: numeric.c ruby.h config.h defines.h intern.h missing.h
 276  object.@OBJEXT@: object.c ruby.h config.h defines.h intern.h missing.h \
 277    st.h
 278  pack.@OBJEXT@: pack.c ruby.h config.h defines.h intern.h missing.h
 279  parse.@OBJEXT@: parse.c ruby.h config.h defines.h intern.h missing.h \
 280    env.h node.h st.h regex.h util.h lex.c
 281  prec.@OBJEXT@: prec.c ruby.h config.h defines.h intern.h missing.h
 282  process.@OBJEXT@: process.c ruby.h config.h defines.h intern.h missing.h \
 283    rubysig.h st.h
 284  random.@OBJEXT@: random.c ruby.h config.h defines.h intern.h missing.h
 285  range.@OBJEXT@: range.c ruby.h config.h defines.h intern.h missing.h
 286  re.@OBJEXT@: re.c ruby.h config.h defines.h intern.h missing.h re.h \
 287    regex.h
 288  regex.@OBJEXT@: regex.c config.h regex.h
 289  ruby.@OBJEXT@: ruby.c ruby.h config.h defines.h intern.h missing.h dln.h \
 290    node.h util.h
 291  signal.@OBJEXT@: signal.c ruby.h config.h defines.h intern.h missing.h \
 292    rubysig.h
 293  sprintf.@OBJEXT@: sprintf.c ruby.h config.h defines.h intern.h missing.h
 294  st.@OBJEXT@: st.c config.h st.h
 295  string.@OBJEXT@: string.c ruby.h config.h defines.h intern.h missing.h \
 296    re.h regex.h
 297  struct.@OBJEXT@: struct.c ruby.h config.h defines.h intern.h missing.h
 298  time.@OBJEXT@: time.c ruby.h config.h defines.h intern.h missing.h
 299  util.@OBJEXT@: util.c ruby.h config.h defines.h intern.h missing.h util.h
 300  variable.@OBJEXT@: variable.c ruby.h config.h defines.h intern.h \
 301    missing.h env.h node.h st.h util.h
 302  version.@OBJEXT@: version.c ruby.h config.h defines.h intern.h missing.h \
 303    version.h