我一直想知道是否有C項目的默認目錄佈局。你知道,我應該放哪些文件夾等。是否有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
我懷疑你擁有的是如何接近標準,因爲你會發現。 – NPE 2011-12-15 16:19:32
所以我想我會把它記錄下來,並使之成爲正式的默認值! Muhahaha>:D – alexdantas 2011-12-15 16:57:20