# Arduino 0011 Makefile# Arduino adaptation by mellis, eighthave, oli.keller## This makefile allows you to build sketches from the command line# without the Arduino environment (or Java).## Detailed instructions for using the makefile:## 1. Copy this file into the folder with your sketch. There should be a# file with the same name as the folder and with the extension .pde# (e.g. foo.pde in the foo/ folder).## 2. Modify the line containg "INSTALL_DIR" to point to the directory that# contains the Arduino installation (for example, under Mac OS X, this# might be /Applications/arduino-0012).## 3. Modify the line containing "PORT" to refer to the filename# representing the USB or serial connection to your Arduino board# (e.g. PORT = /dev/tty.USB0). If the exact name of this file# changes, you can use * as a wildcard (e.g. PORT = /dev/tty.usb*).## 4. Set the line containing "MCU" to match your board's processor. # Older one's are atmega8 based, newer ones like Arduino Mini, Bluetooth# or Diecimila have the atmega168. If you're using a LilyPad Arduino,# change F_CPU to 8000000.## 5. At the command line, change to the directory containing your# program's file and the makefile.## 6. Type "make" and press enter to compile/verify your program.## 7. Type "make upload", reset your Arduino board, and press enter to# upload your program to the Arduino board.## $Id$

applet_files: $(TARGET).pde# Here is the "preprocessing".# It creates a .cpp file based with the same name as the .pde file.# On top of the new .cpp file comes the WProgram.h header.# At the end there is a generic main() function attached.# Then the .cpp file will be compiled. Errors during compile will# refer to this new, automatically generated, file. # Not the original .pde file you actually edit...test -d applet || mkdir appletecho '#include "WProgram.h"' > applet/$(TARGET).cppcat $(TARGET).pde >> applet/$(TARGET).cppcat $(ARDUINO)/main.cxx >> applet/$(TARGET).cpp

Hi Rob, no of course it won't, I just copied and pasted that after I had tried a bunch of different things. I guess I am trying to understand why this makefile points the include search path where it does, which is into the cores. It needs to be told how to find the library include files which are in a bunch of folders beneath the library folder. That's what I'm working on now.