Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

eclipse-cdt

I am new to CDT and I am trying to generate the makefile automatically. I notice that it include three files that doesn't exist at all, makefile.init, makefile.defs, makefile.targets. Just wondering, what do they do? 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
like image 689
Steven Avatar asked Aug 29 '14 19:08

Steven


1 Answers

The three includes are intended for your sake. If you need to compile something proprietary manually, or copy files or anything you can come up with before the main program is compiled, you create the file makefile.init in the source directory and put your makefile-stuff in here.

The same applies to the other files just at other times in the compile chain.

like image 69
Torben Wrang Laursen Avatar answered Sep 17 '22 11:09

Torben Wrang Laursen