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.
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.