Question: I need to edit my makefile so that it not only compiles but executes as well after only running make in the command prompt on
I need to edit my makefile so that it not only compiles but executes as well after only running "make" in the command prompt on Linux.
Here is my makefile:
CXXFLAGS = -std=c++17
all: jm_main jm_Account $(CXX) $(CXXFLAGS) jm_Account.o jm_main.o jm_main: jm_main.cpp jm_Account.h $(CXX) $(CXXFLAGS) -c jm_main.cpp jm_Account: jm_Account.h jm_Account.cpp $(CXX) $(CXXFLAGS) -c jm_Account.cpp clean: rm -f *.o a.out
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
