diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2007-04-13 03:55:16 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2007-04-13 03:55:16 +0000 |
commit | 851f439038566e73bf77baec4e50ade1e5c0ef15 (patch) | |
tree | fec48ddddcbc1808afaf802adbcd8fb337b98cdc /Pd_firmware/Makefile | |
parent | 383c0fa52337b111260581c5892cac3a11e6d2d5 (diff) |
sketched out EEPROM library support, but it doesn't work yet ; renamed some variables for clarity ; made digital pins set to OUTPUT by default so that you don't get lots of random data, unless you want it ;)
svn path=/trunk/externals/hardware/arduino/; revision=7558
Diffstat (limited to 'Pd_firmware/Makefile')
-rw-r--r-- | Pd_firmware/Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Pd_firmware/Makefile b/Pd_firmware/Makefile index d31c48a..82af842 100644 --- a/Pd_firmware/Makefile +++ b/Pd_firmware/Makefile @@ -43,16 +43,20 @@ # 7. Type "make upload", reset your Arduino board, and press enter to # upload your program to the Arduino board. # -# $Id: Makefile,v 1.5 2007-03-05 04:34:32 eighthave Exp $ +# $Id: Makefile,v 1.6 2007-04-13 03:55:16 eighthave Exp $ -PORT = /dev/tty.usbserial-1* +PORT = /dev/tty.usbserial-* TARGET = Pd_firmware ARDUINO = /Applications/arduino-0007 ARDUINO_SRC = $(ARDUINO)/lib/targets/arduino -INCLUDE = -I$(ARDUINO_SRC) -I$(ARDUINO)/tools/avr/avr/include +ARDUINO_LIB_SRC = $(ARDUINO)/lib/targets/libraries +INCLUDE = -I$(ARDUINO_SRC) -I$(ARDUINO)/tools/avr/avr/include \ + -I$(ARDUINO)/lib/targets/libraries/EEPROM \ + -I$(ARDUINO)/lib/targets/libraries SRC = $(ARDUINO_SRC)/pins_arduino.c $(ARDUINO_SRC)/wiring.c \ $(ARDUINO_SRC)/WInterrupts.c CXXSRC = applet/$(TARGET).cpp $(ARDUINO_SRC)/HardwareSerial.cpp \ + $(ARDUINO_LIB_SRC)/EEPROM/EEPROM.cpp \ $(ARDUINO_SRC)/WRandom.cpp MCU = atmega8 F_CPU = 16000000 @@ -215,6 +219,7 @@ clean: $(REMOVE) applet/$(TARGET).hex applet/$(TARGET).eep applet/$(TARGET).cof applet/$(TARGET).elf \ $(TARGET).map applet/$(TARGET).sym applet/$(TARGET).lss \ $(OBJ) $(LST) $(SRC:.c=.s) $(SRC:.c=.d) $(CXXSRC:.cpp=.s) $(CXXSRC:.cpp=.d) + find $(ARDUINO)/lib/ -name '*.o' -delete depend: if grep '^# DO NOT DELETE' $(MAKEFILE) >/dev/null; \ |