Re: [OT] automatically write enabled macros of the makefile into a file



On Wed, 30 Aug 2006 20:33:03 -0400, Kamaraju Kusumanchi wrote:

On Wednesday 30 August 2006 12:19, T wrote:
On Wed, 30 Aug 2006 18:14:33 -0400, Kamaraju Kusumanchi wrote:
The code comes with a makefile. The code contains many

#ifdef
#endif

constructs which are preprocessed by cpp (The C preprocessor). ...

...
program excution, you put:

write(10,*) 'Compiled with construct1=${construct1}
construct1=${construct2}...'

The ${construct1} & ${construct2} should be populated by make, before
cpp see them...


This is definitely a good idea. But I dont know how to do it. Any
pointers?

If you can provide us a *minimum* stripped make file, with 2 defined
varibles, and the steps how you go through the make, cpp, maybe somebody
here can help...




--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Question about Leverage source from Different Projects
    ... conditional preprocessor stuff INSIDE the stdafx.h depending on the project macro defined. ... There is, as far as I can tell, not even a discussion of the .cpp files, just a strange ... #pragma message ...
    (microsoft.public.vc.mfc)
  • Re: Conditional compilation sans the cpp
    ... a design for some kind of macro firewall that is supposed to isolate code ... from an effects from the preprocessor. ... I fully understand that the CPP has been used to to some great stuff. ... "There is only One inviolable Law" ...
    (comp.lang.cpp)
  • Re: Cpp Considered Harmful
    ... not bring down the server. ... > library management when finally addressing the preprocessor in the ... regarding the CPP. ...
    (comp.lang.cpp)
  • Re: To bean or not to bean
    ... Qt development begain in 1991, and the first public release was on the 20th ... The preprocessor is the main reason that there is no serious C++ contender ... techniques it supports do not scale to that level of programming. ... and the Cpp than he does. ...
    (comp.lang.cpp)
  • Re: delete comments in .c file
    ... Assuming you have access to the C preprocessor (cpp) you can do a quick hack ... Isolate the file from it's include files and run like, ...
    (comp.lang.c)