mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/openssl/extconf.rb: move gmake specific features
into GNUmakefile. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f8817c7262
commit
00dfd7d7cc
2 changed files with 31 additions and 26 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Thu Jul 31 14:11:54 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
||||||
|
|
||||||
|
* ext/openssl/extconf.rb: move gmake specific features
|
||||||
|
into GNUmakefile.
|
||||||
|
|
||||||
Thu Jul 31 12:36:11 2003 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
|
Thu Jul 31 12:36:11 2003 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
|
||||||
|
|
||||||
* bin/erb, lib/erb.rb: add explicit trim mode.
|
* bin/erb, lib/erb.rb: add explicit trim mode.
|
||||||
|
|
|
@ -28,33 +28,9 @@ message "=== OpenSSL for Ruby configurator ===\n"
|
||||||
#
|
#
|
||||||
if with_config("debug") or enable_config("debug")
|
if with_config("debug") or enable_config("debug")
|
||||||
$defs.push("-DOSSL_DEBUG") unless $defs.include? "-DOSSL_DEBUG"
|
$defs.push("-DOSSL_DEBUG") unless $defs.include? "-DOSSL_DEBUG"
|
||||||
$CPPFLAGS += " -Wall" unless $CPPFLAGS.split.include? "-Wall"
|
|
||||||
|
|
||||||
if CONFIG["CC"] =~ /gcc/
|
if /gcc/ =~ CONFIG["CC"]
|
||||||
srcs = []
|
$CPPFLAGS += " -Wall" unless $CPPFLAGS.split.include? "-Wall"
|
||||||
for f in Dir[File.join($srcdir, "*.c")]
|
|
||||||
srcs.push File.basename(f)
|
|
||||||
end
|
|
||||||
srcs = srcs.join(" ")
|
|
||||||
|
|
||||||
$distcleanfiles << "dep" if defined? $distcleanfiles
|
|
||||||
|
|
||||||
File.open(File.join($srcdir, "depend"), "w") {|f|
|
|
||||||
f.print <<EOD
|
|
||||||
SRCS = #{srcs}
|
|
||||||
|
|
||||||
test-link:
|
|
||||||
$(CC) $(DLDFLAGS) -o .testlink $(OBJS) $(LIBPATH) $(LIBS) $(LOCAL_LIBS)
|
|
||||||
@$(RM) .testlink
|
|
||||||
@echo "Done."
|
|
||||||
|
|
||||||
dep:
|
|
||||||
$(CC) $(CFLAGS) $(CPPFLAGS) -c $(SRCS) -MM > dep
|
|
||||||
|
|
||||||
include dep
|
|
||||||
EOD
|
|
||||||
}
|
|
||||||
File.open(File.join($srcdir, "dep"), "w").close
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -120,5 +96,29 @@ message "=== Checking for Ruby features... ===\n"
|
||||||
have_func("rb_obj_init_copy", "ruby.h")
|
have_func("rb_obj_init_copy", "ruby.h")
|
||||||
|
|
||||||
message "=== Checking done. ===\n"
|
message "=== Checking done. ===\n"
|
||||||
|
$distcleanfiles << "GNUmakefile" << "dep"
|
||||||
create_makefile("openssl")
|
create_makefile("openssl")
|
||||||
|
if /gcc/ =~ CONFIG["CC"]
|
||||||
|
File.open("GNUmakefile", "w") {|f|
|
||||||
|
f.print <<EOD
|
||||||
|
include Makefile
|
||||||
|
|
||||||
|
SRCS = $(OBJS:.o=.c)
|
||||||
|
|
||||||
|
test-link: $(OBJS)
|
||||||
|
$(CC) $(DLDFLAGS) #{OUTFLAG}.testlink $(OBJS) $(LIBPATH) $(LIBS) $(LOCAL_LIBS)
|
||||||
|
@$(RM) .testlink
|
||||||
|
@echo "Done."
|
||||||
|
|
||||||
|
dep: $(SRCS)
|
||||||
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c $^ -MM | \\
|
||||||
|
sed -e 's|$(topdir)/|$$(topdir)/|g' \\
|
||||||
|
-e 's|$(srcdir)/|$$(srcdir)/|g' \\
|
||||||
|
-e 's|$(hdrdir)/|$$(hdrdir)/|g' \\
|
||||||
|
> dep
|
||||||
|
|
||||||
|
include dep
|
||||||
|
EOD
|
||||||
|
}
|
||||||
|
end
|
||||||
message "Done.\n"
|
message "Done.\n"
|
||||||
|
|
Loading…
Reference in a new issue