/
make string substitution

make string substitution

This is how we can do it:

OBJS := $(subst .cpp,.o,$(SRCS))

This example swaps out *.cpp with *.o.

Related content

Make recipe rule
Make recipe rule
More like this
Using the fast simple build system with mbedtls
Using the fast simple build system with mbedtls
Read with this
make wildcard matching list of files
make wildcard matching list of files
More like this
Make Dependency Files for C/C++ Headers
Make Dependency Files for C/C++ Headers
Read with this
How do I transform a list?
How do I transform a list?
More like this
Simple make system - putting it all together
Simple make system - putting it all together
Read with this