same as how u use the make to recompile kernel. make read a file , default is Makefile, to know the compile flag. then check which files need to compile, then compile it. of course, make is not limited to compile c program. i always use make to work on latex.
二楼的大哥,您说“usually u can not use gcc to compile a c file in kernel directly. u need many flags. so please use make. ”。我的英文不太好,您的意思是说:“通常你不能用GCC去直接编译内核的c文件,你需要一些参数,所以请使用make“吗?如果您说的是这个意思,可是我记得好像编译内核的makefile 文件里也是调用的GCC吧?请指点