Have makefile to have new pairs of source file indicated by its extension name
How can I modify a makefile to have few new pairs of source file indicated by its extension name to be compiled by Make automatically correctly and preferably interactively
objects = a.o b.o c.o d.o e.o f.o main.o h.o i.o Binary : $(objects) g++ -o Binary $(objects) #... #...
now its source should be added
e.aaa.cpp and i.aaa.cpp ,
e.bbb.cpp and i.bbb.cpp ,
e.ccc.cpp and i.ccc.cpp
how can we have Make now to produce 4 binaries from those module with addition of 3 pairs of source files above while all the rest held still constant