Pages: [1]   Go Down
Author Topic: Alternative to IDE - Arduino Makefile!  (Read 8809 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have built a makefile to automatically compile Arduino programs and libraries, the makefile even searches recursivelly for source code (for both the program and the libraries). I've included the default lib (called, creatively, as default), and modified it a little (I've included a Serial.printf method, to help you guys).

The makefile also checks the size of the application and uploads it to the board (make upload).


Here's the git repository: http://github.com/takanuva/arduino-makefile

Let me know what you think! =D
Thanks, and enjoy. ^^
« Last Edit: September 10, 2010, 01:43:57 pm by takanuva » Logged

Brazil
Offline Offline
Newbie
*
Karma: 0
Posts: 6
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Great idea man. With this we have option to actual IDE. I will try it this weekend.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I would also be a great idea if the Arduino' creators consider modifying my code to something more generic and putting it in the oficial website (www.arduino.cc) along with the IDE (lalalalalalalala smiley-razz).

Anyway... Thank you! smiley-lol
Logged

North Yorkshire, UK
Offline Offline
Faraday Member
**
Karma: 104
Posts: 5531
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
With this we have option to actual IDE
Well there are also many many other alternative IDEs which people have got to work with the Arduino.
« Last Edit: October 07, 2010, 05:25:57 am by mowcius » Logged

Netherlands
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks Takanuva! This is great news. I love the Arduino but the IDE is somewhat 'outdated', even KDE's Kate is more convenient..  So I support you in your request to make this code part of the official repository.

@mowcius, Can you name a few? I have done some research myself but can't find anything that supports my needs. Any help would be appreciated.

Regards.

Coen
Logged

North Yorkshire, UK
Offline Offline
Faraday Member
**
Karma: 104
Posts: 5531
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
@mowcius, Can you name a few? I have done some research myself but can't find anything that supports my needs. Any help would be appreciated.

A quick search will show you what you want.
Logged

Fresno, CA, USA
Offline Offline
Full Member
***
Karma: 1
Posts: 153
Arduino rocks (literally, with a WaveShield!)
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Ohhhhh GOD I hate it when people reply like that. "Just search". What if someone searched and found this topic? Search again? Another topic: "Just search!"... it's responses like that that are directly responsible for information rot on the internet. If you don't have anything constructive to contribute, don't reply. However, I suggest an alternative: if you know the information, contribute it, even if you have to do it a thousand times - if you get tired of doing so, someone else will probably take up the slack as long as some jerkoff didn't reply with "just search".

Also, you even quoted the guy saying he's done some research already (e.g. "a quick search").

/rant.

I'm mostly curious about getting the Arduino IDE to actually tell me what's going on "in its head" when I go to compile. It seems to run a long chain of various programs but it only tells me the final result, even with verbose output... that would go a long way to helping me find alternative methods anyway.  8-)
Logged

Netherlands
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@mowcius
Yes, you might be right but it only follows for the Windows scene. I am a Linux addict so the number of alternatives is what limited. Any advice would still be appreciated, because I can't find anything really usefull my self.
Logged

North Yorkshire, UK
Offline Offline
Faraday Member
**
Karma: 104
Posts: 5531
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Ohhhhh GOD I hate it when people reply like that. "Just search".
Well I was just being truthful.

I have seen many alternative IDEs but to get to them I use the search bar...

But just for you:
http://www.codeproject.com/KB/system/Arduino_Unleashed.aspx - Using eclipse
http://dimeb.informatik.uni-bremen.de/eduwear/?cat=9 - Not sure, just found this now...
http://www.modk.it/ Modkit - scratch based programming environment.
http://smileymicros.com/blog/?p=221 Ard-up - arduino hex file uploader

Some of those are not quite what you're after but interesting anyway.

Lots of people have used eclipse with the arduino but I'm not going to try link all that info.

Mowcius
Logged

Netherlands
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks mowicus for commenting on this.
The Modkit looks nice. But I prefer to stick to common c/c++ that's more my piece of cake.
Eclipse might be the right way to go. (Would prefer Netbeans.)
I got the impression that the unleashed version is rather Windows oriented. So, I think I'll stick by Takanuva's solution for now.


Logged

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 11
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Makefiles are definitely a useful alternative to the IDE.  We used to include one with the distribution, but no one maintained it and I didn't really have the resources to do it myself.  There are now a few different Makefiles out there, e.g.:
http://bleaklow.com/2010/06/04/a_makefile_for_arduino_sketches.html
http://mjo.tc/atelier/2009/02/arduino-cli.html

If people standardize on one and keep it maintained, then I can include it in the distribution again.  
Logged

North Yorkshire, UK
Offline Offline
Faraday Member
**
Karma: 104
Posts: 5531
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ahh that's where they are...
Logged

Offline Offline
Full Member
***
Karma: 0
Posts: 125
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Nice.

Now when I get one of these makefiles hooked up to Scite then it will be multiplatform.

When I get some time.....


edit:  O yeah I remember looking at the OP "make".  Its  makefile GENERATOR, that seems to use Ruby? (.rb files).  Looks like a total waste to me, hopefully one of the others is a real makefile???

« Last Edit: October 21, 2010, 08:29:17 am by jmrobert » Logged

Guildford, UK
Offline Offline
Full Member
***
Karma: 0
Posts: 218
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What would I need to make this work in Windows. I'm guessing that this was written for linux?
Logged

0
Offline Offline
Faraday Member
**
Karma: 23
Posts: 3470
20 LEDs are enough
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

If you never worked with makefiles you might prefer to start with scons instead.

http://code.google.com/p/arscons/

Sconstruct files are much easier to comprehend. Of course make is *the* standard. But scons is superior.

Udo
Logged

Check out my experiments http://blog.blinkenlight.net

Pages: [1]   Go Up
Jump to: