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

Reply via email to