Question: How can I write a makefile in linux if there only have two .cpp files? I have two .cpp files, main.cpp and game.cpp main.cpp includes

How can I write a makefile in linux if there only have two .cpp files?

I have two .cpp files, main.cpp and game.cpp

main.cpp includes game.cpp

now, how should I write a makefile for it ?

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!