From: nobu.nokada@... Date: 2005-09-15T23:54:14+09:00 Subject: Re: Bug in Ruby 1.8.2 'mkmf.rb' ? Hi, At Thu, 15 Sep 2005 23:36:34 +0900, Glenn M. Lewis wrote in [ruby-talk:156253]: > Is there a correct way to handle this situation in the > future? Can I somehow tell 'mkmf' that "RubyBarChart_wrap.cxx" is > supposed to be auto-generated? (So that whether it exists or not > in the directory, the Makefile will end up being correct?) Setting $objs to all object files, and separating dependency rules to "depend" file. # extconf.rb $objs = %w[RubyBarChart_wrap.o Account.o Contract.o Portfolio.o EntryExitSystem.o PositionSizing.o] create_makefile('RubyBarChart') # depend RubyBarChart_wrap.cxx: RubyBarChart.i Account.h Contract.h Portfolio.h Tick.h \ EntryExitSystem.h Order.h PositionSizing.h swig -c++ -ruby $(CPPFLAGS) -DDEFI_CPP_ANSI RubyBarChart.i Tick.o: Tick.cpp Tick.h Account.o: Account.cpp Account.h PositionSizing.h Order.h Contract.h Tick.h PositionSizing.o: PositionSizing.cpp PositionSizing.h Order.h Contract.h Tick.h Account.h EntryExitSystem.o: EntryExitSystem.cpp EntryExitSystem.h Tick.h Contract.o: Contract.cpp EntryExitSystem.h Tick.h Contract.h Portfolio.h PositionSizing.h Account.h Portfolio.o: Portfolio.cpp Portfolio.h Contract.h -- Nobu Nakada