我一直想知道C项目是否有默认的目录布局.你知道,我应该把哪些文件夹放在哪些文件中.
所以我在SourceForge上下载了很多项目的源代码,它们彼此不同.一般来说,我发现这个结构或多或少:
/project (root project folder, has project name)
|
|____/bin (the final executable file)
|
|
|____/doc (project documentation)
| |
| |____/html (documentation on html)
| |
| |____/latex (documentation on latex)
|
|
|____/src (every source file, .c and .c)
| |
| |____/test (unit testing files)
|
|
|____/obj (where the generated .o files will be)
|
|
|____/lib (any library dependences)
|
|
|____BUGS (known bugs)
|
|____ChangeLog (list of changes and such) …Run Code Online (Sandbox Code Playgroud)