Question: I'm having trouble creating a makefile that will pull from 4 different folders and run them while putting their executables in a different folder. The

I'm having trouble creating a makefile that will pull from 4 different folders and run them while putting their executables in a different folder. The folder looks like this:

I'm having trouble creating a makefile that will pull from 4 different

cpp1, cpp2, and cpp3 each have c++ files that are all named main.cpp and cpps has a c++ file named class.cpp. The header folder has a .h file named class.h . The executables for all these files should be placed in the exec folder and be able to be cleaned. I have tried 3 different makefile setups and still getting a "no rule to make target 'main.cpp', needed by 'main.o'" error. If I can get some feedback or any type of help, that would be really appreciated.

\begin{tabular}{|l|l|l|} \hline Name & Date modified & Type \\ \hline cpp1 & 8/25/20199:10AM & File folder \\ \hline cpp2 & 8/25/20199:10AM & File folder \\ \hline cpp3 & 8/25/20199:10AM & File folder \\ cpps & 8/25/20199:10AM & File folder \\ exec & 1/24/20193:59AM & File folder \\ \hline headers & 8/25/20199:10AM & File folder \\ \hline \end{tabular}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!