Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions