Makefile compile with list of .cpp

  c++, gnu-make, makefile

It’s possible to compile a list of .cpp with make ?
In my makefile i have 2 lists, one of .o and the second is for .cpp.
The list of the .o is the same of .cpp with different path.
I can’t use vpath because i have multiple .cpp with same names.

I can browse the .o but not the .cpp:

$(OBJS): $(SRC)
     $(LINKER) -g -o [email protected] $^ $(LDFLAGS)

In this case, my .cpp is the same for all .o.

$(OBJS) is the list of .o and $(SRC) the .cpp

Source: Windows Questions C++