aboutsummaryrefslogtreecommitdiffstats
path: root/ext/extmk.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* * ext/extmk.rb (extmake): hdrdir needs to be defined also innobu2005-04-081-0/+1
| | | | | | | | | | Config::CONFIG. * lib/mkmf.rb (configuration, create_makefile): get rid of recursive macro reference. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (extmake): top_srcdir is based from ext directory.nobu2005-04-071-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (extmake): keep directory names in Makefile as macros.nobu2005-04-071-3/+10
| | | | | | | | | * lib/mkmf.rb (configuration, create_makefile): ditto. * lib/mkmf.rb (CXX_EXT): separate C++ extensions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (extract_makefile): nothing to be removed when no filenobu2005-03-281-3/+6
| | | | | | | | | was deleted. * ext/extmk.rb (extmake): restore srcdir. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (parse_args): return false if nothing matched.nobu2005-03-021-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (extract_makefile): remove no longer existing installednobu2005-02-191-2/+8
| | | | | | | | | files. * lib/mkmf.rb (install_dirs): return installation directory list. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (extract_makefile): default to true if not compilednobu2005-02-101-6/+6
| | | | | | | | | previously. * ext/extmk.rb (extmake): create dummy makefile if extconf failed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (extract_makefile): extract previously collectednobu2005-02-061-52/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | informations from existing Makefile. * ext/socket/extconf.rb: check if getaddrinfo() works fine only when wide-getaddrinfo option is not given. fixed: [ruby-dev:25422] * ext/tk/extconf.rb: separate tkutil configuration. * lib/mkmf.rb ($extmk): check if under ext directory. * lib/mkmf.rb (Logging.postpone): allow recursive operation. * lib/mkmf.rb (try_constant): make sure if really a constant, reduce the number of times of compile. * lib/mkmf.rb (have_macro, have_var, byte_order): new functions. * lib/mkmf.rb (find_library): allow directory list with separators. * lib/mkmf.rb (arg_config): manage provided configuration options. * lib/mkmf.rb (dir_config): accept arrays of directory names as default values. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in, configure.in: made EXTOUT configurable.nobu2005-01-311-1/+2
| | | | | | | | | * ext/extmk.rb (extmake), lib/mkmf.rb: keep topdir as relative style. * lib/mkmf.rb: make extensions in depth order. [ruby-dev:25522] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (MANIFEST): do not use anymore, use extconf.rb instead.eban2004-11-011-3/+2
| | | | | | | | * ext/enumerator/extconf.rb, ext/fcntl/extconf.rb, ext/stringio/extconf.rb: added. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (extmake): extact target prefix from Makefiles.nobu2004-09-021-2/+8
| | | | | | | | * ext/extmk.rb: already built-in libraries satisfy dependencies. [ruby-dev:24028] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb: get rid of side effect of Config.expand, patched bynobu2004-05-061-1/+1
| | | | | | | <tttt01@infoseek.jp> (ruby-bugs:PR#597) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk, ext/extmk.rb: make ext and .ext get removed by distclean.nobu2004-04-221-4/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb: skip linking when libraries to be preloaded notnobu2004-04-151-1/+1
| | | | | | | compiled. [ruby-list:39561] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (extmake): skip uncompiled extensions.nobu2004-04-081-0/+2
| | | | | | | | | | | | | | | | | | | | | * lib/mkmf.rb (create_makefile): emit no rules for static library if $static is nil, e.g., outside of ext/. * lib/test/unit/ui/console/testrunner.rb (test_started): show test name via $0. * runruby.rb: set environments to use the compiled binary. * test/runner.rb: do nothing while cross-compiling. * test/drb/drbtest.rb, test/soap/calc/test_calc_cgi.rb: use envutil to know ruby binary. * test/ruby/envutil.rb: give priority to RUBY environment variable to use just compiled binary and libraries. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (extmake): extract necessary variables for static linknobu2004-04-021-8/+28
| | | | | | | | | | from Makefile. * lib/mkmf.rb (create_makefile): save preload and libpath for next compile. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in, */Makefile.sub, common.mk (clean-local, distclean-local):nobu2004-03-231-2/+5
| | | | | | | | | | | | | | | | | | separate files under directories due to directory separator. * */Makefile.sub (MKFILES): common.mk and */Makefile.sub should not be removed. * win32/Makefile.sub, wince/Makefile.sub: $* cannot appear in explicit rules. * cygwin/GNUmakefile.in: some mingw stuffs were missed. * lib/mkmf.rb (create_makefile): Borland make wrongly removes braces from command lines. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb: rm -rf $extout, not extout.eban2004-03-201-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * mkconfig.rb: no longer embed srcdir and compile_dir intonobu2004-03-181-14/+16
| | | | | | | | | | rbconfig.rb. * ext/extmk.rb, lib/mkmf.rb: obtain top_srcdir and topdir from library paths. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb: $extstatic is Array or nil now. [ruby-talk:93383]nobu2004-02-221-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb: use optparse instead of getopts.nobu2004-02-221-35/+37
| | | | | | | * Makefile.in, bcc32/Makefile.sub, win32/Makefile.sub: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb: prefer relative path. [ruby-talk:93037]nobu2004-02-211-9/+27
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (extmake): $extout_prefix doesn't vary for libraries.nobu2004-02-171-8/+16
| | | | | | | | | | | | | | * ext/extmk.rb (extmake): remove compile directory if empty. * ext/extmk.rb (parse_args) lib/mkmf.rb (create_makefile): move initialization of $extout_prefix from lib/mkmf.rb. [ruby-dev:22928] * ext/extmk.rb: clear ext and extout directory when cleaning. * lib/mkmf.rb (CLEANLIBS): should be under $(arch) directory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (parse_args): delay expanding $(extout) until invokingnobu2004-02-171-6/+10
| | | | | | | | | | make. * lib/mkmf.rb (CLEANLIBS): should remove files have specific extensions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb, lib/mkmf.rb: rename $outdir to $extout.nobu2004-02-091-7/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in, bcc32/Makefile.sub, win32/Makefile.sub, configure.in,nobu2004-02-091-26/+81
| | | | | | | | | | | | | | | | | | | | | | runruby.rb: run rdoc, test and so on with compiled extension libraries. [ruby-dev:22688] * ext/extmk.rb, lib/mkmf.rb: make extension libraries in separated directory, similar to the actual directory structure. * lib/fileutils.rb (FileUtils.copy_file): use the mode of the original file to create new file. * lib/rdoc/ri/ri_paths.rb (RI::Paths::SYSDIR): get rid of unexpected influence by envirionment variable. * bcc32/configure.bat, win32/configure.bat: add install-doc options. * win32/win32.c, win32/win32.h (rb_w32_fstat): fix Borland C runtime bug which returns wrong mode. [ruby-dev:22846] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb: Makefiles should depend on also rbconfig.rb.nobu2004-01-261-1/+1
| | | | | | | | | | (ruby-bugs:PR#1256) * ext/win32ole/win32ole.c (set_argv): set real arguments to WIN32OLE::ARGV. [ruby-list:39073] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb, win32/Makefile.sub, win32/configure.bat,usa2004-01-191-2/+4
| | | | | | | win32/setup.mak: --with-static-linked-ext support on mswin32. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (extmake): should not reduce necessary libraries.nobu2004-01-091-1/+1
| | | | | | | | | | [ruby-dev:22440] * lib/mkmf.rb (merge_libs): merge libraries according to dependency. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb: preserve order in Setup. [ruby-dev:22503]nobu2004-01-071-7/+15
| | | | | | | | | | * ext/extmk.rb: move dependent libraries just after depended libraries. * ext/digest/*/extconf.rb: depend on digest. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * instruby.rb: fix install directory if destdir and compile_dir areusa2003-12-281-1/+1
| | | | | | | | | | | | | not in the same drive. * ext/extmk.rb: ditto. * win32/Makefile.sub, win32/README.win32, win32/configure.bat, win32/setup.mak: new configure scheme. use ``configure --prefix=dir'' instead of ``nmake DESTDIR=dir install''. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (MTIMES): let makefiles depend to mkmf.rb.nobu2003-12-031-1/+1
| | | | | | | * lib/mkmf.rb (configuration): DLDFLAGS was duplicated. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (extmake): should not force to remake Makefile whennobu2003-08-171-4/+4
| | | | | | | installation and so on. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * marshal.c (w_symbol, w_object): get rid of warnings.nobu2003-08-161-12/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | * re.c (rb_memsearch): ditto. * time.c (time_dump): ditto. * ext/extmk.rb (extmake): not continue making when extconf.rb failed. * ext/openssl/extconf.rb: check __VA_ARGS__ macro more precisely. * ext/openssl/ossl.h: remove version.h dependency. * ext/openssl/ruby_missing.h: ditto. * lib/mkmf.rb (pkg_config): use --libs output except with only-L for other options. [ruby-list:38099] * lib/mkmf.rb (create_makefile): separate rule for static library from shared object. * win32/Makefile.sub, bcc32/Makefile.sub, wince/Makefile.sub: define exec_prefix and libdir. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* commit missnobu2003-08-121-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (extmake): compact $extlibs.nobu2003-08-121-6/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in: static link libraries to LIBRUBY_SO with static linkednobu2003-08-121-3/+10
| | | | | | | | | ext. [ruby-dev:21157] * ext/extmk.rb (extmake): sort extension library initialization order. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (extmake): pass LIBPATH to make ruby. [ruby-dev:21137]nobu2003-08-061-7/+15
| | | | | | | | | | | | | | | | | | | | | | | | | * ext/extmk.rb (extmake): set library name as source file name in Init_ext(). [ruby-dev:21137] * lib/mkmf.rb (Logging::postpone): postpone logging messages after heading message as the result of the block. * lib/mkmf.rb (macro_defined?): append newline to src unless ended with it. * lib/mkmf.rb (have_library): allow nil function name to just append a library. (ruby-bugs:PR#1083) * lib/mkmf.rb (pkg_config): should append additional libraries to $libs but not $LIBS. [ruby-dev:21137] * ext/io/wait/extconf.rb: check DOSISH macro instead of platform. * ext/digest/sha1/extconf.rb: have_library already appends library name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (--no-undefined): annoying option removed.eban2003-08-021-11/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (INSTALL_PROG, INSTALL_DATA): modify verbose messages.eban2003-07-291-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (rm_f): use FileUtils.nobu2003-07-181-2/+7
| | | | | | | | | | | | | | | | | * lib/mkmf.rb (modified?): return mtime of the target if it exists and newer than times. * lib/mkmf.rb (install_files): add a current directory file even if it does not exist yet. * lib/mkmf.rb (configuration): do not add $LDFLAGS to DLDFLAGS. * ext/extmk.rb (extmake): check whether Makefile is newer than depend and MANIFEST. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb: add -Wl,--no-undefined to LDSHARED onlyeban2003-04-241-1/+8
| | | | | | | if GNU ld is 2.11 or later. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * instruby.rb, ext/extmk.rb, lib/benchmark.rb, lib/cgi.rb,akr2003-03-291-1/+1
| | | | | | | | | lib/debug.rb, lib/getoptlong.rb, lib/optparse.rb, lib/time.rb, lib/date/format.rb, lib/irb/ruby-lex.rb lib/uri/common.rb: revert escape for `-' in character class. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * regex.c (re_compile_pattern): fix previous change.akr2003-03-211-1/+1
| | | | | | | | | | | * instruby.rb, ext/extmk.rb, ext/tk/lib/tk.rb, lib/benchmark.rb, lib/cgi.rb, lib/debug.rb, lib/getoptlong.rb, lib/jcode.rb, lib/optparse.rb, lib/time.rb, lib/date/format.rb, lib/irb/ruby-lex.rb: escape `[', `]', `-' in chracter class in regexp to avoid warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (parse_args): add '-n' to $mflags BEFORE "--".eban2003-02-101-3/+2
| | | | | | | do not add DESTDIR if already included in $fmlags. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * instruby.rb (parse_args), ext/extmk.rb (parse_args): Prepend aknu2003-01-271-16/+8
| | | | | | | | hyphen to the first argument of MAKEFLAGS only if appropriate. Remove wrong comments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * instruby.rb ($mflags.set?): Check $make instead of $nmake, sinseusa2003-01-261-0/+1
| | | | | | | | | | there is no such a variable. * instruby.rb ($mflags.set?), ext/extmk.rb ($mflags.set?): Return false if unmatched. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * instruby.rb (parse_args), ext/extmk.rb (parse_args): Detect -nknu2003-01-261-7/+16
| | | | | | | | and emulate a dry run. Use 'make' in case no --make argument is given. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * instruby.rb, ext/extmk.rb, Makefile.in, win32/Makefile.sub,knu2003-01-251-14/+31
| | | | | | | | | | | | bcc32/Makefile.sub: Replace the complicated MFLAGS/MAKEFLAGS parser with something plain and comprehensible. This fixes a bug where make flags were wrongly reordered and the resulted command line often did not make sense especially when BSD make is used with extra arguments given. Tested with FreeBSD and Linux by me and mswin32, bccwin32 and mingw by usa. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* *** empty log message ***nobu2003-01-051-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e