Response files

Georg Wrede georg.wrede at iki.fi
Sun Mar 22 08:39:07 PDT 2009


Andrei Alexandrescu wrote:
> Walter Bright wrote:
>> Andrei Alexandrescu wrote:
>>>> .o on Linux, .obj on Windows.
>>>
>>> OBJSUFFIX_win32 = .obj
>>> OBJSUFFIX_linux = .o
>>> ...
>>> OS = linux
>>> ...
>>> ... file$(OBJSUFFIX_$(OS)) ...

This is so totally neat!

>> I hadn't thought of using macros to generate macros. It's a good idea.
> 
> I confess I also hadn't until the third iteration of the Phobos makefile.

Yeah. In hindsight, any moron could claim this is trivial and obvious. 
But alas, it takes a thousand morons a thousand years to come up with 
things like this. D is blessed with several very gifted people, and we 
already run circles around C++. I can't even begin to imagine what D4 
willl look like!! :-)





More information about the Digitalmars-d mailing list