Difference between revisions of "GPU610/DPS915 Makefile Documentation"

From CDOT Wiki
Jump to: navigation, search
(Created page with '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 <…')
 
 
Line 1: Line 1:
 
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
 
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, otherwise you'll simply recompile the same files
+
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
 
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.
 
with another version of your program.

Latest revision as of 16:26, 27 September 2012

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.