Response files

Walter Bright newshound1 at digitalmars.com
Sat Mar 21 20:07:27 PDT 2009


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.



More information about the Digitalmars-d mailing list