make commandMakefile (perhaps in a bin directory)sudo make install places the binaries in desired installation dir like /usr/bin /usr/local/binmyproject: main.o dep1.o dep2.o #project dependecy
gcc -o myapp main.o dep1.o dep2.o
main.o: main.c 1.h #dependency
gcc -c main.c #rule (must be *tab* indented)
dep1.o: dep1.c 1.h
gcc -c dep1.c
dep2.o: dep2.c 1.h 2.h
gcc -c dep2.c
will be updated