---------- Forwarded message ----------
From: ea <and...@piffa.net>
Date: Tue, Jan 3, 2012 at 2:44 PM
Subject: Re: Bug#654162: Arduino 1.0 and MJO Makefile
To: Scott Howard <show...@debian.org>


On Tue, Jan 03, 2012 at 12:05:41PM -0500, Scott Howard wrote:

> @Andrea: The Makefile comes from:
> http://mjo.tc/atelier/2009/02/arduino-cli.html
> Now that MJO is releasing the Makefile, I think I'll separate out the
> makefile from the arduino-core package and have it depend on
> arduino-core. I'll downgrade the bug too since the package isn't
> unusable, it works fine with the java bits and if users want the core
> libraries. The Makefile, however, is unusable and will be moved to a
> separate package once we figure out a working version.
>
> Cheers,
> Scott
Hi, tanks for looking into it.
I see that Eclipse users are using arduino-core, so I guess too that
the problem is with the Makefile not in sync with the "framework".

If I'll be able to figure out a decent way to include the right arduino_pins.h
I'll b happy to contribute. With the right arduino_pins.h the actual makefile
does job: I can compile and upload with it with just this change:

diff Arduino.mk ../arduino_andrea/Arduino.mk
61c61
< #                   this would match the .pde file, but it's not needed
---
> #                   this would match the .ino file, but it's not needed
75c75
< #  - at most one .pde file which will be treated as C++ after the standard
---
> #  - at most one .ino file which will be treated as C++ after the standard
154c154
< LOCAL_PDE_SRCS  = $(wildcard *.pde)
---
> LOCAL_PDE_SRCS  = $(wildcard *.ino)
157c157
<               $(LOCAL_CC_SRCS:.cc=.o) $(LOCAL_PDE_SRCS:.pde=.o) \
---
>               $(LOCAL_CC_SRCS:.cc=.o) $(LOCAL_PDE_SRCS:.ino=.o) \
220c220
< PDEHEADER     = \\\#include \"WProgram.h\"
---
> PDEHEADER     = \\\#include \"Arduino.h\"
271,272c271,272
< # the pde -> cpp -> o file
< $(OBJDIR)/%.cpp: %.pde
---
> # the ino -> cpp -> o file
> $(OBJDIR)/%.cpp: %.ino

The problem (as far as I understand) is the conditional statement
that loads the right arduino_pins.h in:
- arduino/hardware/arduino/cores/arduino/Arduino.h
- arduino/hardware/arduino/cores/arduino/Tone.cpp
- arduino/hardware/arduino/cores/arduino/wiring_analog.c
- arduino/hardware/arduino/cores/arduino/wiring_digital.c
- arduino/hardware/arduino/cores/arduino/wiring_pulse.c


Regards and happy new year!
/A.Manni



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to