Introduction:
• 2 parts:
◦ compiling .cpp files into object files
◦ linking object files into an executable that runs the program
• typically made of multiple entries, broken into 3 sections:
◦ Targets: the file you aim to create
‣ Object: made from compiling .cpp files
‣ Executable: linking object files
◦ Dependencies: the other files that the target is dependent on to run
◦ Commands
Make Basics:
• General structure is:
◦ {Target} : {Dependencies}
‣ {Tab} {Command}
• {Target} - name of the target you are trying to build.
◦ Can name whatever but is generally named after the file the target
will build
◦ Must be followed by a colon ( : ) character
• {Dependencies} - a list of files/targets that must be in place before
this target can be built
◦ Usually files/target defined somewhere else in the ake file
◦ Line underneath target MUST begin with a tab
• Can write any legit command, but typically is the command needed to
• 2 parts:
◦ compiling .cpp files into object files
◦ linking object files into an executable that runs the program
• typically made of multiple entries, broken into 3 sections:
◦ Targets: the file you aim to create
‣ Object: made from compiling .cpp files
‣ Executable: linking object files
◦ Dependencies: the other files that the target is dependent on to run
◦ Commands
Make Basics:
• General structure is:
◦ {Target} : {Dependencies}
‣ {Tab} {Command}
• {Target} - name of the target you are trying to build.
◦ Can name whatever but is generally named after the file the target
will build
◦ Must be followed by a colon ( : ) character
• {Dependencies} - a list of files/targets that must be in place before
this target can be built
◦ Usually files/target defined somewhere else in the ake file
◦ Line underneath target MUST begin with a tab
• Can write any legit command, but typically is the command needed to