mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/extmk.rb.in, lib/mkmf.rb: add C++ rules in addition to C
rules for the mswin32 platforms. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
03f06165b8
commit
65579c6b31
3 changed files with 37 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Mar 28 23:43:00 2001 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
|
||||
|
||||
* ext/extmk.rb.in, lib/mkmf.rb: add C++ rules in addition to C
|
||||
rules for the mswin32 platforms.
|
||||
|
||||
Wed Mar 28 19:29:21 2001 Akinori MUSHA <knu@iDaemons.org>
|
||||
|
||||
* ext/extmk.rb.in, lib/mkmf.rb: move C++ rules to the right place.
|
||||
|
|
|
@ -512,14 +512,29 @@ EOS
|
|||
mfile.print "
|
||||
{$(srcdir)}.c{}.@OBJEXT@:
|
||||
$(CC) -I. -I$(<D) $(CFLAGS) $(CPPFLAGS) -c $(<:/=\\)
|
||||
|
||||
.c.@OBJEXT@:
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -c $(<:/=\\)
|
||||
|
||||
{$(srcdir)}.cc{}.@OBJEXT@:
|
||||
$(CXX) -I. -I$(<D) $(CXXFLAGS) $(CPPFLAGS) -c $(<:/=\\)
|
||||
.cc.@OBJEXT@:
|
||||
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(<:/=\\)
|
||||
{$(srcdir)}.cpp{}.@OBJEXT@:
|
||||
$(CXX) -I. -I$(<D) $(CXXFLAGS) $(CPPFLAGS) -c $(<:/=\\)
|
||||
.cpp.@OBJEXT@:
|
||||
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(<:/=\\)
|
||||
{$(srcdir)}.cxx{}.@OBJEXT@:
|
||||
$(CXX) -I. -I$(<D) $(CXXFLAGS) $(CPPFLAGS) -c $(<:/=\\)
|
||||
.cxx.@OBJEXT@:
|
||||
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(<:/=\\)
|
||||
"
|
||||
else
|
||||
mfile.print "
|
||||
.c.@OBJEXT@:
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -c $(subst /,\\\\,$<)
|
||||
|
||||
.cc.@OBJEXT@ .cpp.@OBJEXT@ .cxx.@OBJEXT@ .C.@OBJEXT@:
|
||||
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(subst /,\\\\,$<)
|
||||
"
|
||||
end
|
||||
|
||||
|
|
17
lib/mkmf.rb
17
lib/mkmf.rb
|
@ -506,9 +506,21 @@ EOMF
|
|||
mfile.print "
|
||||
{$(srcdir)}.c.#{$OBJEXT}:
|
||||
$(CC) $(CFLAGS) -I$(<D) $(CPPFLAGS) -c $(<:/=\\)
|
||||
|
||||
.c.#{$OBJEXT}:
|
||||
$(CC) $(CFLAGS) -I$(<D) $(CPPFLAGS) -c $(<:/=\\)
|
||||
|
||||
{$(srcdir)}.cc{}.#{$OBJEXT}:
|
||||
$(CXX) -I. -I$(<D) $(CXXFLAGS) $(CPPFLAGS) -c $(<:/=\\)
|
||||
.cc.#{$OBJEXT}:
|
||||
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(<:/=\\)
|
||||
{$(srcdir)}.cpp{}.#{$OBJEXT}:
|
||||
$(CXX) -I. -I$(<D) $(CXXFLAGS) $(CPPFLAGS) -c $(<:/=\\)
|
||||
.cpp.#{$OBJEXT}:
|
||||
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(<:/=\\)
|
||||
{$(srcdir)}.cxx{}.#{$OBJEXT}:
|
||||
$(CXX) -I. -I$(<D) $(CXXFLAGS) $(CPPFLAGS) -c $(<:/=\\)
|
||||
.cxx.#{$OBJEXT}:
|
||||
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(<:/=\\)
|
||||
"
|
||||
else
|
||||
mfile.print "
|
||||
|
@ -516,6 +528,9 @@ EOMF
|
|||
|
||||
.c.#{$OBJEXT}:
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -c $(subst /,\\\\,$<)
|
||||
|
||||
.cc.#{$OBJEXT} .cpp.#{$OBJEXT} .cxx.#{$OBJEXT} .C.#{$OBJEXT}:
|
||||
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(subst /,\\\\,$<)
|
||||
"
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue