wangminbyxy 发表于 2007-2-15 16:29:04

---[[求助]]急:makefile编写

对于编写makefile
简单的我还应付得了,可是这一次作业,接口函数多了一点,所以实在不知道怎么编写了。向各位高手求助了,谢谢!
文件结构如下:
gui.c
include/assert.h
include/except.h
include/mem.h
include/list.h
include/document.h
src/assert.c
src/except.c
src/mem.c
src/list.c
src/document.c

src/except.c的包含的头文件有:include "assert.h" "except.h"
src/mem.c包含的头文件有:include "assert.h" "except.h" "mem.h"
src/list.c包含的头文件有:include "assert.h" "mem.h" "list.h"
src/document.h包含的头文件有include <gtk/gtk.h> "mem.h" "document.h"

gui.c包含的头文件有:include <gtk/gtk.h> "list.h" "document.h"

所以只能求救了!
谢谢

yhlfh 发表于 2007-2-16 00:30:47

由人来编写makefile是相当困难的。貌似有个automake是搞这个的。

jellycn 发表于 2007-2-16 14:37:05

http://www.stlchina.org/twiki/bin/view.pl/ScriptProgram/LearnMakefile
看看这篇文章吧,对你应该有帮助!
页: [1]
查看完整版本: ---[[求助]]急:makefile编写