makedepend
使用方式
makedepend
可以直接使用在一连串的程序文件中:
makedepend [options] foo.c bar.c ...
但是,它比较常见的使用方式,是应用于makefile中。通常会使用在depend
目标档上,像是make depend
会用makedepend
来处理在项目中所有的代码文件。以下是一个范例:
SRCS = file1.c file2.c ...
CFLAGS = -O -DHACK -I../foobar -xyz
depend:
makedepend -- $(CFLAGS) -- $(SRCS)
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.