Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Adding custom makefile to build(How do you have eclipse execute your own makefile?)
Adding custom makefile to build [message #989516] Thu, 06 December 2012 15:09 Go to next message
JD Wong is currently offline JD WongFriend
Messages: 7
Registered: November 2012
Junior Member
I'm using Eclipse for C/C++ developers
Version: Indigo Service Release 2
Build id: 20120216-1857

This is my first time using Eclipse for C. I have my own code + makefile which I want to run within Eclipse, aka not a CDT-generated project. To run it in Unix terminal, I execute my own makefile and run the named executable.

When I try to run main.c in Eclipse, it won't execute (binary not found).

How can I configure my makefile into the build?

Thanks!
Re: Adding custom makefile to build [message #989582 is a reply to message #989516] Thu, 06 December 2012 20:31 Go to previous message
Ivan Galicia is currently offline Ivan GaliciaFriend
Messages: 17
Registered: September 2012
Junior Member
Hi wong,

I have my on make file and I use to execute through a bath file, I assume that you are doing is similar way using a .sh file in stead of a .bat file

properties for "YourProject" -> Builder Setting

1) uncheck "use defualt build command"
2) in build Command set the path of your .sh file (in my case: ${workspace_loc:/myproject/Configuration}/Go.bat)
3) uncheck "Generate Makefiles automatically"
3) set the build location (in my case: ${workspace_loc:/myproject/Configuration})

at Behavior set the proper parameter or uncheck the box that you will no need.

I hope this helps you.

Regards
Previous Topic:Errors appear and disappear depending on if file is open
Next Topic:ARM DS-5 c/c++ project
Goto Forum:
  


Current Time: Wed Nov 26 14:27:07 GMT 2014

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

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