GPU610/DPS915 Makefile Documentation

From CDOT Wiki
Revision as of 16:26, 27 September 2012 by Akopytov (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.