Eclipse CDT creates makefile with makefile.init, makefile.defs, makefile.targets

I am new to CDT and I am trying to create a makefile automatically. I notice that it includes three files that do not exist at all, makefile.init, makefile.defs, makefile.targets. Just wondering what they are doing. and why are they there?

################################################################################ # 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 
+5
source share
1 answer

These three options are for you. If you need to compile something branded manually or copy files or anything you can think of before the main program is compiled, you will create a makefile.init file in the source directory and put your makefile here.

The same applies to other files only at another time in the compilation chain.

+4
source

Source: https://habr.com/ru/post/1201443/


All Articles