3
我有一個內部包含子目錄的目錄。我想在包含頭文件的make文件中包含父目錄作爲包含路徑。是否有語法,以便在所有子目錄中搜索頭文件。在makefile中包含路徑以包含子目錄
[EDIT] Posting the question in more detail
There are three sub folders in a parent folder
parentFolder/child1
parentFolder/child2
parentFolder/child3
There are header files in each all subfolders
Using -I option in makefile for header file path, i have to use
HEADER_PATH += -I./parentFolder
HEADER_PATH += -I./parentFolder/child1
HEADER_PATH += -I./parentFolder/child2
HEADER_PATH += -I./parentFolder/child3
Is there any way I can mention only the parent folder , but the search for header files will happen in all the subfolders also
在第一makefile文件
你使用什麼編譯器?你能告訴我們這個規則嗎? – Beta
我在linux中使用g ++ –