automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need hook into cxx prefix


From: Simon Richter
Subject: Re: Need hook into cxx prefix
Date: Sat, 7 Oct 2000 07:23:09 +0200 (CEST)

On Thu, 5 Oct 2000, kitkat wrote:

> Hi Simon, thanks for your quick reply !

This one took a little longer however... :-)

>  1.) xxx.h (gets changed)
>  2.) xxx.cxx ( xxx.h is included by xxx.cxx -> this dependency forces
> recompilation of xxx.cxx)
>  3.) now not only the c-compiler should run but also my Preprocessor
> (VPrep)
>      which generates xxx_vprep.cxx out of xxx.h.

Then make xxx_vprep.cxx depend on xxx.h and add it to _SOURCES (and
BUILT_SOURCES ?).

> Could you give me little code snippet ?

For GNU make, this is rather easy, but not if you want to remain
compatible with other makes, so I don't have any code handy.

The cleanest approach would be to add this into automake in some way
(similar to how yacc/flex support is now, i.e. you ship the _vprep file
with the sources in case the casual installer doesn't have your tool), but
I think this will be rather difficult.

   Simon

-- 
GPG public key available from http://phobos.fs.tum.de/pgp/Simon.Richter.asc
 Fingerprint: A319 A60F 20F6 C8A4 3C86  54B4 99CD AC6E 79D1 B1E7
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]