Skip to main content



      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 03:24 Go to next message
Eclipse UserFriend
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 10:12 Go to previous message
Eclipse UserFriend
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 06:05] by Moderator

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


Current Time: Wed Jun 18 15:14:06 EDT 2025

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

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

Back to the top