2014-08-29 60 views
5

我是CDT的新手,我試圖自動生成makefile。我注意到它包含三個根本不存在的文件,makefile.init,makefile.defs,makefile.targets。 只是想知道,他們做什麼?爲什麼他們在那裏?Eclipse CDT使用makefile.init生成makefile,makefile.defs,makefile.targets

################################################################################ 
# Automatically-generated file. Do not edit! 
################################################################################ 

-include ../makefile.init 

RM := rm -rf 

# All of the sources participating in the build are defined here 
-include sources.mk 
-include subdir.mk 
-include objects.mk 

#Other codes 

-include ../makefile.defs 

# Add inputs and outputs from these tool invocations to the build variables 

#Other codes 

-include ../makefile.targets 

回答

4

這三個包括是爲你着想。 如果你需要手動編譯一些專有的東西,或者在編譯主程序之前複製文件或任何你能想到的東西,你可以在源代碼目錄下創建文件makefile.init,並將makefile-stuff放在這裏。

其他文件中的情況也同樣適用於編譯鏈中的其他時間。

相關問題