2000-12-06 04:10:17 -05:00
|
|
|
SHELL = $(COMSPEC)
|
2000-08-03 05:55:54 -04:00
|
|
|
|
|
|
|
#### Start of system configuration section. ####
|
|
|
|
|
|
|
|
## variables may be overridden by $(compile_dir)/Makefile
|
|
|
|
!ifndef srcdir
|
|
|
|
srcdir = ..
|
|
|
|
!endif
|
|
|
|
!ifndef RUBY_INSTALL_NAME
|
|
|
|
RUBY_INSTALL_NAME = ruby
|
|
|
|
!endif
|
|
|
|
!if !defined(RUBYW_INSTALL_NAME) || "$(RUBYW_INSTALL_NAME)" == "$(RUBY_INSTALL_NAME)"
|
|
|
|
RUBYW_INSTALL_NAME = $(RUBY_INSTALL_NAME:ruby=rubyw)
|
|
|
|
!endif
|
|
|
|
!if "$(RUBYW_INSTALL_NAME)" == "$(RUBY_INSTALL_NAME)"
|
|
|
|
RUBYW_INSTALL_NAME = $(RUBY_INSTALL_NAME)w
|
|
|
|
!endif
|
|
|
|
!ifndef RUBY_SO_NAME
|
|
|
|
RUBY_SO_NAME = rubymw
|
|
|
|
!endif
|
2001-06-09 03:41:44 -04:00
|
|
|
!if !defined(icondirs) && defined(ICONDIRS)
|
|
|
|
icondirs=$(ICONDIRS)
|
|
|
|
!endif
|
|
|
|
!if defined(icondirs)
|
|
|
|
icondirs=$(icondirs:\=/)
|
2002-03-20 06:21:19 -05:00
|
|
|
iconinc=-I$(icondirs: = -I)
|
2001-06-09 03:41:44 -04:00
|
|
|
!endif
|
2000-08-03 05:55:54 -04:00
|
|
|
###############
|
|
|
|
|
|
|
|
VPATH = $(srcdir):$(srcdir)/missing
|
2000-12-21 22:22:25 -05:00
|
|
|
.SUFFIXES: .y
|
2000-08-03 05:55:54 -04:00
|
|
|
|
2002-03-20 06:21:19 -05:00
|
|
|
!if !defined(CC)
|
2000-08-03 05:55:54 -04:00
|
|
|
CC = cl
|
2002-03-20 06:21:19 -05:00
|
|
|
!endif
|
|
|
|
!if !defined(YACC)
|
2000-08-03 05:55:54 -04:00
|
|
|
YACC = byacc
|
2002-03-20 06:21:19 -05:00
|
|
|
!endif
|
2000-08-03 05:55:54 -04:00
|
|
|
PURIFY =
|
|
|
|
AUTOCONF = autoconf
|
|
|
|
|
2002-03-20 06:21:19 -05:00
|
|
|
!if !defined(PROCESSOR_ARCHITECTURE) || "$(PROCESSOR_ARCHITECTURE)" == "x86"
|
|
|
|
!if !defined(PROCESSOR_LEVEL)
|
|
|
|
PROCESSOR_LEVEL = 5
|
|
|
|
!endif
|
|
|
|
PROCESSOR_FLAG = -G$(PROCESSOR_LEVEL)
|
|
|
|
CPU = i$(PROCESSOR_LEVEL)86
|
|
|
|
ARCH = i386
|
|
|
|
!else
|
|
|
|
CPU = $(PROCESSOR_ARCHITECTURE)
|
|
|
|
ARCH = $(PROCESSOR_ARCHITECTURE)
|
|
|
|
!endif
|
|
|
|
!if !defined(DEBUGFLAGS)
|
|
|
|
DEBUGFLAGS = -Zi
|
|
|
|
!endif
|
|
|
|
!if !defined(OPTFLAGS)
|
|
|
|
OPTFLAGS = -O2b2xg-
|
|
|
|
!endif
|
|
|
|
OS = mswin32
|
2000-08-03 05:55:54 -04:00
|
|
|
|
2002-03-20 06:21:19 -05:00
|
|
|
!if !defined(prefix)
|
2000-08-03 05:55:54 -04:00
|
|
|
prefix = /usr
|
2002-03-20 06:21:19 -05:00
|
|
|
!endif
|
|
|
|
!if !defined(DESTDIR)
|
|
|
|
DESTDIR = $(prefix)
|
|
|
|
!endif
|
|
|
|
!if !defined(CFLAGS)
|
|
|
|
CFLAGS = -nologo -MD $(DEBUGFLAGS) $(OPTFLAGS) $(PROCESSOR_FLAG)
|
|
|
|
!endif
|
|
|
|
!if !defined(CPPFLAGS)
|
|
|
|
CPPFLAGS = -I. -I$(srcdir) -I$(srcdir)/missing -DLIBRUBY_SO=\"$(LIBRUBY_SO)\" -DNT=1
|
|
|
|
!endif
|
|
|
|
!if !defined(LDFLAGS)
|
2000-08-03 05:55:54 -04:00
|
|
|
LDFLAGS = $(CFLAGS) -Fm
|
2002-03-20 06:21:19 -05:00
|
|
|
!endif
|
|
|
|
!if !defined(XLDFLAGS)
|
2000-08-03 05:55:54 -04:00
|
|
|
XLDFLAGS =
|
2002-03-20 06:21:19 -05:00
|
|
|
!endif
|
|
|
|
!if !defined(RFLAGS)
|
|
|
|
RFLAGS = -r
|
|
|
|
!endif
|
|
|
|
!if !defined(EXTLIBS)
|
|
|
|
EXTLIBS =
|
|
|
|
!endif
|
2000-08-09 00:32:24 -04:00
|
|
|
LIBS = user32.lib advapi32.lib wsock32.lib $(EXTLIBS)
|
2001-04-14 00:38:19 -04:00
|
|
|
MISSING = crypt.obj win32.obj isinf.obj isnan.obj
|
2002-03-20 06:21:19 -05:00
|
|
|
LDSHARED = $(CC) -LD
|
2000-08-03 05:55:54 -04:00
|
|
|
DLDFLAGS =
|
|
|
|
SOLIBS =
|
|
|
|
|
|
|
|
EXEEXT = .exe
|
|
|
|
PROGRAM=$(RUBY_INSTALL_NAME)$(EXEEXT)
|
|
|
|
WPROGRAM=$(RUBYW_INSTALL_NAME)$(EXEEXT)
|
|
|
|
RUBYDEF = $(RUBY_SO_NAME).def
|
2002-03-20 06:21:19 -05:00
|
|
|
MINIRUBY=miniruby$(EXEEXT)
|
2000-08-03 05:55:54 -04:00
|
|
|
|
2002-03-20 06:21:19 -05:00
|
|
|
!if !defined(STACK)
|
2000-08-03 05:55:54 -04:00
|
|
|
STACK = 0x2000000
|
2002-03-20 06:21:19 -05:00
|
|
|
!endif
|
2000-08-03 05:55:54 -04:00
|
|
|
ORGLIBPATH = $(LIB)
|
|
|
|
|
|
|
|
#### End of system configuration section. ####
|
|
|
|
|
|
|
|
LIBRUBY_A = lib$(RUBY_INSTALL_NAME).lib
|
|
|
|
LIBRUBY_SO = $(RUBY_SO_NAME).dll
|
|
|
|
LIBRUBY = $(RUBY_SO_NAME).lib
|
|
|
|
LIBRUBYARG = $(LIBRUBY)
|
|
|
|
|
|
|
|
EXTOBJS = dmyext.obj
|
|
|
|
|
|
|
|
MAINOBJ = main.obj
|
|
|
|
WINMAINOBJ = winmain.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 \
|
|
|
|
marshal.obj \
|
|
|
|
math.obj \
|
|
|
|
numeric.obj \
|
|
|
|
object.obj \
|
|
|
|
pack.obj \
|
|
|
|
parse.obj \
|
|
|
|
prec.obj \
|
|
|
|
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)
|
|
|
|
|
|
|
|
all: miniruby$(EXEEXT) rbconfig.rb ext/extmk.rb \
|
|
|
|
$(LIBRUBY) $(MISCLIBS)
|
2001-06-09 03:41:44 -04:00
|
|
|
set LIB=..\..;$(ORGLIBPATH)
|
2000-10-06 02:13:52 -04:00
|
|
|
@.\miniruby$(EXEEXT) -Cext extmk.rb
|
2000-08-03 05:55:54 -04:00
|
|
|
|
|
|
|
ruby: $(PROGRAM)
|
|
|
|
rubyw: $(WPROGRAM)
|
|
|
|
lib: $(LIBRUBY)
|
|
|
|
dll: $(LIBRUBY_SO)
|
|
|
|
|
2002-03-20 06:21:19 -05:00
|
|
|
config: config.h config.status
|
|
|
|
|
|
|
|
config.h: $(srcdir)/win32/$$@.in
|
|
|
|
@echo Creating config.h
|
2001-06-09 03:41:44 -04:00
|
|
|
@type $(srcdir:/=\)\win32\$@.in > $@
|
2002-03-20 06:21:19 -05:00
|
|
|
@echo #undef RUBY_PLATFORM >> $@
|
|
|
|
@echo #define RUBY_PLATFORM "$(ARCH)-$(OS)" >> $@
|
|
|
|
|
|
|
|
config.status: Makefile $(srcdir)/win32/Makefile.sub $(MINIRUBY)
|
|
|
|
@echo Creating config.status
|
2002-03-20 07:59:21 -05:00
|
|
|
@$(MINIRUBY) -pe "chomp(' ');~/@CFLAGS@/||$$_['$(CFLAGS)']='$$(CFLAGS)'" << > $@
|
|
|
|
# Generated automatically by Makefile.sub.
|
|
|
|
s,@SHELL@,$$(COMSPEC),;t t
|
|
|
|
s,@CFLAGS@,$(CFLAGS),;t t
|
|
|
|
s,@CPPFLAGS@,$(CPPFLAGS),;t t
|
|
|
|
s,@CXXFLAGS@,$(CXXFLAGS),;t t
|
|
|
|
s,@FFLAGS@,$(FFLAGS),;t t
|
|
|
|
s,@LDFLAGS@,$(LDFLAGS),;t t
|
|
|
|
s,@LIBS@,user32.lib advapi32.lib wsock32.lib,;t t
|
|
|
|
s,@exec_prefix@,$${prefix},;t t
|
2002-03-20 11:12:15 -05:00
|
|
|
s,@prefix@,,;t t
|
2002-03-20 07:59:21 -05:00
|
|
|
s,@program_transform_name@,s,,,,;t t
|
|
|
|
s,@bindir@,$${exec_prefix}/bin,;t t
|
|
|
|
s,@sbindir@,$${exec_prefix}/sbin,;t t
|
|
|
|
s,@libexecdir@,$${exec_prefix}/libexec,;t t
|
|
|
|
s,@datadir@,$${prefix}/share,;t t
|
|
|
|
s,@sysconfdir@,$${prefix}/etc,;t t
|
|
|
|
s,@sharedstatedir@,/etc,;t t
|
|
|
|
s,@localstatedir@,/var,;t t
|
|
|
|
s,@libdir@,$${exec_prefix}/lib,;t t
|
|
|
|
s,@includedir@,$${prefix}/include,;t t
|
|
|
|
s,@oldincludedir@,/usr/include,;t t
|
|
|
|
s,@infodir@,$${prefix}/info,;t t
|
|
|
|
s,@mandir@,$${prefix}/man,;t t
|
|
|
|
s,@build@,$(CPU)-pc-$(OS),;t t
|
|
|
|
s,@build_alias@,$(CPU)-$(OS),;t t
|
|
|
|
s,@build_cpu@,$(CPU),;t t
|
|
|
|
s,@build_vendor@,pc,;t t
|
|
|
|
s,@build_os@,$(OS),;t t
|
|
|
|
s,@host@,$(CPU)-pc-$(OS),;t t
|
|
|
|
s,@host_alias@,$(CPU)-$(OS),;t t
|
|
|
|
s,@host_cpu@,$(CPU),;t t
|
|
|
|
s,@host_vendor@,pc,;t t
|
|
|
|
s,@host_os@,$(OS),;t t
|
|
|
|
s,@target@,$(ARCH)-pc-$(OS),;t t
|
|
|
|
s,@target_alias@,$(ARCH)-$(OS),;t t
|
|
|
|
s,@target_cpu@,$(ARCH),;t t
|
|
|
|
s,@target_vendor@,pc,;t t
|
|
|
|
s,@target_os@,$(OS),;t t
|
|
|
|
s,@CC@,cl,;t t
|
|
|
|
s,@CPP@,$$(CC) -E,;t t
|
|
|
|
s,@YACC@,$(YACC),;t t
|
|
|
|
s,@RANLIB@,rem,;t t
|
|
|
|
s,@AR@,lib -nologo,;t t
|
|
|
|
s,@LN_S@,$(LN_S),;t t
|
|
|
|
s,@SET_MAKE@,$(SET_MAKE),;t t
|
|
|
|
s,@LIBOBJS@, crypt.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,@XLDFLAGS@,$(XLDFLAGS),;t t
|
|
|
|
s,@DLDFLAGS@,$$(CFLAGS),;t t
|
|
|
|
s,@STATIC@,$(STATIC),;t t
|
|
|
|
s,@CCDLFLAGS@,-DIMPORT,;t t
|
|
|
|
s,@LDSHARED@,$$(CC) -LD,;t t
|
|
|
|
s,@DLEXT@,so,;t t
|
|
|
|
s,@DLEXT2@,dll,;t t
|
|
|
|
s,@STRIP@,$(STRIP),;t t
|
|
|
|
s,@EXTSTATIC@,$(EXTSTATIC),;t t
|
|
|
|
s,@setup@,Setup,;t t
|
|
|
|
s,@LIBRUBY_LDSHARED@,$(LIBRUBY_LDSHARED),;t t
|
|
|
|
s,@LIBRUBY_DLDFLAGS@,$(LIBRUBY_DLDFLAGS),;t t
|
|
|
|
s,@RUBY_INSTALL_NAME@,$(RUBY_INSTALL_NAME),;t t
|
|
|
|
s,@RUBY_SO_NAME@,$(RUBY_SO_NAME),;t t
|
|
|
|
s,@LIBRUBY_A@,lib$$(RUBY_INSTALL_NAME).lib,;t t
|
|
|
|
s,@LIBRUBY_SO@,$$(RUBY_SO_NAME).dll,;t t
|
|
|
|
s,@LIBRUBY_ALIASES@,$(LIBRUBY_ALIASES),;t t
|
|
|
|
s,@LIBRUBY@,$$(RUBY_SO_NAME).lib,;t t
|
|
|
|
s,@LIBRUBYARG@,$$(RUBY_SO_NAME).lib,;t t
|
|
|
|
s,@SOLIBS@,$(SOLIBS),;t t
|
|
|
|
s,@DLDLIBS@,$(DLDLIBS),;t t
|
|
|
|
s,@ENABLE_SHARED@,yes,;t t
|
|
|
|
s,@arch@,$(ARCH)-$(OS),;t t
|
|
|
|
s,@sitedir@,$${prefix}/lib/ruby/site_ruby,;t t
|
|
|
|
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
|
|
|
|
<<
|
2001-06-09 03:41:44 -04:00
|
|
|
|
2000-08-03 05:55:54 -04:00
|
|
|
ext/extmk.rb: $(srcdir)/ext/extmk.rb.in config.status
|
|
|
|
@echo Creating ext/extmk.rb
|
|
|
|
@.\miniruby$(EXEEXT) $(srcdir)/ext/configsub.rb \
|
|
|
|
-srcdir=$(srcdir) \
|
|
|
|
-install_name=$(RUBY_INSTALL_NAME) \
|
|
|
|
-so_name=$(RUBY_SO_NAME) \
|
|
|
|
-output=$@ $(srcdir)/ext/extmk.rb.in
|
|
|
|
|
|
|
|
miniruby$(EXEEXT): $(OBJS) $(MAINOBJ) $(EXTOBJS)
|
|
|
|
@echo $(EXTOBJS)
|
|
|
|
@echo $(LIBS)
|
2001-06-09 03:41:44 -04:00
|
|
|
$(PURIFY) $(CC) $(LDFLAGS) $(MAINOBJ) $(EXTOBJS) $(OBJS) $(LIBS) -Fe$@
|
2000-08-03 05:55:54 -04:00
|
|
|
|
|
|
|
$(PROGRAM): $(MAINOBJ) $(LIBRUBY_SO) $*.res
|
|
|
|
$(PURIFY) $(CC) $(LDFLAGS) $(XLDFLAGS) $(MAINOBJ) $*.res \
|
2001-06-09 03:41:44 -04:00
|
|
|
-Fe$@ $(LIBRUBYARG) -link -stack:$(STACK) -incremental:no
|
2000-08-03 05:55:54 -04:00
|
|
|
|
|
|
|
$(WPROGRAM): $(MAINOBJ) $(WINMAINOBJ) $(LIBRUBY_SO) $*.res
|
|
|
|
$(PURIFY) $(CC) $(LDFLAGS) $(MAINOBJ) $(WINMAINOBJ) $*.res \
|
2001-06-09 03:41:44 -04:00
|
|
|
-Fe$@ $(LIBRUBYARG) -link -stack:$(STACK) -subsystem:Windows -incremental:no
|
2000-08-03 05:55:54 -04:00
|
|
|
|
|
|
|
$(LIBRUBY_A): $(OBJS) dmyext.obj
|
|
|
|
lib -nologo /OUT:$@ $(OBJS) dmyext.obj
|
|
|
|
|
|
|
|
$(LIBRUBY): $(RUBYDEF)
|
|
|
|
lib -nologo /OUT:$@ /DEF:$(RUBYDEF)
|
|
|
|
|
|
|
|
$(LIBRUBY_SO): $(LIBRUBY_A) $(EXTOBJS) $(RUBYDEF) $@.res
|
2001-06-09 03:41:44 -04:00
|
|
|
set LIB=.\win32;$(ORGLIBPATH)
|
2000-08-03 05:55:54 -04:00
|
|
|
$(CC) $(LDFLAGS) $(MAINOBJ) $(EXTOBJS) $(LIBRUBY_A) $@.res $(LIBS) \
|
2001-06-09 03:41:44 -04:00
|
|
|
-Fe$@ -link -dll -def:$(RUBYDEF)
|
2000-08-03 05:55:54 -04:00
|
|
|
|
|
|
|
!if "$(LIBRUBY_SO)" != "rubymw.dll"
|
|
|
|
rubymw.dll: $(LIBRUBY)
|
|
|
|
$(CC) -nologo $(EXTOBJS) $(LIBRUBY) -o $@ -link /DLL /DEF:$(RUBYDEF)
|
|
|
|
!endif
|
|
|
|
|
|
|
|
$(RUBYDEF): $(LIBRUBY_A) miniruby$(EXEEXT)
|
|
|
|
.\miniruby$(EXEEXT) $(srcdir)/win32/mkexports.rb -output=$@ $(LIBRUBY_A)
|
|
|
|
|
|
|
|
install: rbconfig.rb
|
|
|
|
.\miniruby.exe $(srcdir)/instruby.rb $(DESTDIR)
|
|
|
|
|
2002-03-20 06:21:19 -05:00
|
|
|
clean: clean-ext clean-local
|
|
|
|
|
|
|
|
clean-local:
|
2001-06-09 03:41:44 -04:00
|
|
|
@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
|
2002-03-20 06:21:19 -05:00
|
|
|
|
|
|
|
clean-ext:
|
2000-10-06 02:13:52 -04:00
|
|
|
@-.\miniruby$(EXEEXT) -Cext extmk.rb clean
|
2000-08-03 05:55:54 -04:00
|
|
|
|
2002-03-20 06:21:19 -05:00
|
|
|
distclean: distclean-ext distclean-local
|
|
|
|
|
|
|
|
distclean-local: clean-local
|
2001-06-09 03:41:44 -04:00
|
|
|
@if exist Makefile del Makefile
|
|
|
|
@if exist ext\extmk.rb del ext\extmk.rb
|
|
|
|
@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 $(LIBRUBY_SO).rc del $(LIBRUBY_SO).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)
|
2000-08-03 05:55:54 -04:00
|
|
|
|
2002-03-20 06:21:19 -05:00
|
|
|
distclean-ext:
|
|
|
|
@-.\miniruby$(EXEEXT) -Cext extmk.rb distclean
|
|
|
|
|
2000-08-03 05:55:54 -04:00
|
|
|
realclean: distclean
|
2001-06-09 03:41:44 -04:00
|
|
|
@if exist parse.c del parse.c
|
|
|
|
@if exist lex.c del lex.c
|
2000-08-03 05:55:54 -04:00
|
|
|
|
|
|
|
test: miniruby$(EXEEXT)
|
|
|
|
@.\miniruby$(EXEEXT) $(srcdir)/rubytest.rb
|
|
|
|
|
|
|
|
rbconfig.rb: miniruby$(EXEEXT) config.status
|
|
|
|
@.\miniruby$(EXEEXT) $(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 $(LIBRUBY_SO).rc: rbconfig.rb
|
|
|
|
@.\miniruby$(EXEEXT) $(srcdir)/win32/resource.rb \
|
|
|
|
-ruby_name=$(RUBY_INSTALL_NAME) \
|
|
|
|
-rubyw_name=$(RUBYW_INSTALL_NAME) \
|
|
|
|
-so_name=$(LIBRUBY_SO) \
|
|
|
|
. $(icondirs) $(srcdir)/win32
|
|
|
|
|
|
|
|
#config.status: $(srcdir)/configure
|
|
|
|
# $(SHELL) ./config.status --recheck
|
|
|
|
|
2000-12-21 22:22:25 -05:00
|
|
|
{$(srcdir)/missing}.c.obj:
|
2001-06-09 03:41:44 -04:00
|
|
|
$(CC) $(CFLAGS) -I. -I$(<D) $(CPPFLAGS) -c -Tc$(<:\=/)
|
2000-12-21 22:22:25 -05:00
|
|
|
{$(srcdir)/win32}.c.obj:
|
2001-06-09 03:41:44 -04:00
|
|
|
$(CC) $(CFLAGS) -I. -I$(<D) $(CPPFLAGS) -c -Tc$(<:\=/)
|
2000-12-21 22:22:25 -05:00
|
|
|
{$(srcdir)}.c.obj:
|
2001-06-09 03:41:44 -04:00
|
|
|
$(CC) $(CFLAGS) -I. -I$(<D) $(CPPFLAGS) -c -Tc$(<:\=/)
|
2000-08-03 05:55:54 -04:00
|
|
|
.c.obj:
|
2001-06-09 03:41:44 -04:00
|
|
|
$(CC) $(CFLAGS) -I. $(CPPFLAGS) -c -Tc$(<:\=/)
|
2000-08-03 05:55:54 -04:00
|
|
|
|
|
|
|
.rc.res:
|
2001-06-09 03:41:44 -04:00
|
|
|
$(RC) -I. -I$(<D) $(iconinc) -I$(srcdir)/win32 $(RFLAGS) -fo$@ $(<:\=/)
|
2000-08-03 05:55:54 -04:00
|
|
|
|
2000-12-21 22:22:25 -05:00
|
|
|
{$(srcdir)}.y.c:
|
|
|
|
$(YACC) $(YFLAGS) $(<:\=/)
|
|
|
|
sed -e "s!^extern char \*getenv();!/* & */!;s/^\(#.*\)y\.tab/\1parse/" y.tab.c > $@
|
|
|
|
@del y.tab.c
|
|
|
|
|
|
|
|
{$(srcdir)}parse.c: parse.y
|
2000-08-03 05:55:54 -04:00
|
|
|
|
|
|
|
alloca.obj: $(srcdir)/missing/alloca.c
|
|
|
|
crypt.obj: $(srcdir)/missing/crypt.c
|
|
|
|
dup2.obj: $(srcdir)/missing/dup2.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:
|
|
|
|
###
|
2000-12-21 22:22:25 -05:00
|
|
|
parse.obj: {$(srcdir)}parse.c $(srcdir)/ruby.h config.h $(srcdir)/defines.h $(srcdir)/intern.h $(srcdir)/env.h $(srcdir)/node.h $(srcdir)/st.h $(srcdir)/regex.h $(srcdir)/util.h $(srcdir)/lex.c
|
2000-08-03 05:55:54 -04:00
|
|
|
###
|
|
|
|
array.obj: $(srcdir)/array.c $(srcdir)/ruby.h config.h $(srcdir)/defines.h $(srcdir)/intern.h
|
|
|
|
bignum.obj: $(srcdir)/bignum.c $(srcdir)/ruby.h config.h $(srcdir)/defines.h $(srcdir)/intern.h
|
|
|
|
class.obj: $(srcdir)/class.c $(srcdir)/ruby.h config.h $(srcdir)/defines.h $(srcdir)/intern.h $(srcdir)/node.h $(srcdir)/st.h
|
|
|
|
compar.obj: $(srcdir)/compar.c $(srcdir)/ruby.h config.h $(srcdir)/defines.h $(srcdir)/intern.h
|
|
|
|
dir.obj: $(srcdir)/dir.c $(srcdir)/ruby.h config.h $(srcdir)/defines.h $(srcdir)/intern.h
|
|
|
|
dln.obj: $(srcdir)/dln.c config.h $(srcdir)/defines.h $(srcdir)/dln.h
|
|
|
|
dmyext.obj: $(srcdir)/dmyext.c
|
|
|
|
enum.obj: $(srcdir)/enum.c $(srcdir)/ruby.h config.h $(srcdir)/defines.h $(srcdir)/intern.h
|
|
|
|
error.obj: $(srcdir)/error.c $(srcdir)/ruby.h config.h $(srcdir)/defines.h $(srcdir)/intern.h $(srcdir)/env.h
|
|
|
|
eval.obj: $(srcdir)/eval.c $(srcdir)/ruby.h config.h $(srcdir)/defines.h $(srcdir)/intern.h $(srcdir)/node.h $(srcdir)/env.h $(srcdir)/rubysig.h $(srcdir)/st.h $(srcdir)/dln.h
|
|
|
|
file.obj: $(srcdir)/file.c $(srcdir)/ruby.h config.h $(srcdir)/defines.h $(srcdir)/intern.h $(srcdir)/rubyio.h $(srcdir)/rubysig.h
|
|
|
|
gc.obj: $(srcdir)/gc.c $(srcdir)/ruby.h config.h $(srcdir)/defines.h $(srcdir)/intern.h $(srcdir)/rubysig.h $(srcdir)/st.h $(srcdir)/node.h $(srcdir)/env.h $(srcdir)/re.h $(srcdir)/regex.h
|
|
|
|
hash.obj: $(srcdir)/hash.c $(srcdir)/ruby.h config.h $(srcdir)/defines.h $(srcdir)/intern.h $(srcdir)/st.h $(srcdir)/rubysig.h $(srcdir)/util.h
|
|
|
|
inits.obj: $(srcdir)/inits.c $(srcdir)/ruby.h config.h $(srcdir)/defines.h $(srcdir)/intern.h
|
|
|
|
io.obj: $(srcdir)/io.c $(srcdir)/ruby.h config.h $(srcdir)/defines.h $(srcdir)/intern.h $(srcdir)/rubyio.h $(srcdir)/rubysig.h $(srcdir)/env.h
|
|
|
|
main.obj: $(srcdir)/main.c $(srcdir)/ruby.h config.h $(srcdir)/defines.h $(srcdir)/intern.h
|
|
|
|
marshal.obj: $(srcdir)/marshal.c $(srcdir)/ruby.h config.h $(srcdir)/defines.h $(srcdir)/intern.h $(srcdir)/rubyio.h $(srcdir)/st.h
|
|
|
|
prec.obj: $(srcdir)/prec.c $(srcdir)/ruby.h config.h $(srcdir)/defines.h $(srcdir)/intern.h
|
|
|
|
math.obj: $(srcdir)/math.c $(srcdir)/ruby.h config.h $(srcdir)/defines.h $(srcdir)/intern.h
|
|
|
|
numeric.obj: $(srcdir)/numeric.c $(srcdir)/ruby.h config.h $(srcdir)/defines.h $(srcdir)/intern.h
|
|
|
|
object.obj: $(srcdir)/object.c $(srcdir)/ruby.h config.h $(srcdir)/defines.h $(srcdir)/intern.h $(srcdir)/st.h
|
|
|
|
pack.obj: $(srcdir)/pack.c $(srcdir)/ruby.h config.h $(srcdir)/defines.h $(srcdir)/intern.h
|
|
|
|
process.obj: $(srcdir)/process.c $(srcdir)/ruby.h config.h $(srcdir)/defines.h $(srcdir)/intern.h $(srcdir)/rubysig.h $(srcdir)/st.h
|
|
|
|
random.obj: $(srcdir)/random.c $(srcdir)/ruby.h config.h $(srcdir)/defines.h $(srcdir)/intern.h
|
|
|
|
range.obj: $(srcdir)/range.c $(srcdir)/ruby.h config.h $(srcdir)/defines.h $(srcdir)/intern.h
|
|
|
|
re.obj: $(srcdir)/re.c $(srcdir)/ruby.h config.h $(srcdir)/defines.h $(srcdir)/intern.h $(srcdir)/re.h $(srcdir)/regex.h
|
|
|
|
regex.obj: $(srcdir)/regex.c config.h $(srcdir)/regex.h $(srcdir)/util.h
|
|
|
|
ruby.obj: $(srcdir)/ruby.c $(srcdir)/ruby.h config.h $(srcdir)/defines.h $(srcdir)/intern.h $(srcdir)/dln.h $(srcdir)/util.h
|
|
|
|
signal.obj: $(srcdir)/signal.c $(srcdir)/ruby.h config.h $(srcdir)/defines.h $(srcdir)/intern.h $(srcdir)/rubysig.h
|
|
|
|
sprintf.obj: $(srcdir)/sprintf.c $(srcdir)/ruby.h config.h $(srcdir)/defines.h $(srcdir)/intern.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)/re.h $(srcdir)/regex.h
|
|
|
|
struct.obj: $(srcdir)/struct.c $(srcdir)/ruby.h config.h $(srcdir)/defines.h $(srcdir)/intern.h
|
|
|
|
time.obj: $(srcdir)/time.c $(srcdir)/ruby.h config.h $(srcdir)/defines.h $(srcdir)/intern.h
|
|
|
|
util.obj: $(srcdir)/util.c $(srcdir)/ruby.h config.h $(srcdir)/defines.h $(srcdir)/intern.h $(srcdir)/util.h
|
|
|
|
variable.obj: $(srcdir)/variable.c $(srcdir)/ruby.h config.h $(srcdir)/defines.h $(srcdir)/intern.h $(srcdir)/env.h $(srcdir)/node.h $(srcdir)/st.h
|
|
|
|
version.obj: $(srcdir)/version.c $(srcdir)/ruby.h config.h $(srcdir)/defines.h $(srcdir)/intern.h $(srcdir)/version.h
|
2001-06-09 03:41:44 -04:00
|
|
|
$(OBJS) $(MAINOBJ) $(WINMAINOBJ): $(srcdir)/win32/win32.h
|