2 ::: Don't set environment variable in batch file other than autoexec.bat
\r
3 ::: to avoid "Out of environment space" problem on Windows 95/98.
\r
4 ::: set TMPMAKE=~tmp~.mak
\r
7 echo>> ~tmp~.mak conf = %0
\r
8 echo>> ~tmp~.mak $(conf:\=/): nul
\r
9 echo>> ~tmp~.mak @del ~tmp~.mak
\r
10 echo>> ~tmp~.mak @-$(MAKE) -l$(MAKEFLAGS) -f $(@D)/setup.mak \
\r
12 if "%1" == "" goto :end
\r
13 if "%1" == "--prefix" goto :prefix
\r
14 if "%1" == "--srcdir" goto :srcdir
\r
15 if "%1" == "srcdir" goto :srcdir
\r
16 if "%1" == "--target" goto :target
\r
17 if "%1" == "target" goto :target
\r
18 if "%1" == "--with-static-linked-ext" goto :extstatic
\r
19 if "%1" == "--program-suffix" goto :suffix
\r
20 if "%1" == "--program-name" goto :progname
\r
21 if "%1" == "--enable-install-doc" goto :enable-rdoc
\r
22 if "%1" == "--disable-install-doc" goto :disable-rdoc
\r
23 if "%1" == "--extout" goto :extout
\r
24 if "%1" == "--with-baseruby" goto :baseruby
\r
25 if "%1" == "-h" goto :help
\r
26 if "%1" == "--help" goto :help
\r
27 if "%1" == "CC" goto :define
\r
28 if "%1" == "EMBEDDED_TOOLS_DIR" goto :define
\r
29 if "%1" == "CE_TOOLS_DIR" goto :define
\r
30 if "%1" == "EMBEDDED_TOOLS4_DIR" goto :define
\r
31 if "%1" == "CE_TOOLS4_DIR" goto :define
\r
32 echo>> ~tmp~.mak "%1" \
\r
36 echo>> ~tmp~.mak "srcdir=%2" \
\r
41 echo>> ~tmp~.mak "prefix=%2" \
\r
46 echo>> ~tmp~.mak "RUBY_SUFFIX=%2" \
\r
51 echo>> ~tmp~.mak "RUBY_INSTALL_NAME=%2" \
\r
56 echo>> ~tmp~.mak "RUBY_SO_NAME=%2" \
\r
61 echo>> ~tmp~.mak "%1=%2" \
\r
66 echo>> ~tmp~.mak "%2" \
\r
71 echo>> ~tmp~.mak "EXTSTATIC=static" \
\r
75 echo>> ~tmp~.mak "RDOCTARGET=install-doc" \
\r
79 echo>> ~tmp~.mak "RDOCTARGET=install-nodoc" \
\r
83 echo>> ~tmp~.mak "EXTOUT=%2" \
\r
88 echo>> ~tmp~.mak "BASERUBY=%2" \
\r
94 echo --help display this help
\r
95 echo --srcdir=DIR find the sources in DIR [configure dir or `..']
\r
96 echo Installation directories:
\r
97 echo --prefix=PREFIX install files in PREFIX []
\r
99 echo --target=TARGET configure for TARGET [i386-mswin32]
\r
100 echo Optional Package:
\r
101 echo --with-baseruby=RUBY use RUBY as baseruby [ruby]
\r
102 echo --with-static-linked-ext link external modules statically
\r
103 echo --enable-install-doc install rdoc indexes during install
\r
107 echo>> ~tmp~.mak WIN32DIR=$(@D)
\r
108 nmake -alf ~tmp~.mak
\r