cancel
Showing results for 
Search instead for 
Did you mean: 

How to alter makefile Console output, template for autogenerated *.mk

ferro
Senior III

Hi,

My aim is to be able to get shorter line for compiled file.
How to tell the makefile generator of *.mk files to print to console my version of message.


What I mean is, instead of verbose format:

---- Console ---------------------------------------------
19:58:32 **** Incremental Build of configuration dbg
make -j8 all 
arm-none-eabi-gcc "../Drivers/dev_debug/retarget.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DPCB_ISSUE_NUMBER=2  ... etc.
arm-none-eabi-gcc "../Drivers/dev_debug/abd.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DPCB_ISSUE_NUMBER=2  ... etc.
arm-none-eabi-gcc "../Drivers/dev_debug/dddd.cpp" -mcpu=cortex-m7 -std=gnu11 -g3 -DPCB_ISSUE_NUMBER=2  ... etc.

I would like to see this:

---- Console ---------------------------------------------
19:58:32 **** Incremental Build of configuration dbg
make -j8 all 
compiling retarget.c
compiling abd.c
compiling dddd.cpp

etc.

I know how this is done in Makefile, just how to tell autogenerator to do that ? Where is a template the generator uses ?

# excerpt from *.mk file
# Each subdirectory must supply rules for building sources it contributes
Drivers/dev_debug/%.o Drivers/dev_debug/%.su Drivers/dev_debug/%.cyclo: ../Drivers/dev_debug/%.c Drivers/dev_debug/subdir.mk
	@echo "compiling $<"
	@arm-none-eabi-gcc "$<" -mcpu=cortex-m7 -std=gnu11 -g3 -DPCB_ISSUE_NUMBER=2 .. /many other options/ .. -mfloat-abi=hard -mthumb -o "$@"

Thank you

Ferro

0 REPLIES 0