useful tips in Makefile
This a useful Makefile, although it is not big.
one can go with it when you want to do some stuff
$@ target file $^ all files in dependency list $< the first file in dependency list -E pre-compiled file -S assemble file -c intermediate file -o output file
reference problem in multi-folders
.h need relative path from reference directory.
$CC -I includedir $COMPILE the
includedir is madatory，it defined search path that used in gcc compilation.