2

What does @$ mean in the below make recipe ?

@$(OBJCOPY) -S --set-section-flags .bss=alloc,contents -O binary $(BINARY).elf $(BINARY).bin

Thanks

1
  • The @$ is not a single token. It's two different tokens: @ followed by $. You could a space between them if that makes it clearer for you... make doesn't care. Commented Nov 12, 2021 at 17:10

1 Answer 1

3

The @ sign in the beginning of the recipe command means "do not echo the command".

The $(OBJCOPY) in your recipe command means "substitute here the value of the OBJCOPY variable".

For more info about recipe echoing, please refer to https://www.gnu.org/software/make/manual/make.html#Echoing

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.