User forums > Using Code::Blocks

Help with filenames in Build options dialog

(1/1)

armandjordaan:
Hello,

I have a project using gcc. I want to output an assembler listing for each file.
In the Build Options dialog under Compiler settings->Other options, I have added: -Wa,-ahls=$(TARGET_OUTPUT_DIR)\output.asmlst

My problem is that this always writes to output.asm for every file. I would rather want the output file to be $(TARGET_OUTPUT_DIR)\main.asmlst if I compile main.c. How can I edit my entry so that it takes the file that is being compiled and changes the extension to asmlst?

Any help would be appreciated.

BTW: thank you for an excellent IDE.

Navigation

[0] Message Index

Go to full version