On Jul 24, 2000, Akim Demaille <[EMAIL PROTECTED]> wrote:

> Sounds like a good idea, but anyway I think it's completely useless
> without support from Automake.

Not completely useless.  It means additional work for the maintainer,
but it's not that hard.

foo.o: foo.cc foo.$(CXX_EXT)
        $(CXX) $(CXXFLAGS) -c foo.$(CXX_EXT)

.cc.cpp:
        echo '#include "$<"' > $@
.cc.cxx:
        echo '#include "$<"' > $@
.cc.C:
        echo '#include "$<"' > $@

> Do all the compiler require an input file name?  Can't we use stdin +
> #line?

I don't think we can expect compilers to support reading from stdin.
GCC, for one, will refuse to read from stdin unless it's just
preprocessing.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

Reply via email to