是否有C项目默认目录布局?

时间:2011-12-15 16:10:50

标签: c styles project standards

我一直想知道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)
    |
    |____COPYING     (project license and warranty info)
    |
    |____Doxyfile    (Doxygen instructions file)
    |
    |____INSTALL     (install instructions)
    |        |
    |____Makefile    (make instructions file)
    |
    |____README      (general readme of the project)
    |
    |____TODO        (todo list)

某处是否有默认标准?

编辑:对不起,真的。我意识到推荐的C项目目录文件有很多类似的问题。但我看到人们说他们认为最好的。我正在寻找一种人们通常遵循的标准。

相关问题:

C - Starting a big project. File/Directory structure and names. Good example required

Folder structure for a C project

File and Folder structure of a App/Project based in C

Project Organization in C Best Practices

2 个答案:

答案 0 :(得分:12)

我会说“不”,你的经验证据似乎支持这一点。

当我需要在doc/docs/之间做出决定时,我常常会感到困惑......

答案 1 :(得分:2)

嗯,“libabc”展示了一种常见做法。