C++
Makefiles
Top of Form
Bottom of Form
Content
·
Lab 15
Once C++ applications are split among multiple files, programmers rely "build tools" to help assemble applications from source code. In Linux (and UNIX) the standard build tool is named "make". In order for make to work properly, you as the programmer must provide a list of rules describing how your application is to be built. Those rules are placed in a file named "Makefile". The following link is to a 10-minute video that describes to process for creating a Makefile for a multi-file project:
https://www.youtube.com/watch?v=kGGE8mtrbrM
Using the information provided in the video, write a Makefile using the source files from lab 14. The executable target should be called lab15. Be sure to include a "clean" rule to remove all of the object files (.o files) and the lab15 executable.
Use the following command to create the tarball:
tar czv *.h *.cpp Makefile >lab15.tar.gz