I've found the solution (thanks Tsyvarev)
It is needed to modify SRCS as follows:
SRCS := $(notdir $(wildcard $M/*.c))