make string substitution

This is how we can do it:

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

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

Related pages