我是CDT的新手,我正在尝试自动生成makefile。我注意到它包含三个根本不存在的文件,makefile.init、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
发布于 2014-11-26 13:28:22
这三项都是为了你而准备的。如果您需要手动编译一些专有的东西,或者在编译主程序之前复制文件或任何您可以想出的东西,那么您可以在源目录中创建文件makefile.init,然后将makefile-东西放在这里。
同样的情况也适用于编译链中的其他文件。
https://stackoverflow.com/questions/25575244
复制相似问题