Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » unmanaged make files project howto(need to create a new C++ project based on existing makefiles)
unmanaged make files project howto [message #1817714] Thu, 28 November 2019 08:24 Go to next message
Lior Smila is currently offline Lior SmilaFriend
Messages: 2
Registered: November 2019
Junior Member
Hi All,
I have many a project with an unmanaged makefiles. this is an embedded project so I also need to add an AVR32 toolchain (this is next to come).

My question is - how can I create a project which is based on my existing makefiles? Is it by importing the code? or can I somehow set my make file without the need to import the code

Please you help ...


Regards,
Lior.
Re: unmanaged make files project howto [message #1817817 is a reply to message #1817714] Fri, 29 November 2019 15:12 Go to previous message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
with CDT you have two choices.


    *) Managed Build project where Eclipse creates and modifies the makefile
    *) Makfile project where you assume all responsibility for the makefile


If you already have a makefile, import the project with Existing Code as Makefile Project.
File --> Import --> C/C++ --> Existing Code as Makefile Project.
It's your responsibility to maintain the makefile.

The toolchain is mostly for Managed Builds but it is also used to get the compiler builtins.
So, you will need to select one.
You will have to edit the makefile to use it, though.

A Managed Build project is easier for beginners but it will destroy any existing makefile.
One limitation is it can only deal with one executable per project.
Another is you can't do anything fancy when using make.
If you don't know what that means then you probably don't care.

The project can be kept in the workspace but I usually keep it in a separate directory.
It's possible to convert a Makefile Project to Managed Build by setting
Project --> Properties --> C/C++ Build --> Generate Makefiles automatically

[Updated on: Tue, 03 December 2019 11:05]

Report message to a moderator

Previous Topic:CDT and SCons
Next Topic:Build a project
Goto Forum:
  


Current Time: Fri Apr 26 19:33:41 GMT 2024

Powered by FUDForum. Page generated in 0.02990 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top