[omniORB] multiple target / dependency files / omniorb 3.0.4

Clement.VISSEAUX@sercel.fr Clement.VISSEAUX@sercel.fr
Tue Dec 3 14:50:01 2002


Hello

Im a currently working with omniorb with several targets and compilers ( gcc and CC )  with a single omniorb distribution directory
tree.
I managed to dispatch the objects files, stubs, libraries and exe files in different target directories.
But I did not manage to generate the dependency files(.d files )  in their respective   target directories . the dependency files
remain created in the source directory, which is not satisfactory whrn working with multiple targets.
Is it possible to tell omkdepend to create the dependency file in a given directory ?

hint : the generation of the .d file  is in the mk/afterdir.mk

%.d: %.cc $(GENERATED_CXX_HDRS)
     @echo "$<" >> cxxdepend.tmp


      if [ -f cxxdepend.tmp ]; then \
        echo $(CXXMAKEDEPEND) $(MDFLAGS) $(CPPFLAGS) `cat cxxdepend.tmp`; \
        $(CXXMAKEDEPEND) $(MDFLAGS) $(CPPFLAGS) `cat cxxdepend.tmp`; \
      ....

thanks for any clue