Response files

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sat Mar 21 21:16:21 PDT 2009


Walter Bright wrote:
> Andrei Alexandrescu wrote:
>>> .o on Linux, .obj on Windows.
>>
>> OBJSUFFIX_win32 = .obj
>> OBJSUFFIX_linux = .o
>> ...
>> OS = linux
>> ...
>> ... file$(OBJSUFFIX_$(OS)) ...
> 
> 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.

Andrei



More information about the Digitalmars-d mailing list