What is compiling?
- compiling is what happens when you run the
gcc
command - there is a little more infor about compiling in Lecture 02
What is compiling?
gcc
commandWhy use Make?
gcc
, we have been compiling every file each time you run gcc
; that can take a lot of time if you have a large programmake
allows you the flexibility to only compile the parts of the program that has changedmake
allows you to automatically repeat certain tasks, such as:
make
still uses a compiler underneath, such as gcc
makefile
and your end users will not have to worry about those details; they can just run make
What is Make?
make
How to use Make?
make
command in a folder that has a makefile
makefile
, such as make clean