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.