2003-08-16 10:58:34 -04:00
|
|
|
# -*- makefile -*-
|
|
|
|
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
SHELL = $(COMSPEC)
|
2004-03-23 00:32:01 -05:00
|
|
|
MKFILES = Makefile
|
2004-03-21 18:21:31 -05:00
|
|
|
NULL = nul
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -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
|
|
|
|
!if !defined(icondirs) && defined(ICONDIRS)
|
|
|
|
icondirs=$(ICONDIRS)
|
|
|
|
!endif
|
|
|
|
!if defined(icondirs)
|
|
|
|
icondirs=$(icondirs:\=/)
|
|
|
|
iconinc=-I$(icondirs: = -I)
|
|
|
|
!endif
|
|
|
|
###############
|
|
|
|
|
2004-03-21 18:21:31 -05:00
|
|
|
VPATH = $(srcdir);$(srcdir)/missing;$(srcdir)/wince
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
.SUFFIXES: .y .def .lib
|
|
|
|
|
|
|
|
!if !defined(CC)
|
|
|
|
CC = cl
|
|
|
|
!endif
|
2006-09-26 02:34:15 -04:00
|
|
|
!if !defined(CPP) || "$(CPP)" == "cl"
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
CPP = $(CC) -E
|
|
|
|
!endif
|
|
|
|
!if !defined(YACC)
|
2004-09-17 07:38:49 -04:00
|
|
|
YACC = bison
|
|
|
|
YFLAGS = -o y.tab.c
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
!endif
|
|
|
|
AR = lib -nologo
|
|
|
|
PURIFY =
|
|
|
|
AUTOCONF = autoconf
|
2004-03-21 18:21:31 -05:00
|
|
|
RM = $(srcdir)\win32\rm.bat
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
|
|
|
|
!if !defined(PROCESSOR_ARCHITECTURE)
|
|
|
|
PROCESSOR_ARCHITECTURE = x86
|
|
|
|
!endif
|
|
|
|
MACHINE = $(PROCESSOR_ARCHITECTURE)
|
|
|
|
!if "$(PROCESSOR_ARCHITECTURE)" == "x86"
|
|
|
|
!if !defined(PROCESSOR_LEVEL)
|
|
|
|
PROCESSOR_LEVEL = 5
|
|
|
|
!endif
|
|
|
|
!if 6 < $(PROCESSOR_LEVEL)
|
|
|
|
PROCESSOR_LEVEL = 6
|
|
|
|
!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 = -w -O2b2xg-
|
|
|
|
!endif
|
2004-03-21 18:21:31 -05:00
|
|
|
!if !defined(OS) || !defined(RT)
|
|
|
|
OS = mswince
|
|
|
|
RT = $(OS)
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
!endif
|
|
|
|
|
|
|
|
!ifndef RUBY_SO_NAME
|
|
|
|
RUBY_SO_NAME = $(RT)-$(RUBY_INSTALL_NAME)$(MAJOR)$(MINOR)
|
|
|
|
!endif
|
2003-09-30 21:17:41 -04:00
|
|
|
!ifndef RUBY_PLATFORM
|
|
|
|
RUBY_PLATFORM = $(ARCH)-$(OS)
|
|
|
|
!endif
|
|
|
|
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
!if !defined(prefix)
|
|
|
|
prefix = /usr
|
|
|
|
!endif
|
2003-08-16 10:58:34 -04:00
|
|
|
!if !defined(exec_prefix)
|
|
|
|
exec_prefix = $(prefix)
|
|
|
|
!endif
|
|
|
|
!if !defined(libdir)
|
|
|
|
libdir = $(exec_prefix)/lib
|
|
|
|
!endif
|
2004-03-21 18:21:31 -05:00
|
|
|
!if !defined(datadir)
|
|
|
|
datadir = $(prefix)/share
|
|
|
|
!endif
|
|
|
|
!ifndef EXTOUT
|
|
|
|
EXTOUT = .ext
|
|
|
|
!endif
|
|
|
|
!ifndef RIDATADIR
|
|
|
|
RIDATADIR = $(DESTDIR)$(datadir)/ri/$(MAJOR).$(MINOR)/system
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
!endif
|
2004-03-21 18:21:31 -05:00
|
|
|
!ifndef RDOCTARGET
|
|
|
|
RDOCTARGET = install-doc
|
|
|
|
!endif
|
|
|
|
|
|
|
|
OUTFLAG = -Fe
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
!if !defined(CFLAGS)
|
|
|
|
CFLAGS = $(DEBUGFLAGS) $(OPTFLAGS) $(PROCESSOR_FLAG)
|
|
|
|
!endif
|
|
|
|
!if !defined(CPPFLAGS)
|
2005-07-25 08:31:21 -04:00
|
|
|
CPPFLAGS = $(CECPUDEF) -DUNDER_CE -D_WIN32_WCE=$(SUBSYSVERSION:.=) \
|
2004-03-21 18:21:31 -05:00
|
|
|
-DFILENAME_MAX=MAX_PATH -DTLS_OUT_OF_INDEXES=0xFFFFFFFF \
|
|
|
|
-DBUFSIZ=512 -D_UNICODE -DUNICODE
|
|
|
|
!endif
|
2005-04-20 17:45:43 -04:00
|
|
|
!if !defined(CXXFLAGS)
|
|
|
|
CXXFLAGS = $(CFLAGS)
|
|
|
|
!endif
|
2004-03-21 18:21:31 -05:00
|
|
|
!if !defined(LDFLAGS)
|
|
|
|
LDFLAGS = -link -incremental:yes -pdb:none -machine:$(MACHINE) -subsystem:$(SUBSYSTEM)
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
!endif
|
|
|
|
!if !defined(XLDFLAGS)
|
2004-03-21 18:21:31 -05:00
|
|
|
XLDFLAGS = -stack:$(STACK) -subsystem:$(SUBSYSTEM)
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
!endif
|
|
|
|
!if !defined(RFLAGS)
|
|
|
|
RFLAGS = -r
|
|
|
|
!endif
|
|
|
|
!if !defined(EXTLIBS)
|
|
|
|
EXTLIBS =
|
|
|
|
!endif
|
2004-08-18 20:34:54 -04:00
|
|
|
LIBS = coredll.lib ceshell.lib winsock.lib $(EXTLIBS)
|
2003-06-05 05:38:01 -04:00
|
|
|
MISSING = acosh.obj crypt.obj dup2.obj erf.obj hypot.obj \
|
2004-03-21 18:21:31 -05:00
|
|
|
isinf.obj isnan.obj strftime.obj win32.obj \
|
|
|
|
assert.obj direct.obj errno.obj io_wce.obj process_wce.obj \
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
signal_wce.obj stdio.obj stdlib.obj string_wce.obj \
|
2004-03-21 18:21:31 -05:00
|
|
|
time_wce.obj wince.obj winsock2.obj \
|
|
|
|
stat.obj timeb.obj utime.obj
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
|
|
|
|
ARFLAGS = -machine:$(MACHINE) -out:
|
|
|
|
CC = $(CC) -nologo
|
|
|
|
LD = $(CC)
|
|
|
|
LDSHARED = $(LD) -LD
|
2005-07-25 08:31:21 -04:00
|
|
|
XCFLAGS = -DRUBY_EXPORT -I. -I$(srcdir) -I$(srcdir)/missing -I$(srcdir)/wince
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
DLDFLAGS = $(LDFLAGS) -dll
|
|
|
|
SOLIBS =
|
|
|
|
|
|
|
|
LIBRUBY_LDSHARED = $(LDSHARED)
|
|
|
|
LIBRUBY_DLDFLAGS = $(EXTLDFLAGS) -def:$(RUBYDEF)
|
|
|
|
|
|
|
|
EXEEXT = .exe
|
|
|
|
PROGRAM=$(RUBY_INSTALL_NAME)$(EXEEXT)
|
|
|
|
RUBYDEF = $(RUBY_SO_NAME).def
|
2004-03-21 18:21:31 -05:00
|
|
|
MINIRUBY = $(RUBY) -I$(MAKEDIR) -rfake
|
|
|
|
RUNRUBY = $(MINIRUBY) "$(srcdir)/runruby.rb" --extout="$(EXTOUT)" --
|
|
|
|
!ifndef RUBY
|
|
|
|
RUBY = ruby
|
|
|
|
!endif
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
|
|
|
|
!if !defined(STACK)
|
|
|
|
STACK = 0x200000,0x10000
|
|
|
|
!endif
|
|
|
|
ORGLIBPATH = $(LIB)
|
|
|
|
|
|
|
|
#### End of system configuration section. ####
|
|
|
|
|
|
|
|
LIBRUBY_A = $(RUBY_SO_NAME)-static.lib
|
|
|
|
LIBRUBY_SO = $(RUBY_SO_NAME).dll
|
|
|
|
LIBRUBY = $(RUBY_SO_NAME).lib
|
|
|
|
LIBRUBYARG = $(LIBRUBY)
|
|
|
|
|
2004-03-21 18:21:31 -05:00
|
|
|
PREP = fake.rb
|
|
|
|
|
|
|
|
!if !defined(EXTSTATIC)
|
|
|
|
EXTSTATIC =
|
|
|
|
!endif
|
|
|
|
|
|
|
|
OBJEXT = obj
|
|
|
|
|
2006-09-19 20:54:45 -04:00
|
|
|
INSTALLED_LIST= .installed.list
|
|
|
|
|
2004-03-21 18:21:31 -05:00
|
|
|
WINMAINOBJ = wincemain.$(OBJEXT)
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
|
2004-03-23 00:32:01 -05:00
|
|
|
all: $(srcdir)/wince/Makefile.sub $(srcdir)/common.mk
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
ruby: $(PROGRAM)
|
|
|
|
|
2005-03-03 04:38:40 -05:00
|
|
|
CONFIG_H = ./.config.h.time
|
|
|
|
|
|
|
|
config: config.status
|
|
|
|
|
|
|
|
config.status: $(CONFIG_H)
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
|
|
|
|
BANG = !
|
|
|
|
|
|
|
|
!if exist(config.h)
|
|
|
|
!include config.h
|
|
|
|
!endif
|
|
|
|
|
2005-03-04 22:52:21 -05:00
|
|
|
$(CONFIG_H): $(MKFILES) $(srcdir)/wince/Makefile.sub
|
2005-03-03 04:38:40 -05:00
|
|
|
@echo Creating config.h
|
|
|
|
@$(srcdir:/=\)\win32\ifchange.bat config.h <<
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
#define STDC_HEADERS 1
|
|
|
|
#define HAVE_SYS_TYPES_H 1
|
|
|
|
#define HAVE_SYS_STAT_H 1
|
|
|
|
#define HAVE_STDLIB_H 1
|
|
|
|
#define HAVE_STRING_H 1
|
|
|
|
#define HAVE_MEMORY_H 1
|
|
|
|
#define HAVE_OFF_T 1
|
|
|
|
#define SIZEOF_INT 4
|
|
|
|
#define SIZEOF_SHORT 2
|
|
|
|
#define SIZEOF_LONG 4
|
|
|
|
#define SIZEOF_LONG_LONG 0
|
|
|
|
#define SIZEOF___INT64 8
|
|
|
|
#define SIZEOF_OFF_T 4
|
|
|
|
#define SIZEOF_VOIDP 4
|
|
|
|
#define SIZEOF_FLOAT 4
|
|
|
|
#define SIZEOF_DOUBLE 8
|
2004-04-06 21:43:27 -04:00
|
|
|
#define SIZEOF_TIME_T 4
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
#define HAVE_PROTOTYPES 1
|
|
|
|
#define TOKEN_PASTE(x,y) x##y
|
|
|
|
#define HAVE_STDARG_PROTOTYPES 1
|
2005-08-03 11:27:13 -04:00
|
|
|
!if $(MSC_VER) > 1100
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
#define NORETURN(x) __declspec(noreturn) x
|
2005-08-03 11:27:13 -04:00
|
|
|
!endif
|
|
|
|
!if $(MSC_VER) >= 1300
|
2005-04-29 22:59:44 -04:00
|
|
|
#define DEPRECATED(x) __declspec(deprecated) x
|
|
|
|
#define NOINLINE(x) __declspec(noinline) x
|
2005-08-03 11:27:13 -04:00
|
|
|
!endif
|
2005-10-25 13:00:03 -04:00
|
|
|
#define RUBY_EXTERN extern __declspec(dllimport)
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
#define HAVE_DECL_SYS_NERR 1
|
|
|
|
#define HAVE_FCNTL_H 1
|
|
|
|
#define HAVE_SYS_UTIME_H 1
|
2004-02-14 09:59:19 -05:00
|
|
|
#define HAVE_FLOAT_H 1
|
2005-05-16 09:22:09 -04:00
|
|
|
#define rb_uid_t int
|
|
|
|
#define rb_gid_t int
|
|
|
|
#define rb_pid_t int
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
#define HAVE_STRUCT_STAT_ST_RDEV 1
|
|
|
|
#define HAVE_ST_RDEV 1
|
|
|
|
#define GETGROUPS_T int
|
|
|
|
#define RETSIGTYPE void
|
|
|
|
#define HAVE_MEMCMP 1
|
|
|
|
#define HAVE_MEMMOVE 1
|
|
|
|
#define HAVE_MKDIR 1
|
|
|
|
#define HAVE_STRCASECMP 1
|
|
|
|
#define HAVE_STRNCASECMP 1
|
|
|
|
#define HAVE_STRERROR 1
|
|
|
|
#define HAVE_STRFTIME 1
|
|
|
|
#define HAVE_STRCHR 1
|
|
|
|
#define HAVE_STRSTR 1
|
|
|
|
#define HAVE_STRTOD 1
|
|
|
|
#define HAVE_STRTOL 1
|
|
|
|
#define HAVE_STRTOUL 1
|
|
|
|
#define HAVE_FLOCK 1
|
2005-08-02 21:21:20 -04:00
|
|
|
#define HAVE_SNPRINTF 1
|
|
|
|
#define HAVE_VSNPRINTF 1
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
#define HAVE_FINITE 1
|
2004-02-14 09:59:19 -05:00
|
|
|
#define HAVE_HYPOT 1
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
#define HAVE_FMOD 1
|
|
|
|
#define HAVE_FREXP 1
|
|
|
|
#define HAVE_MODF 1
|
|
|
|
#define HAVE_WAITPID 1
|
2004-02-14 09:59:19 -05:00
|
|
|
#define HAVE_GETCWD 1
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
#define HAVE_CHSIZE 0
|
|
|
|
#define HAVE_TIMES 1
|
2004-09-06 23:52:15 -04:00
|
|
|
#define HAVE_FCNTL 1
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
#define HAVE_TELLDIR 1
|
|
|
|
#define HAVE_SEEKDIR 1
|
|
|
|
#define HAVE_MKTIME 1
|
|
|
|
#define HAVE_COSH 1
|
|
|
|
#define HAVE_SINH 1
|
|
|
|
#define HAVE_TANH 1
|
|
|
|
#define HAVE_TZNAME 1
|
|
|
|
#define HAVE_DAYLIGHT 1
|
|
|
|
#define SETPGRP_VOID 1
|
|
|
|
#define RSHIFT(x,y) ((x)>>(int)y)
|
2004-02-14 09:59:19 -05:00
|
|
|
#define inline __inline
|
|
|
|
#define NEED_IO_SEEK_BETWEEN_RW 1
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
#define DEFAULT_KCODE KCODE_NONE
|
|
|
|
#define DLEXT ".so"
|
|
|
|
#define RUBY_LIB "/lib/ruby/$(MAJOR).$(MINOR)"
|
|
|
|
#define RUBY_SITE_LIB "/lib/ruby/site_ruby"
|
|
|
|
#define RUBY_SITE_LIB2 "/lib/ruby/site_ruby/$(MAJOR).$(MINOR)"
|
|
|
|
#define RUBY_PLATFORM "$(ARCH)-$(OS)"
|
|
|
|
#define RUBY_ARCHLIB "/lib/ruby/$(MAJOR).$(MINOR)/$(ARCH)-$(OS)"
|
|
|
|
#define RUBY_SITE_ARCHLIB "/lib/ruby/site_ruby/$(MAJOR).$(MINOR)/$(ARCH)-$(RT)"
|
|
|
|
#define LIBRUBY_SO "$(LIBRUBY_SO)"
|
|
|
|
#if 0
|
|
|
|
$(BANG)if "$(RUBY_SO_NAME)"!="$$(RUBY_SO_NAME)" || "$(ARCH)-$(OS)"!="$$(ARCH)-$$(OS)"
|
|
|
|
config.h: nul
|
|
|
|
$(BANG)endif
|
|
|
|
#endif
|
|
|
|
#define GC_MALLOC_LIMIT 4000000
|
|
|
|
#define stricmp _stricmp
|
|
|
|
#define fopen wce_fopen
|
|
|
|
#define open _open
|
|
|
|
#define read _read
|
|
|
|
#define write _write
|
|
|
|
#define lseek _lseek
|
2003-06-01 00:44:45 -04:00
|
|
|
|
|
|
|
#if _WIN32_WCE < 300
|
|
|
|
#define isascii(c) ( (c>=0x00&&c<=0x7f)?1:0 )
|
|
|
|
#define isspace(c) ( ((c>=0x09&&c<=0x0d)||c==0x20)?1:0 )
|
2003-10-31 08:36:19 -05:00
|
|
|
#define isdigit(c) ( (c>=0x30&&c<=0x39)?1:0 )
|
2003-06-01 00:44:45 -04:00
|
|
|
#define isupper(c) ( (c>='A'&&c<='Z')?1:0 )
|
|
|
|
#define isalpha(c) ( ((c>='A'&&c<='Z')||(c>='a'&&c<='z'))?1:0 )
|
|
|
|
#define isprint(c) ( (c>=0x20&&c<=0x7e)?1:0 )
|
|
|
|
#define isalnum(c) ( (isalpha(c)||isdigit(c))?1:0 )
|
|
|
|
#define iscntrl(c) ( ((c>=0x00&&c<=0x1f)||c==0x7f)?1:0 )
|
|
|
|
#define islower(c) ( (c>='a'&&c<='z')?1:0 )
|
|
|
|
#define ispunct(c) ( !(isalnum(c)||isspace(c))?1:0 )
|
|
|
|
#define isxdigit(c) ( ((c>=0&&c<=9)||(c>='A'&&c<='F')||(c>='a'&&c<='f'))?1:0 )
|
|
|
|
#endif
|
2005-03-03 04:38:40 -05:00
|
|
|
<<
|
|
|
|
@exit > $(@:/=\)
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
|
2004-03-23 00:32:01 -05:00
|
|
|
config.status: $(MKFILES) $(srcdir)/wince/Makefile.sub $(srcdir)/common.mk
|
2005-03-03 04:38:40 -05:00
|
|
|
@echo Creating $@
|
|
|
|
@exit <<$@
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
# Generated automatically by Makefile.sub.
|
|
|
|
s,@SHELL@,$$(COMSPEC),;t t
|
2005-04-20 11:08:36 -04:00
|
|
|
s,@BUILD_FILE_SEPARATOR@,\,;t t
|
2004-03-23 00:32:01 -05:00
|
|
|
s,@PATH_SEPARATOR@,;,;t t
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
s,@CFLAGS@,$(CFLAGS),;t t
|
|
|
|
s,@CPPFLAGS@,$(CPPFLAGS),;t t
|
|
|
|
s,@CXXFLAGS@,$(CXXFLAGS),;t t
|
|
|
|
s,@FFLAGS@,$(FFLAGS),;t t
|
|
|
|
s,@LDFLAGS@,,;t t
|
|
|
|
s,@LIBS@,$(LIBS),;t t
|
|
|
|
s,@exec_prefix@,$${prefix},;t t
|
2004-03-21 18:21:31 -05:00
|
|
|
s,@prefix@,$(prefix),;t t
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04: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@,$(CC),;t t
|
|
|
|
s,@CPP@,$(CPP),;t t
|
2005-04-20 17:45:43 -04:00
|
|
|
s,@CXX@,$$(CC),;t t
|
|
|
|
s,@LD@,$$(CC),;t t
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
s,@YACC@,$(YACC),;t t
|
|
|
|
s,@RANLIB@,,;t t
|
|
|
|
s,@AR@,$(AR),;t t
|
|
|
|
s,@ARFLAGS@,$(ARFLAGS),;t t
|
|
|
|
s,@LN_S@,$(LN_S),;t t
|
|
|
|
s,@SET_MAKE@,$(SET_MAKE),;t t
|
2005-04-20 11:08:36 -04:00
|
|
|
s,@CP@,copy > nul,;t t
|
|
|
|
s,@INSTALL@,copy > nul,;t t
|
2005-05-13 10:44:59 -04:00
|
|
|
s,@INSTALL_PROG@,$$(INSTALL),;t t
|
|
|
|
s,@INSTALL_DATA@,$$(INSTALL),;t t
|
2003-06-05 05:38:01 -04:00
|
|
|
s,@LIBOBJS@, acosh.obj crypt.obj erf.obj win32.obj isinf.obj isnan.obj,;t t
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
s,@ALLOCA@,$(ALLOCA),;t t
|
|
|
|
s,@DEFAULT_KCODE@,$(DEFAULT_KCODE),;t t
|
|
|
|
s,@EXEEXT@,.exe,;t t
|
2004-03-21 18:21:31 -05:00
|
|
|
s,@OBJEXT@,$(OBJEXT),;t t
|
2003-11-30 19:30:37 -05:00
|
|
|
s,@XCFLAGS@,$(XCFLAGS),;t t
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
s,@XLDFLAGS@,$(XLDFLAGS),;t t
|
2004-03-21 18:21:31 -05:00
|
|
|
s,@DLDFLAGS@,$(DLDFLAGS) $$(LIBPATH) -def:$$(DEFFILE) -implib:$$(*F:.so=)-$$(arch).lib -pdb:$$(*F:.so=)-$$(arch).pdb,;t t
|
2003-11-30 19:30:37 -05:00
|
|
|
s,@ARCH_FLAG@,$(ARCH_FLAG),;t t
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
s,@STATIC@,$(STATIC),;t t
|
2004-03-21 18:21:31 -05:00
|
|
|
s,@CCDLFLAGS@,,;t t
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
s,@LDSHARED@,$(LDSHARED),;t t
|
|
|
|
s,@DLEXT@,so,;t t
|
|
|
|
s,@LIBEXT@,lib,;t t
|
|
|
|
s,@STRIP@,$(STRIP),;t t
|
|
|
|
s,@EXTSTATIC@,$(EXTSTATIC),;t t
|
|
|
|
s,@setup@,Setup,;t t
|
|
|
|
s,@MINIRUBY@,$(MINIRUBY),;t t
|
2005-03-03 04:38:40 -05:00
|
|
|
s,@PREP@,miniruby$(EXEEXT),;t t
|
|
|
|
s,@RUNRUBY@,$(RUNRUBY),;t t
|
|
|
|
s,@EXTOUT@,$(EXTOUT),;t t
|
|
|
|
s,@ARCHFILE@,,;t t
|
|
|
|
s,@RDOCTARGET@,,;t t
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
s,@LIBRUBY_LDSHARED@,$(LIBRUBY_LDSHARED),;t t
|
|
|
|
s,@LIBRUBY_DLDFLAGS@,$(LIBRUBY_DLDFLAGS),;t t
|
|
|
|
s,@RUBY_INSTALL_NAME@,$(RUBY_INSTALL_NAME),;t t
|
|
|
|
s,@rubyw_install_name@,$(RUBYW_INSTALL_NAME),;t t
|
|
|
|
s,@RUBYW_INSTALL_NAME@,$(RUBYW_INSTALL_NAME),;t t
|
|
|
|
s,@RUBY_SO_NAME@,$(RUBY_SO_NAME),;t t
|
|
|
|
s,@LIBRUBY_A@,$$(RUBY_SO_NAME)-static.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@,$$(LIBRUBYARG_SHARED),;t t
|
|
|
|
s,@LIBRUBYARG_STATIC@,$$(LIBRUBY_A),;t t
|
|
|
|
s,@LIBRUBYARG_SHARED@,$$(LIBRUBY),;t t
|
|
|
|
s,@SOLIBS@,$(SOLIBS),;t t
|
|
|
|
s,@DLDLIBS@,$(DLDLIBS),;t t
|
|
|
|
s,@ENABLE_SHARED@,yes,;t t
|
2004-03-21 18:21:31 -05:00
|
|
|
s,@OUTFLAG@,$(OUTFLAG),;t t
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
s,@CPPOUTFILE@,-P,;t t
|
2004-01-10 09:01:50 -05:00
|
|
|
s,@LIBPATHFLAG@, -libpath:"%s",;t t
|
2003-10-30 22:58:21 -05:00
|
|
|
s,@RPATHFLAG@,,;t t
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
s,@LIBARG@,%s.lib,;t t
|
|
|
|
s,@LINK_SO@,$$(LDSHARED) -Fe$$(@) $$(OBJS) $$(LIBS) $$(LOCAL_LIBS) $$(DLDFLAGS),;t t
|
2006-05-25 19:44:08 -04:00
|
|
|
s,@COMPILE_C@,$$(CC) $$(INCFLAGS) $$(CFLAGS) $$(CPPFLAGS) -c -Tc$$(<:\=/),;t t
|
|
|
|
s,@COMPILE_CXX@,$$(CXX) $$(INCFLAGS) $$(CXXFLAGS) $$(CPPFLAGS) -c -Tp$$(<:\=/),;t t
|
2005-02-22 09:52:59 -05:00
|
|
|
s,@COMPILE_RULES@,{$$(srcdir)}.%s{}.%s: {$$(topdir)}.%s{}.%s: {$$(hdrdir)}.%s{}.%s: .%s.%s:,;t t
|
|
|
|
s,@RULE_SUBST@,{.;$$(srcdir);$$(topdir);$$(hdrdir)}%s,;t t
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
s,@TRY_LINK@,$$(CC) -Feconftest $$(INCFLAGS) -I$$(hdrdir) $$(CPPFLAGS) $$(CFLAGS) $$(src) $$(LOCAL_LIBS) $$(LIBS) -link $$(LDFLAGS) $$(LIBPATH) $$(XLDFLAGS),;t t
|
2003-09-30 21:17:41 -04:00
|
|
|
s,@COMMON_LIBS@,coredll winsock,;t t
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
s,@COMMON_MACROS@,WIN32_LEAN_AND_MEAN;t t
|
2003-09-30 21:17:41 -04:00
|
|
|
s,@COMMON_HEADERS@,winsock.h windows.h,;t t
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
s,@EXPORT_PREFIX@, ,;t t
|
|
|
|
s,@arch@,$(ARCH)-$(OS),;t t
|
|
|
|
s,@sitearch@,$(ARCH)-$(RT),;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
|
|
|
|
<<KEEP
|
|
|
|
|
|
|
|
$(PROGRAM): $(MAINOBJ) $(WINMAINOBJ) $(LIBRUBY_SO) $*.res
|
|
|
|
$(PURIFY) $(CC) $(MAINOBJ) $(WINMAINOBJ) $*.res \
|
2003-05-24 05:17:35 -04:00
|
|
|
-Fe$@ $(LIBRUBYARG) $(LDFLAGS) $(XLDFLAGS)
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
|
2004-03-21 18:21:31 -05:00
|
|
|
$(LIBRUBY_A): $(OBJS) $(DMYEXT)
|
|
|
|
$(AR) $(ARFLAGS)$@ $(OBJS) $(DMYEXT)
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
|
|
|
|
$(LIBRUBY): $(RUBYDEF)
|
|
|
|
$(AR) $(ARFLAGS)$@ -def:$(RUBYDEF)
|
|
|
|
|
2004-03-23 00:32:01 -05:00
|
|
|
$(LIBRUBY_SO): $(LIBRUBY_A) $(DLDOBJS) $(RUBYDEF) $(RUBY_SO_NAME).res
|
2004-03-21 18:21:31 -05:00
|
|
|
@echo. $(DLDOBJS)
|
2004-03-23 00:32:01 -05:00
|
|
|
$(LDSHARED) $(MAINOBJ) $(DLDOBJS) $(LIBRUBY_A) \
|
|
|
|
$(RUBY_SO_NAME).res $(LIBS) -Fe$@ $(LDFLAGS) \
|
|
|
|
$(LIBRUBY_DLDFLAGS)
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
|
2004-03-21 18:21:31 -05:00
|
|
|
$(RUBYDEF): $(LIBRUBY_A) $(PREP)
|
|
|
|
$(MINIRUBY) $(srcdir)/win32/mkexports.rb \
|
|
|
|
-output=$@ -arch=$(ARCH) $(LIBRUBY_A)
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
|
|
|
|
{$(srcdir)/wince}.def.lib:
|
|
|
|
$(AR) $(ARFLAGS)$@ -def:$<
|
|
|
|
|
2004-03-21 18:21:31 -05:00
|
|
|
clean-local::
|
|
|
|
@$(RM) ext\extinit.c ext\extinit.$(OBJEXT) ext\vc*.pdb
|
|
|
|
@$(RM) $(RUBY_INSTALL_NAME).res $(RUBYW_INSTALL_NAME).res $(RUBY_SO_NAME).res
|
|
|
|
|
|
|
|
distclean-local::
|
2004-04-21 21:08:23 -04:00
|
|
|
@$(RM) ext\config.cache $(RBCONFIG:/=\)
|
2004-03-21 18:21:31 -05:00
|
|
|
@$(RM) *.map *.pdb *.ilk *.exp $(RUBYDEF)
|
|
|
|
@$(RM) $(RUBY_INSTALL_NAME).rc $(RUBYW_INSTALL_NAME).rc $(RUBY_SO_NAME).rc
|
|
|
|
|
|
|
|
$(RUBY_INSTALL_NAME).rc $(RUBYW_INSTALL_NAME).rc $(RUBY_SO_NAME).rc: $(RBCONFIG)
|
|
|
|
@$(MINIRUBY) $(srcdir)/win32/resource.rb \
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
-ruby_name=$(RUBY_INSTALL_NAME) \
|
|
|
|
-rubyw_name=$(RUBYW_INSTALL_NAME) \
|
|
|
|
-so_name=$(RUBY_SO_NAME) \
|
2003-06-01 00:44:45 -04:00
|
|
|
-wce_ver=$(SUBSYSVERSION) \
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
. $(icondirs) $(srcdir)/wince
|
|
|
|
|
2004-03-21 18:21:31 -05:00
|
|
|
fake.rb: $(MKFILES)
|
|
|
|
@echo Creating <<$@
|
|
|
|
class Object
|
|
|
|
CROSS_COMPILING = RUBY_PLATFORM
|
|
|
|
remove_const :RUBY_PLATFORM
|
|
|
|
remove_const :RUBY_VERSION
|
|
|
|
RUBY_PLATFORM = "$(ARCH)"
|
|
|
|
RUBY_VERSION = "$(MAJOR).$(MINOR).$(TEENY)"
|
|
|
|
end
|
|
|
|
class File
|
|
|
|
remove_const :ALT_SEPARATOR
|
|
|
|
ALT_SEPARATOR = "\\"
|
|
|
|
end
|
|
|
|
<<KEEP
|
|
|
|
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
{$(srcdir)/missing}.c.obj:
|
2004-03-21 18:21:31 -05:00
|
|
|
$(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -c -Tc$(<:\=/)
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
{$(srcdir)/win32}.c.obj:
|
2004-03-21 18:21:31 -05:00
|
|
|
$(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -c -Tc$(<:\=/)
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
{$(srcdir)/wince}.c.obj:
|
2004-03-21 18:21:31 -05:00
|
|
|
$(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -c -Tc$(<:\=/)
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
{$(srcdir)/wince/sys}.c.obj:
|
2004-03-21 18:21:31 -05:00
|
|
|
$(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -c -Tc$(<:\=/)
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
{$(srcdir)}.c.obj:
|
2004-03-21 18:21:31 -05:00
|
|
|
$(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -c -Tc$(<:\=/)
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
.c.obj:
|
2004-03-21 18:21:31 -05:00
|
|
|
$(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -c -Tc$(<:\=/)
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
|
|
|
|
.rc.res:
|
|
|
|
$(RC) -I. -I$(<D) $(iconinc) -I$(srcdir)/win32 $(RFLAGS) -fo$@ $(<:\=/)
|
|
|
|
|
|
|
|
{$(srcdir)}.y.c:
|
|
|
|
$(YACC) $(YFLAGS) $(<:\=/)
|
2003-10-30 11:40:29 -05:00
|
|
|
sed -e "s!^ *extern char \*getenv();!/* & */!;s/^\(#.*\)y\.tab/\1parse/" y.tab.c > $@
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
@del y.tab.c
|
|
|
|
|
2004-03-21 18:21:31 -05:00
|
|
|
!include $(srcdir)/common.mk
|
|
|
|
|
|
|
|
$(OBJS): {$(srcdir)}win32/win32.h
|
|
|
|
|
|
|
|
dir.$(OBJEXT): {$(srcdir)}win32/dir.h
|
2004-04-06 21:43:27 -04:00
|
|
|
|
|
|
|
ext/extinit.obj: ext/extinit.c $(SETUP)
|
|
|
|
$(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -Fo$@ -c ext/extinit.c
|