1998-01-16 07:13:05 -05:00
|
|
|
SHELL = $(COMPSEC)
|
|
|
|
|
|
|
|
#### Start of system configuration section. ####
|
|
|
|
|
|
|
|
srcdir = .
|
|
|
|
VPATH = .:./missing
|
|
|
|
|
|
|
|
CC = cl
|
|
|
|
YACC = byacc
|
|
|
|
PURIFY =
|
1999-08-13 01:45:20 -04:00
|
|
|
AUTOCONF = autoconf
|
1998-01-16 07:13:05 -05:00
|
|
|
|
|
|
|
|
|
|
|
prefix =
|
1999-08-13 01:45:20 -04:00
|
|
|
CFLAGS = -nologo -DNT=1 -Ox -I. -I./missing
|
|
|
|
LDFLAGS = $(CFLAGS) -Fm
|
|
|
|
#CFLAGS = -nologo -DNT=1 -Zi -I. -I./missing
|
|
|
|
#LDFLAGS = $(CFLAGS) -Fm
|
|
|
|
XLDFLAGS =
|
|
|
|
#EXTLIBS =
|
2000-01-04 23:41:21 -05:00
|
|
|
LIBS = user32.lib advapi32.lib wsock32.lib $(EXTLIBS)
|
1999-11-04 03:39:57 -05:00
|
|
|
MISSING = crypt.obj alloca.obj win32.obj isinf.obj isnan.obj
|
1999-08-13 01:45:20 -04:00
|
|
|
LDSHARED =
|
|
|
|
DLDFLAGS =
|
|
|
|
SOLIBS =
|
|
|
|
|
|
|
|
RUBY_INSTALL_NAME=ruby
|
|
|
|
EXEEXT = .exe
|
|
|
|
PROGRAM=$(RUBY_INSTALL_NAME)$(EXEEXT)
|
1998-01-16 07:13:05 -05:00
|
|
|
|
2000-03-17 03:58:21 -05:00
|
|
|
STACK = 0x2000000
|
1998-01-16 07:19:22 -05:00
|
|
|
ORGLIBPATH = $(LIB)
|
1998-01-16 07:13:05 -05:00
|
|
|
|
|
|
|
#### End of system configuration section. ####
|
|
|
|
|
1999-08-13 01:45:20 -04:00
|
|
|
LIBRUBY_A = libruby.lib
|
|
|
|
LIBRUBY_SO = rubymw.dll
|
|
|
|
LIBRUBY = $(LIBRUBY_SO)
|
|
|
|
LIBRUBYARG = rubymw.lib
|
1998-01-16 07:13:05 -05:00
|
|
|
|
|
|
|
EXTOBJS = dmyext.obj
|
|
|
|
|
|
|
|
MAINOBJ = main.obj
|
|
|
|
|
|
|
|
OBJS = array.obj \
|
|
|
|
bignum.obj \
|
|
|
|
class.obj \
|
|
|
|
compar.obj \
|
|
|
|
dir.obj \
|
|
|
|
dln.obj \
|
|
|
|
enum.obj \
|
|
|
|
error.obj \
|
|
|
|
eval.obj \
|
|
|
|
file.obj \
|
|
|
|
gc.obj \
|
|
|
|
hash.obj \
|
|
|
|
inits.obj \
|
|
|
|
io.obj \
|
1998-01-16 07:19:22 -05:00
|
|
|
marshal.obj \
|
1999-08-13 01:45:20 -04:00
|
|
|
math.obj \
|
1998-01-16 07:13:05 -05:00
|
|
|
numeric.obj \
|
|
|
|
object.obj \
|
|
|
|
pack.obj \
|
|
|
|
parse.obj \
|
1999-08-13 01:45:20 -04:00
|
|
|
prec.obj \
|
1998-01-16 07:13:05 -05:00
|
|
|
process.obj \
|
|
|
|
random.obj \
|
|
|
|
range.obj \
|
|
|
|
re.obj \
|
|
|
|
regex.obj \
|
|
|
|
ruby.obj \
|
|
|
|
signal.obj \
|
|
|
|
sprintf.obj \
|
|
|
|
st.obj \
|
|
|
|
string.obj \
|
|
|
|
struct.obj \
|
|
|
|
time.obj \
|
|
|
|
util.obj \
|
|
|
|
variable.obj \
|
|
|
|
version.obj \
|
|
|
|
$(MISSING)
|
|
|
|
|
1999-08-24 04:21:56 -04:00
|
|
|
all: miniruby$(EXEEXT) rbconfig.rb ext/extmk.rb ext/Setup rubymw.lib $(MISCLIBS)
|
1998-01-16 07:19:22 -05:00
|
|
|
set LIB=..\..\win32;$(ORGLIBPATH)
|
1999-08-13 01:45:20 -04:00
|
|
|
@.\miniruby$(EXEEXT) -Xext extmk.rb
|
1998-01-16 07:13:05 -05:00
|
|
|
|
1999-08-13 01:45:20 -04:00
|
|
|
ext/extmk.rb: ext/extmk.rb.in rbconfig.rb
|
|
|
|
@echo Creating ext/extmk.rb
|
|
|
|
@.\miniruby$(EXEEXT) -Xext mswin32_extmk.rb
|
|
|
|
|
|
|
|
miniruby$(EXEEXT): $(OBJS) $(MAINOBJ) $(EXTOBJS)
|
1998-01-16 07:13:05 -05:00
|
|
|
@echo $(EXTOBJS)
|
|
|
|
@echo $(LIBS)
|
1999-08-13 01:45:20 -04:00
|
|
|
@rm -f $@
|
|
|
|
$(PURIFY) $(CC) $(LDFLAGS) $(MAINOBJ) $(EXTOBJS) $(OBJS) $(LIBS) -o $@
|
|
|
|
|
|
|
|
$(PROGRAM): $(LIBRUBY) $(MAINOBJ) $(LIBRUBY_SO)
|
|
|
|
@rm -f $@
|
|
|
|
$(PURIFY) $(CC) $(LDFLAGS) $(XLDFLAGS) $(MAINOBJ) -o $@ $(LIBRUBYARG) -link /STACK:$(STACK)
|
|
|
|
|
1999-09-22 00:30:11 -04:00
|
|
|
$(LIBRUBY_A): $(OBJS) dmyext.obj
|
|
|
|
lib -nologo /OUT:$@ $(OBJS) dmyext.obj
|
1998-01-16 07:13:05 -05:00
|
|
|
|
1999-08-13 01:45:20 -04:00
|
|
|
rubymw.lib: ruby.def
|
|
|
|
lib -nologo /OUT:$@ /DEF:ruby.def
|
1998-01-16 07:13:05 -05:00
|
|
|
|
1999-09-22 00:30:11 -04:00
|
|
|
$(LIBRUBY_SO): $(LIBRUBY_A) $(EXTOBJS) ruby.def
|
1998-01-16 07:19:22 -05:00
|
|
|
set LIB=.\win32;$(ORGLIBPATH)
|
1999-08-13 01:45:20 -04:00
|
|
|
@rm -f $@
|
|
|
|
$(CC) $(LDFLAGS) $(MAINOBJ) $(EXTOBJS) $(LIBRUBY_A) $(LIBS) -o $@ -link /DLL /DEF:ruby.def
|
1998-01-16 07:19:22 -05:00
|
|
|
@mv rubymw.map rubydll.map
|
1998-01-16 07:13:05 -05:00
|
|
|
|
1999-08-13 01:45:20 -04:00
|
|
|
install: rbconfig.rb
|
|
|
|
.\miniruby.exe $(srcdir)/instruby.rb $(DESTDIR)
|
|
|
|
|
|
|
|
clean:; @rm -f $(OBJS) $(LIBRUBY_A) $(MAINOBJ) rbconfig.rb
|
|
|
|
@rm -f ext/extinit.c ext/extinit.obj ext/vc*.pdb *.obj
|
|
|
|
@-.\miniruby$(EXEEXT) -Xext extmk.rb clean
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
@rm -f Makefile ext/extmk.rb config.h
|
|
|
|
@rm -f ext/config.cache config.cache config.log config.status
|
|
|
|
@rm -f *~ core *.core gmon.out y.tab.c y.output ruby.imp
|
|
|
|
@rm -f *.map *.pdb *.ilk rubymw.* ruby.def
|
|
|
|
@rm -f $(PROGRAM) miniruby$(EXEEXT)
|
|
|
|
|
|
|
|
realclean: distclean
|
|
|
|
@rm -f parse.c
|
|
|
|
@rm -f lex.c
|
|
|
|
|
|
|
|
test: miniruby$(EXEEXT)
|
|
|
|
@.\miniruby$(EXEEXT) $(srcdir)/rubytest.rb
|
|
|
|
|
|
|
|
rbconfig.rb: miniruby$(EXEEXT)
|
|
|
|
@.\miniruby$(EXEEXT) $(srcdir)/mkconfig.rb rbconfig.rb
|
|
|
|
|
|
|
|
config.status: $(srcdir)/configure
|
|
|
|
# $(SHELL) ./config.status --recheck
|
1998-01-16 07:13:05 -05:00
|
|
|
|
|
|
|
.c.obj:
|
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c $<
|
|
|
|
|
1999-08-13 01:45:20 -04:00
|
|
|
parse.c: parse.y
|
|
|
|
$(YACC) $(YFLAGS) parse.y
|
|
|
|
sed -e "s!^extern char \*getenv();!/* & */!" y.tab.c > parse.c
|
|
|
|
@rm y.tab.c
|
|
|
|
|
1998-01-16 07:13:05 -05:00
|
|
|
alloca.obj: missing/alloca.c
|
|
|
|
$(CC) -I. $(CFLAGS) $(CPPFLAGS) -c missing/alloca.c
|
|
|
|
|
|
|
|
crypt.obj: missing/crypt.c
|
|
|
|
$(CC) -I. $(CFLAGS) $(CPPFLAGS) -c missing/crypt.c
|
|
|
|
|
|
|
|
dup2.obj: missing/dup2.c
|
|
|
|
$(CC) -I. $(CFLAGS) $(CPPFLAGS) -c missing/dup2.c
|
|
|
|
|
1999-08-13 01:45:20 -04:00
|
|
|
finite.obj: missing/finite.c
|
|
|
|
$(CC) -I. $(CFLAGS) $(CPPFLAGS) -c missing/finite.c
|
|
|
|
|
1998-01-16 07:13:05 -05:00
|
|
|
flock.obj: missing/flock.c
|
|
|
|
$(CC) -I. $(CFLAGS) $(CPPFLAGS) -c missing/flock.c
|
|
|
|
|
1999-08-13 01:45:20 -04:00
|
|
|
isinf.obj: missing/isinf.c
|
|
|
|
$(CC) -I. $(CFLAGS) $(CPPFLAGS) -c missing/isinf.c
|
|
|
|
|
|
|
|
isnan.obj: missing/isnan.c
|
|
|
|
$(CC) -I. $(CFLAGS) $(CPPFLAGS) -c missing/isnan.c
|
|
|
|
|
|
|
|
memcmp.obj: missing/memcmp.c
|
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c missing/memcmp.c
|
|
|
|
|
1998-01-16 07:13:05 -05:00
|
|
|
memmove.obj: missing/memmove.c
|
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c missing/memmove.c
|
|
|
|
|
|
|
|
mkdir.obj: missing/mkdir.c
|
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c missing/mkdir.c
|
|
|
|
|
1999-08-13 01:45:20 -04:00
|
|
|
vsnprintf.obj: missing/vsnprintf.c
|
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c missing/vsnprintf.c
|
|
|
|
|
|
|
|
strcasecmp.obj: missing/strcasecmp.c
|
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c missing/strcasecmp.c
|
|
|
|
|
|
|
|
strncasecmp.obj: missing/strncasecmp.c
|
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c missing/strncasecmp.c
|
|
|
|
|
|
|
|
strchr.obj: missing/strchr.c
|
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c missing/strchr.c
|
1998-01-16 07:13:05 -05:00
|
|
|
|
|
|
|
strdup.obj: missing/strdup.c
|
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c missing/strdup.c
|
|
|
|
|
1999-08-13 01:45:20 -04:00
|
|
|
strerror.obj: missing/strerror.c
|
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c missing/strerror.c
|
|
|
|
|
1998-01-16 07:13:05 -05:00
|
|
|
strftime.obj: missing/strftime.c
|
|
|
|
$(CC) -I. $(CFLAGS) $(CPPFLAGS) -c missing/strftime.c
|
|
|
|
|
|
|
|
strstr.obj: missing/strstr.c
|
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c missing/strstr.c
|
|
|
|
|
1999-08-13 01:45:20 -04:00
|
|
|
strtod.obj: missing/strtod.c
|
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c missing/strtod.c
|
|
|
|
|
1998-01-16 07:13:05 -05:00
|
|
|
strtol.obj: missing/strtol.c
|
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c missing/strtol.c
|
|
|
|
|
|
|
|
strtoul.obj: missing/strtoul.c
|
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c missing/strtoul.c
|
|
|
|
|
1999-08-13 01:45:20 -04:00
|
|
|
nt.obj: missing/nt.c
|
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c missing/nt.c
|
|
|
|
|
|
|
|
x68.obj: missing/x68.c
|
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c missing/x68.c
|
|
|
|
|
|
|
|
os2.obj: missing/os2.c
|
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c missing/os2.c
|
|
|
|
|
|
|
|
dl_os2.obj: missing/dl_os2.c
|
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c missing/dl_os2.c
|
|
|
|
|
1998-01-16 07:13:05 -05:00
|
|
|
# when I use -I., there is confliction at "OpenFile"
|
|
|
|
# so, set . into environment varible "include"
|
1999-01-19 23:59:39 -05:00
|
|
|
win32.obj: win32/win32.c
|
1998-01-16 07:13:05 -05:00
|
|
|
@set include=$(INCLUDE);.
|
1999-01-19 23:59:39 -05:00
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c win32/win32.c
|
1998-01-16 07:13:05 -05:00
|
|
|
|
|
|
|
# Prevent GNU make v3 from overflowing arg limit on SysV.
|
|
|
|
.NOEXPORT:
|
|
|
|
###
|
1999-08-13 01:45:20 -04:00
|
|
|
parse.obj: 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 07:13:05 -05:00
|
|
|
###
|
1999-08-13 01:45:20 -04:00
|
|
|
array.obj: array.c ruby.h config.h defines.h intern.h
|
|
|
|
bignum.obj: bignum.c ruby.h config.h defines.h intern.h
|
|
|
|
class.obj: class.c ruby.h config.h defines.h intern.h node.h st.h
|
|
|
|
compar.obj: compar.c ruby.h config.h defines.h intern.h
|
|
|
|
dir.obj: dir.c ruby.h config.h defines.h intern.h
|
|
|
|
dln.obj: dln.c config.h defines.h dln.h
|
1998-01-16 07:13:05 -05:00
|
|
|
dmyext.obj: dmyext.c
|
1999-08-13 01:45:20 -04:00
|
|
|
enum.obj: enum.c ruby.h config.h defines.h intern.h
|
|
|
|
error.obj: error.c ruby.h config.h defines.h intern.h env.h
|
|
|
|
eval.obj: eval.c ruby.h config.h defines.h intern.h node.h env.h rubysig.h st.h dln.h
|
|
|
|
file.obj: file.c ruby.h config.h defines.h intern.h rubyio.h rubysig.h
|
|
|
|
gc.obj: gc.c ruby.h config.h defines.h intern.h rubysig.h st.h node.h env.h re.h regex.h
|
|
|
|
hash.obj: hash.c ruby.h config.h defines.h intern.h st.h rubysig.h util.h
|
|
|
|
inits.obj: inits.c ruby.h config.h defines.h intern.h
|
1999-08-24 04:21:56 -04:00
|
|
|
io.obj: io.c ruby.h config.h defines.h intern.h rubyio.h rubysig.h env.h
|
1999-08-13 01:45:20 -04:00
|
|
|
main.obj: main.c ruby.h config.h defines.h intern.h
|
|
|
|
marshal.obj: marshal.c ruby.h config.h defines.h intern.h rubyio.h st.h
|
|
|
|
prec.obj: prec.c ruby.h config.h defines.h intern.h
|
|
|
|
math.obj: math.c ruby.h config.h defines.h intern.h
|
|
|
|
numeric.obj: numeric.c ruby.h config.h defines.h intern.h
|
|
|
|
object.obj: object.c ruby.h config.h defines.h intern.h st.h
|
|
|
|
pack.obj: pack.c ruby.h config.h defines.h intern.h
|
|
|
|
process.obj: process.c ruby.h config.h defines.h intern.h rubysig.h st.h
|
|
|
|
random.obj: random.c ruby.h config.h defines.h intern.h
|
|
|
|
range.obj: range.c ruby.h config.h defines.h intern.h
|
|
|
|
re.obj: re.c ruby.h config.h defines.h intern.h re.h regex.h
|
|
|
|
regex.obj: regex.c config.h regex.h util.h
|
|
|
|
ruby.obj: ruby.c ruby.h config.h defines.h intern.h dln.h util.h
|
|
|
|
signal.obj: signal.c ruby.h config.h defines.h intern.h rubysig.h
|
|
|
|
sprintf.obj: sprintf.c ruby.h config.h defines.h intern.h
|
1998-01-16 07:13:05 -05:00
|
|
|
st.obj: st.c config.h st.h
|
1999-08-13 01:45:20 -04:00
|
|
|
string.obj: string.c ruby.h config.h defines.h intern.h re.h regex.h
|
|
|
|
struct.obj: struct.c ruby.h config.h defines.h intern.h
|
|
|
|
time.obj: time.c ruby.h config.h defines.h intern.h
|
|
|
|
util.obj: util.c ruby.h config.h defines.h intern.h util.h
|
|
|
|
variable.obj: variable.c ruby.h config.h defines.h intern.h env.h node.h st.h
|
|
|
|
version.obj: version.c ruby.h config.h defines.h intern.h version.h
|