From: Katsuyuki Komatsu Date: 2000-07-27T23:49:47+09:00 Subject: [ruby-dev:10434] Re: environment variables 小松です。 In the message of [ruby-dev:10433] Re: environment variables on 2000/7/27 21:21 Katsuyuki Komatsu wrote: > ふむ、Makefileから名前をmkconfig.rbに渡すようにして、ビルド > ディレクトリに作るMakefileを変えただけで名前が変えられる > ぐらいにはしておきましょうか。 win32/README.win32をつくりました。 stub化は先が長そうだし、このぐらいでいったん締めて、 まつもとさんの裁定を待ちたいなと思っています。 どうでしょう>なかださん? diff -ru1pN ruby-1.5.5.nakada/MANIFEST ruby-1.5.5/MANIFEST --- ruby-1.5.5.nakada/MANIFEST Wed Jul 26 13:33:00 2000 +++ ruby-1.5.5/MANIFEST Thu Jul 27 23:06:13 2000 @@ -235,2 +235,3 @@ sample/uumerge.rb win32/Makefile +win32/README.win32 win32/config.h diff -ru1pN ruby-1.5.5.nakada/win32/README.win32 ruby-1.5.5/win32/README.win32 --- ruby-1.5.5.nakada/win32/README.win32 Thu Jan 1 09:00:00 1970 +++ ruby-1.5.5/win32/README.win32 Thu Jul 27 23:03:18 2000 @@ -0,0 +1,94 @@ +=begin + += How to build ruby using Visual C++ + +== Requirement + +(1) Visual C++ 4.2 or later. + +(2) If you want to run `nmake clean' or `nmake distclean' properly, + you must install UNIX compatible `rm' command on your PATH. + +(3) Please set environment variable INCLUDE, LIB, PATH to run + required commands properly from the command line. + + Note: building ruby requires following commands. + * nmake + * cl + * lib + * dumpbin + * rm + +== How to compile and install + +(1) Execute win32\configure.bat on your build directory. + +(2) Change RUBY_INSTALL_NAME and RUBY_SO_NAME if you want to change + the name of the executable file. + +(3) Run `nmake' + +(4) Run `namke test' + +(5) Run `nmake DESTDIR= install' + + This command will create following directries and install files onto them. + * \bin + * \lib + * \lib\ruby + * \lib\ruby\. + * \lib\ruby\.\ + * \lib\ruby\site_ruby + * \lib\ruby\site_ruby\. + * \lib\ruby\site_ruby\.\ + * \man + If Ruby's version is `x.y.z', the is `x' and the is `y'. + The is usually `i586-mswin32'. + +== Build examples + +* Build on the ruby source directory. + + ex.) + ruby source directory: C:\ruby + build directory: C:\ruby + install directory: C:\usr\local + + C: + cd \ruby + win32\configure + nmake + nmake test + nmake DESTDIR=/usr/local install + +* Build on the relative directory from the ruby source directory. + + ex.) + ruby source directory: C:\ruby + build directory: C:\ruby\mswin32 + install directory: C:\usr\local + + C: + cd \ruby + mkdir mswin32 + cd mswin32 + ..\win32\configure + nmake + nmake test + nmake DESTDIR=/usr/local install + +* Build on the different drive. + + ex.) + ruby source directory: C:\src\ruby + build directory: D:\build\ruby + install directory: C:\usr\local + + D: + cd D:\build\ruby + C:\src\ruby\win32\configure + nmake + nmake test + nmake DESTDIR=C:/usr/local install + +=end -- 小松克行 / Katsuyuki Komatsu