C How to manage #include relationship among multiple source files and create correct makefile
问题 I again re-edited my question and this time it is final. note: the program is working (thanks for all the help). But I still have some confusion about how the dependency/linkage actually works. Specifically I would like to be walked through the process that the makefile compiles and runs. (example, the compiler first looks at main.c, starting from line 1, which is main.h, goes into main.h, starting from line 1, which points to function1.h, and so on.) My main question here is though: is it