Eike Rathke wrote:
Hi Stephan,

On Wed, Mar 01, 2006 at 17:36:04 +0100, Stephan Bergmann wrote:


Note that testhxx only works for headers delivered to the solver, not for local headers within a CVS module (as testhxx calls the compiler with only a fixed set of include directories).


I didn't take a look at the soltools' script yet, but my personal
testhxx so far looks like


foreach x ( ../../../inc/*.hxx )
    echo '#include "'$x'"' >ttt_`basename $x .hxx`.cxx
end

foreach x ( ttt_*.cxx )
    dmake wall=true ../../../${INPATH}/slo/`basename $x .cxx`.obj
    if ($? == 0) then
        rm $x ../../../${INPATH}/slo/`basename $x .cxx`.obj
    else
        break
    endif
end


and if sourced in a tcsh works fine for any header file local to the
module, since the dmake target mechanism using implicit rules passes all
necessary includes, defines and switches.

  Eike

Nice approach, too.  However,
- hardcoded "../../../" does not always work (or did I miss anything),
- this won't work for delivered headers (which might fail due to hedabu modifying them and due to missing other headers not delivered, etc., even if the local counterparts work ok)

-Stephan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to