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@
|
|
|
|
CFLAGS = @CFLAGS@ -I. -I@srcdir@ -I@includedir@
|
1998-01-16 15:13:05 +03:00
|
|
|
LDFLAGS = @STATIC@ $(CFLAGS) @LDFLAGS@
|
1999-01-20 07:59:39 +03:00
|
|
|
EXTLIBS =
|
1998-01-16 15:13:05 +03:00
|
|
|
LIBS = @LIBS@ $(EXTLIBS)
|
|
|
|
MISSING = @LIBOBJS@ @ALLOCA@
|
1999-01-20 07:59:39 +03:00
|
|
|
LDSHARED = @LDSHARED@
|
|
|
|
DLDFLAGS = @DLDFLAGS@
|
|
|
|
SOLIBS = @SOLIBS@
|
1998-01-16 15:13:05 +03:00
|
|
|
|
|
|
|
binsuffix = @binsuffix@
|
|
|
|
|
|
|
|
#### End of system configuration section. ####
|
|
|
|
|
|
|
|
|
1999-01-20 07:59:39 +03:00
|
|
|
LIBRUBY = @LIBRUBY@
|
|
|
|
LIBRUBYARG = @LIBRUBYARG@
|
1998-01-16 15:13:05 +03:00
|
|
|
|
1998-01-16 15:19:22 +03:00
|
|
|
EXTOBJS =
|
1998-01-16 15:13:05 +03:00
|
|
|
|
|
|
|
MAINOBJ = main.o
|
|
|
|
|
|
|
|
OBJS = array.o \
|
|
|
|
bignum.o \
|
|
|
|
class.o \
|
|
|
|
compar.o \
|
|
|
|
dir.o \
|
|
|
|
dln.o \
|
|
|
|
enum.o \
|
|
|
|
error.o \
|
|
|
|
eval.o \
|
|
|
|
file.o \
|
|
|
|
fnmatch.o \
|
|
|
|
gc.o \
|
|
|
|
glob.o \
|
|
|
|
hash.o \
|
|
|
|
inits.o \
|
|
|
|
io.o \
|
1998-01-16 15:19:22 +03:00
|
|
|
marshal.o \
|
1999-01-20 07:59:39 +03:00
|
|
|
math.o \
|
1998-01-16 15:13:05 +03:00
|
|
|
numeric.o \
|
|
|
|
object.o \
|
|
|
|
pack.o \
|
|
|
|
parse.o \
|
|
|
|
process.o \
|
|
|
|
random.o \
|
|
|
|
range.o \
|
|
|
|
re.o \
|
|
|
|
regex.o \
|
|
|
|
ruby.o \
|
|
|
|
signal.o \
|
|
|
|
sprintf.o \
|
|
|
|
st.o \
|
|
|
|
string.o \
|
|
|
|
struct.o \
|
|
|
|
time.o \
|
|
|
|
util.o \
|
|
|
|
variable.o \
|
|
|
|
version.o \
|
|
|
|
$(MISSING)
|
|
|
|
|
1998-01-16 15:19:22 +03:00
|
|
|
all: miniruby$(binsuffix) rbconfig.rb
|
1999-01-20 07:59:39 +03:00
|
|
|
@./miniruby$(binsuffix) -Xext extmk.rb @EXTSTATIC@
|
1998-01-16 15:13:05 +03:00
|
|
|
|
1999-01-20 07:59:39 +03:00
|
|
|
miniruby$(binsuffix): libruby.a $(MAINOBJ) dmyext.o
|
1998-01-16 15:13:05 +03:00
|
|
|
@rm -f $@
|
1999-01-20 07:59:39 +03:00
|
|
|
$(PURIFY) $(CC) $(LDFLAGS) $(MAINOBJ) dmyext.o libruby.a $(LIBS) -o $@
|
1998-01-16 15:13:05 +03:00
|
|
|
|
|
|
|
ruby$(binsuffix): $(LIBRUBY) $(MAINOBJ) $(EXTOBJS)
|
|
|
|
@rm -f $@
|
1999-01-20 07:59:39 +03:00
|
|
|
$(PURIFY) $(CC) $(LDFLAGS) $(MAINOBJ) $(EXTOBJS) $(LIBRUBYARG) $(LIBS) -o $@
|
1998-01-16 15:13:05 +03:00
|
|
|
|
1999-01-20 07:59:39 +03:00
|
|
|
libruby.a: $(OBJS) dmyext.o
|
|
|
|
@AR@ rcu $@ $(OBJS) dmyext.o
|
|
|
|
@-@RANLIB@ $@ 2> /dev/null || true
|
|
|
|
|
|
|
|
libruby.so: $(OBJS) dmyext.o
|
|
|
|
$(LDSHARED) $(DLDFLAGS) $(SOLIBS) $(OBJS) dmyext.o -o $@
|
1998-01-16 15:13:05 +03:00
|
|
|
|
1998-01-16 15:19:22 +03:00
|
|
|
install: rbconfig.rb
|
1999-01-20 07:59:39 +03:00
|
|
|
./miniruby$(binsuffix) $(srcdir)/instruby.rb $(DESTDIR)
|
1998-01-16 15:13:05 +03:00
|
|
|
|
1998-01-16 15:19:22 +03:00
|
|
|
clean:; @rm -f $(OBJS) $(LIBRUBY) $(MAINOBJ) rbconfig.rb
|
1998-01-16 15:13:05 +03:00
|
|
|
@rm -f ext/extinit.c ext/extinit.o dmyext.o
|
1999-01-20 07:59:39 +03:00
|
|
|
@if test -f ./miniruby$(binsuffix); then \
|
|
|
|
./miniruby$(binsuffix) -Xext extmk.rb clean; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
@rm -f Makefile ext/extmk.rb config.h
|
|
|
|
@rm -f ext/config.cache config.cache config.log config.status
|
|
|
|
@rm -f parse.c *~ core *.core gmon.out y.tab.c y.output
|
1998-01-16 15:19:22 +03:00
|
|
|
@rm -f ruby$(binsuffix) miniruby$(binsuffix)
|
|
|
|
|
1999-01-20 07:59:39 +03:00
|
|
|
realclean: distclean
|
|
|
|
@rm -f lex.c
|
|
|
|
|
1998-01-16 15:19:22 +03:00
|
|
|
test: miniruby$(binsuffix)
|
|
|
|
@./miniruby$(binsuffix) $(srcdir)/rubytest.rb
|
|
|
|
|
|
|
|
rbconfig.rb: config.status miniruby$(binsuffix)
|
|
|
|
@./miniruby$(binsuffix) $(srcdir)/mkconfig.rb rbconfig.rb
|
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)
|
|
|
|
|
1998-01-16 15:13:05 +03:00
|
|
|
.c.o:
|
|
|
|
$(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
|
|
|
|
|
|
|
|
alloca.o: @srcdir@/missing/alloca.c
|
|
|
|
$(CC) -I. $(CFLAGS) $(CPPFLAGS) -c @srcdir@/missing/alloca.c
|
|
|
|
|
|
|
|
crypt.o: @srcdir@/missing/crypt.c
|
|
|
|
$(CC) -I. $(CFLAGS) $(CPPFLAGS) -c @srcdir@/missing/crypt.c
|
|
|
|
|
|
|
|
dup2.o: @srcdir@/missing/dup2.c
|
|
|
|
$(CC) -I. $(CFLAGS) $(CPPFLAGS) -c @srcdir@/missing/dup2.c
|
|
|
|
|
|
|
|
flock.o: @srcdir@/missing/flock.c
|
|
|
|
$(CC) -I. $(CFLAGS) $(CPPFLAGS) -c @srcdir@/missing/flock.c
|
|
|
|
|
1999-01-20 07:59:39 +03:00
|
|
|
memcmp.o: @srcdir@/missing/memcmp.c
|
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c @srcdir@/missing/memcmp.c
|
|
|
|
|
1998-01-16 15:13:05 +03:00
|
|
|
memmove.o: @srcdir@/missing/memmove.c
|
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c @srcdir@/missing/memmove.c
|
|
|
|
|
|
|
|
mkdir.o: @srcdir@/missing/mkdir.c
|
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c @srcdir@/missing/mkdir.c
|
|
|
|
|
1999-01-20 07:59:39 +03:00
|
|
|
vsnprintf.o: @srcdir@/missing/vsnprintf.c
|
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c @srcdir@/missing/vsnprintf.c
|
1998-01-16 15:13:05 +03:00
|
|
|
|
|
|
|
strcasecmp.o: @srcdir@/missing/strcasecmp.c
|
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c @srcdir@/missing/strcasecmp.c
|
|
|
|
|
1999-01-20 07:59:39 +03:00
|
|
|
strchr.o: @srcdir@/missing/strchr.c
|
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c @srcdir@/missing/strchr.c
|
1998-01-16 15:13:05 +03:00
|
|
|
|
|
|
|
strdup.o: @srcdir@/missing/strdup.c
|
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c @srcdir@/missing/strdup.c
|
|
|
|
|
1999-01-20 07:59:39 +03:00
|
|
|
strerror.o: @srcdir@/missing/strerror.c
|
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c @srcdir@/missing/strerror.c
|
|
|
|
|
1998-01-16 15:13:05 +03:00
|
|
|
strftime.o: @srcdir@/missing/strftime.c
|
|
|
|
$(CC) -I. $(CFLAGS) $(CPPFLAGS) -c @srcdir@/missing/strftime.c
|
|
|
|
|
|
|
|
strstr.o: @srcdir@/missing/strstr.c
|
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c @srcdir@/missing/strstr.c
|
|
|
|
|
|
|
|
strtol.o: @srcdir@/missing/strtol.c
|
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c @srcdir@/missing/strtol.c
|
|
|
|
|
|
|
|
strtoul.o: @srcdir@/missing/strtoul.c
|
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c @srcdir@/missing/strtoul.c
|
|
|
|
|
|
|
|
nt.o: @srcdir@/missing/nt.c
|
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c @srcdir@/missing/nt.c
|
|
|
|
|
|
|
|
x68.o: @srcdir@/missing/x68.c
|
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c @srcdir@/missing/x68.c
|
|
|
|
|
|
|
|
# Prevent GNU make v3 from overflowing arg limit on SysV.
|
|
|
|
.NOEXPORT:
|
|
|
|
###
|
1999-01-20 07:59:39 +03:00
|
|
|
parse.o: 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
|
|
|
###
|
1998-01-16 15:19:22 +03:00
|
|
|
array.o: array.c ruby.h config.h defines.h intern.h
|
|
|
|
bignum.o: bignum.c ruby.h config.h defines.h intern.h
|
|
|
|
class.o: class.c ruby.h config.h defines.h intern.h node.h st.h
|
|
|
|
compar.o: compar.c ruby.h config.h defines.h intern.h
|
|
|
|
dir.o: dir.c ruby.h config.h defines.h intern.h
|
1999-01-20 07:59:39 +03:00
|
|
|
dln.o: dln.c config.h defines.h dln.h
|
1998-01-16 15:13:05 +03:00
|
|
|
dmyext.o: dmyext.c
|
1998-01-16 15:19:22 +03:00
|
|
|
enum.o: enum.c ruby.h config.h defines.h intern.h
|
|
|
|
error.o: error.c ruby.h config.h defines.h intern.h env.h
|
1999-01-20 07:59:39 +03:00
|
|
|
eval.o: eval.c ruby.h config.h defines.h intern.h node.h env.h rubysig.h st.h dln.h
|
|
|
|
file.o: file.c ruby.h config.h defines.h intern.h rubyio.h rubysig.h
|
|
|
|
fnmatch.o: fnmatch.c config.h fnmatch.h
|
|
|
|
gc.o: gc.c ruby.h config.h defines.h intern.h rubysig.h st.h node.h env.h re.h regex.h
|
|
|
|
glob.o: config.h glob.c fnmatch.h
|
|
|
|
hash.o: hash.c ruby.h config.h defines.h intern.h st.h rubysig.h
|
1998-01-16 15:19:22 +03:00
|
|
|
inits.o: inits.c ruby.h config.h defines.h intern.h
|
1999-01-20 07:59:39 +03:00
|
|
|
io.o: io.c ruby.h config.h defines.h intern.h rubyio.h rubysig.h
|
|
|
|
main.o: main.c ruby.h config.h defines.h intern.h
|
|
|
|
marshal.o: marshal.c ruby.h config.h defines.h intern.h rubyio.h st.h
|
1998-01-16 15:19:22 +03:00
|
|
|
math.o: math.c ruby.h config.h defines.h intern.h
|
|
|
|
numeric.o: numeric.c ruby.h config.h defines.h intern.h
|
|
|
|
object.o: object.c ruby.h config.h defines.h intern.h st.h
|
|
|
|
pack.o: pack.c ruby.h config.h defines.h intern.h
|
1999-01-20 07:59:39 +03:00
|
|
|
process.o: process.c ruby.h config.h defines.h intern.h rubysig.h st.h
|
1998-01-16 15:19:22 +03:00
|
|
|
random.o: random.c ruby.h config.h defines.h intern.h
|
|
|
|
range.o: range.c ruby.h config.h defines.h intern.h
|
|
|
|
re.o: re.c ruby.h config.h defines.h intern.h re.h regex.h
|
1999-01-20 07:59:39 +03:00
|
|
|
regex.o: regex.c config.h regex.h util.h
|
|
|
|
ruby.o: ruby.c ruby.h config.h defines.h intern.h dln.h util.h
|
|
|
|
signal.o: signal.c ruby.h config.h defines.h intern.h rubysig.h
|
1998-01-16 15:19:22 +03:00
|
|
|
sprintf.o: sprintf.c ruby.h config.h defines.h intern.h
|
1998-01-16 15:13:05 +03:00
|
|
|
st.o: st.c config.h st.h
|
1998-01-16 15:19:22 +03:00
|
|
|
string.o: string.c ruby.h config.h defines.h intern.h re.h regex.h
|
|
|
|
struct.o: struct.c ruby.h config.h defines.h intern.h
|
|
|
|
time.o: time.c ruby.h config.h defines.h intern.h
|
1999-01-20 07:59:39 +03:00
|
|
|
util.o: util.c ruby.h config.h defines.h intern.h util.h
|
|
|
|
variable.o: variable.c ruby.h config.h defines.h intern.h env.h node.h st.h
|
1998-01-16 15:19:22 +03:00
|
|
|
version.o: version.c ruby.h config.h defines.h intern.h version.h
|