Introduction to Linux, recently saw haohappy great spirit "with me, write Makefile", so want to practice how to write, appendix haohappy great god blog https://blog.csdn.net/haoel/article/details/2886
In a single file directory of makefile do not have what problem, more files you should don't know how to write, this is my own write makefile, reference post
https://blog.csdn.net/zhemingbuhao/article/details/88207566
The file tree is as follows:
In the root directory, after make makefile under nihao and zaijian folder there is no problem, can normal execution exit, in that the main error, can not find nihao. J h, o great god answer
In addition, this way is to write multiple makefile, could you tell me in a big project, is the manner in which more than write makefile under multiple folders, or in the root directory to write a single makefile, ever give the ideas and methods of implementation,
CodePudding user response:
The top yourselfCodePudding user response:
Generally a directory corresponding to a Makefile, large projects generally don't have to write their own Makefile, generation tools, Cmake, scons, etc., the learning process will lay a solid foundationCodePudding user response:
Thank you that I now is because the path didn't write, cause I am the main function of search is less than the other two header files