Welcome to the Linux Foundation Forum!

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
#...

  1. objects = a.o b.o c.o d.o e.o f.o main.o h.o i.o
  2.  
  3. Binary : $(objects)
  4. g++ -o Binary $(objects)
  5. #...
  6. #...

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

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training