GPU610/DPS915 Makefile Documentation

From CDOT Wiki
Jump to: navigation, search

For labs/assignments that require multiple executables to be compiled with make, you can create more than one makefile. Name the makefile whatever you want, then run make -f <name of makefile>. Make sure that the components of each makefile you are creating have unique names for their .cpp and .o files, otherwise you'll simply recompile the same files all over again. Also make sure the name of your executable is different in each makefile or else you'll just overwrite the executable from one version of your program with another version of your program.