Pages: 1 2 [3]   Go Down
Author Topic: A "simple" makefile for Arduino  (Read 12838 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Karma: 0
Posts: 31
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You can find a much more comprehensive Makefile that will work with regular sketches and libraries here:

It includes some fairly hairy awk that is quite faithful to the processing that Arduino performs on sketches; you can break it but not easily.

The Arducopter makefile seems to need an update for Mac OS X. Update the line which uses Spotlight to search for the location:

--- /Users/alex/Desktop/Inbox/ 2011-08-18 11:40:45.000000000 +1000
+++ 2011-08-18 11:29:38.000000000 +1000
@@ -98,8 +100,8 @@
   ifeq ($(SYSTYPE),Darwin)
     # use Spotlight to find
-    ARDUINO_QUERY = 'kMDItemKind == Application && kMDItemDisplayName =='
-    ARDUINOS := $(addsuffix /Contents/Resources/Java,$(shell mdfind -literal $(ARDUINO_QUERY)))
+    ARDUINO_QUERY = ' kind:Application'
+    ARDUINOS := $(addsuffix /Contents/Resources/Java,$(shell mdfind $(ARDUINO_QUERY)))
     ifeq ($(ARDUINOS),)
       $(error ERROR: Spotlight cannot find Arduino on your system.)

I have written a "dummies guide" to setting this up to work for you.

Pages: 1 2 [3]   Go Up
Jump to: