Topic : makefile usage

Forum : Ride IDE

Original Post
Post Information Post
February 8, 2009 - 2:23pm
Guest

hello everybody,

I am a newbie regarding the ride-ide but i am surprised about the tool - great.
But I am looking for the possibility to use a makefile or to generate a makefile in order to compile the sources without the ride-ide.
Is there a tool or an option to generate makefile of the project ?

t.i.a & kind regards
Joe

Replies
Post Information Post
+1
0
-1
February 9, 2009 - 10:38am
Raisonance Support Team

Hi,

No there is no Makefile generator in Ride. (not for now at least ;) )

What you can do is compile once in Ride, and then you will be able to copy the command lines from the build window and paste them in a batch or Makefile or whatever.

But after that you have to handle everything manually (adding a source or header file, changing an option, etc.) or repeat the whole process. (compile in Ride, copy command lines)

Best Regards,

Vincent

+1
0
-1
May 27, 2009 - 11:12am
Guest

Well it is about time that I start doing some automated building for my projects aswell..

When I release software my process with other processors have been (And it will be the same with STM32 projects):
- Automatically create a version (headerfile etc) that will be part of the final .elf image so that it can be extracted in the field
- Automatically check in new version file into version repository
- Automatially tag correct versions of sourcefiles and projects in repository
- Update a clean directory to the tagged versions of the source.
- Do automatic build of applications
- Create any needed installers, modify binary if needed and move release to designated release spot.
- Create a report about build settings, size etc.

All this is automatically done in order to avoid forgetting something.
Now I need to do the same with RIDE. I realise that I could manually create gnu makefiles, but this would inevitably cause errors, when a project is changed in Ride, but by mistake not updated in the makefile.
Then I could create a tool to parse the rprj and rapp files and automatically create suitable makefiles from that. Apart from the work involved, there is a risk that you guys decide to alter the rprj and rapp file structure and then I need to play catch up or stay at an older version of ride..

However I would not mind just to use Ride from the command line to execute my builds. Is there a way to do this or would you please consider making this possible?

Any other way to handle the release of several applications automatically would be appriciated.

+1
0
-1
October 1, 2009 - 2:32pm
Guest

Shameless - BUMP
I would still like to hear if Raisonance plan on adding any form of automated build functions to RIDE? So that we can make it a part of an automatic release script.
If not I need to make a tool to parse and build from rapp files, because I really want it in order or reliably be able to create releases with 100% trackability..

A good and (IMO) relative simple option would be to implement a simple command line interface to ride.exe - All I need is the possibility to do something like:
"ride7.exe -build testproject.rapp"
from within a batch file and return an errorlevel on failed builds and either a logfile or commandline output of build log during the build.

BR
Henrik

+1
0
-1
October 1, 2009 - 3:34pm
Guest

In the coming version of Ride7, the building process could be automated using Ride7 jcript player.

The user will be able to write jscript files calling directly the projectmanager functionalities like opening project files, building them, debugging them.

Behnaz

+1
0
-1
October 2, 2009 - 9:00am
Guest

Hope that can solve my issues with getting a release process in order then, before I am forced to do it by creating my own .rapp parser.

It need to be able to work together with our version control (cvs/svn) and other external tools? Or at the very least generate a form of makefile that a another maketool will accept (i like gnu make)

BR
Henrik

+1
0
-1
October 5, 2009 - 12:08pm
Guest

The scripting facilities in Ride7 will be for automating Ride7 commands (build, debug, etc)

If you want to use Ride7 to generate makefiles in spite of running the make tools you can already do it with modifying the tools ".config" files.

For example in GCC.config you can find the different steps for building the gcc command line. You can modify these steps to generate any kind of makefile you need , or launch any application you want.

Best regards,
Behnaz

+1
0
-1
October 6, 2009 - 10:04am
Guest

Thanks will look into them - You guy's don't brag about how one can customize Ride - I find it very hard to locate any descriptions or usable documenatation for the IDE!

Looking at the .Config files they do seem very flexible - But also a bit overwhelming to alter, when you don't have any documentation - I can reconize some Java code and some xml code, but how it all is connected.. I have to reverse engineer as far as I can tell.

BR
Henrik