2
::: Don't set environment variable in batch file other than autoexec.bat
3
::: to avoid "Out of environment space" problem on Windows 95/98.
4
::: set TMPMAKE=~tmp~.mak
7
echo>> ~tmp~.mak conf = %0
8
echo>> ~tmp~.mak $(conf:\=/): nul
9
echo>> ~tmp~.mak @del ~tmp~.mak
10
echo>> ~tmp~.mak @-$(MAKE) -l$(MAKEFLAGS) -f $(@D)/setup.mak \
12
if "%1" == "" goto :end
13
if "%1" == "--prefix" goto :prefix
14
if "%1" == "--srcdir" goto :srcdir
15
if "%1" == "srcdir" goto :srcdir
16
if "%1" == "--target" goto :target
17
if "%1" == "target" goto :target
18
if "%1" == "--with-static-linked-ext" goto :extstatic
19
if "%1" == "--with-winsock2" goto :winsock2
20
if "%1" == "--program-suffix" goto :suffix
21
if "%1" == "--program-name" goto :installname
22
if "%1" == "--install-name" goto :installname
23
if "%1" == "--so-name" goto :soname
24
if "%1" == "--enable-install-doc" goto :enable-rdoc
25
if "%1" == "--disable-install-doc" goto :disable-rdoc
26
if "%1" == "--extout" goto :extout
27
if "%1" == "-h" goto :help
28
if "%1" == "--help" goto :help
29
echo>> ~tmp~.mak "%1" \
33
echo>> ~tmp~.mak "srcdir=%2" \
38
echo>> ~tmp~.mak "prefix=%2" \
43
echo>> ~tmp~.mak "RUBY_SUFFIX=%2" \
48
echo>> ~tmp~.mak "RUBY_INSTALL_NAME=%2" \
53
echo>> ~tmp~.mak "RUBY_SO_NAME=%2" \
58
echo>> ~tmp~.mak "%2" \
63
echo>> ~tmp~.mak "EXTSTATIC=static" \
67
echo>> ~tmp~.mak "USE_WINSOCK2=1" \
71
echo>> ~tmp~.mak "RDOCTARGET=install-doc" \
75
echo>> ~tmp~.mak "RDOCTARGET=install-nodoc" \
79
echo>> ~tmp~.mak "EXTOUT=%2" \
85
echo --help display this help
86
echo --srcdir=DIR find the sources in DIR [configure dir or `..']
87
echo Installation directories:
88
echo --prefix=PREFIX install files in PREFIX (ignored currently)
90
echo --target=TARGET configure for TARGET [i386-mswin32]
91
echo Optional Package:
92
echo --with-winsock2 link winsock2
93
echo --with-static-linked-ext link external modules statically
94
echo --enable-install-doc install rdoc indexes during install
98
echo>> ~tmp~.mak WIN32DIR=$(@D)