Ben Barrowes
2017-05-30 11:08:34 UTC
When using ifort, I wanted to save the preprocessed files. The documentation say this about save-temps:
The object .o file (Linux and OS X) or .obj file (Windows) is saved.
The assembler .s file (Linux and OS X) or .asm file (Windows) is saved if you specified the [Q]use-asm option.
The .i or .i90 file is saved if the fpp preprocessor is invoked.
The problem is, when I execute a 'make' at the top level of a code tree, the *.o files are in the same directory as the source files, but the *.i files all appear at the base directory I invoked 'make' from.
Is there any way to change this behavior? I would like the *.i files to appear in the same directory as the source code file just like the *.o files.
The object .o file (Linux and OS X) or .obj file (Windows) is saved.
The assembler .s file (Linux and OS X) or .asm file (Windows) is saved if you specified the [Q]use-asm option.
The .i or .i90 file is saved if the fpp preprocessor is invoked.
The problem is, when I execute a 'make' at the top level of a code tree, the *.o files are in the same directory as the source files, but the *.i files all appear at the base directory I invoked 'make' from.
Is there any way to change this behavior? I would like the *.i files to appear in the same directory as the source code file just like the *.o files.