<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,4 +1,4 @@
-# Arduino 0011 Makefile
+# Arduino 0015 Makefile
 # Arduino adaptation by mellis, eighthave, oli.keller
 #
 # This makefile allows you to build sketches from the command line
@@ -35,12 +35,11 @@
 # $Id$
 
 TARGET = $(notdir $(CURDIR))
-# This should be a symbolic link to the arduino IDE directory:
-INSTALL_DIR = ../arduino_install_dir
-PORT = /dev/ttyUSB*
-UPLOAD_RATE = 19200
+INSTALL_DIR = /home/orluke/source_code/arduino
+PORT = /dev/ttyUSB0
+UPLOAD_RATE = 115200
 AVRDUDE_PROGRAMMER = stk500v1
-MCU = atmega168
+MCU = atmega328p
 F_CPU = 16000000
 
 ############################################################################
@@ -48,10 +47,7 @@ F_CPU = 16000000
 
 ARDUINO = $(INSTALL_DIR)/hardware/cores/arduino
 AVR_TOOLS_PATH = /usr/bin
-SRC =  $(ARDUINO)/pins_arduino.c $(ARDUINO)/wiring.c \
-$(ARDUINO)/wiring_analog.c $(ARDUINO)/wiring_digital.c \
-$(ARDUINO)/wiring_pulse.c $(ARDUINO)/wiring_serial.c \
-$(ARDUINO)/wiring_shift.c $(ARDUINO)/WInterrupts.c
+SRC = $(ARDUINO)/wiring_shift.c $(ARDUINO)/WInterrupts.c
 CXXSRC = $(ARDUINO)/HardwareSerial.cpp $(ARDUINO)/WMath.cpp \
 $(ARDUINO)/Print.cpp
 FORMAT = ihex
@@ -149,7 +145,7 @@ lss: applet/$(TARGET).lss
 sym: applet/$(TARGET).sym
 
 # Program the device.  
-upload: applet/$(TARGET).hex
+upload: 
 	$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH)
 
 
@@ -224,6 +220,13 @@ applet/core.a: $(OBJ)
 	$(CC) -c $(ALL_ASFLAGS) $&lt; -o $@
 
 
+# Automatic dependencies
+%.d: %.c
+	$(CC) -M $(ALL_CFLAGS) $&lt; | sed &quot;s;$(notdir $*).o:;$*.o $*.d:;&quot; &gt; $@
+
+%.d: %.cpp
+	$(CXX) -M $(ALL_CXXFLAGS) $&lt; | sed &quot;s;$(notdir $*).o:;$*.o $*.d:;&quot; &gt; $@
+
 
 # Target: clean project.
 clean:
@@ -231,15 +234,7 @@ clean:
 	applet/$(TARGET).map applet/$(TARGET).sym applet/$(TARGET).lss applet/core.a \
 	$(OBJ) $(LST) $(SRC:.c=.s) $(SRC:.c=.d) $(CXXSRC:.cpp=.s) $(CXXSRC:.cpp=.d)
 
-depend:
-	if grep '^# DO NOT DELETE' $(MAKEFILE) &gt;/dev/null; \
-	then \
-		sed -e '/^# DO NOT DELETE/,$$d' $(MAKEFILE) &gt; \
-			$(MAKEFILE).$$$$ &amp;&amp; \
-		$(MV) $(MAKEFILE).$$$$ $(MAKEFILE); \
-	fi
-	echo '# DO NOT DELETE THIS LINE -- make depend depends on it.' \
-		&gt;&gt; $(MAKEFILE); \
-	$(CC) -M -mmcu=$(MCU) $(CDEFS) $(CINCS) $(SRC) $(ASRC) &gt;&gt; $(MAKEFILE)
-
-.PHONY:	all build elf hex eep lss sym program coff extcoff clean depend applet_files sizebefore sizeafter
+.PHONY:	all build elf hex eep lss sym program coff extcoff clean applet_files sizebefore sizeafter
+
+include $(SRC:.c=.d)
+include $(CXXSRC:.cpp=.d)</diff>
      <filename>firmware/arduino/basic_msg/Makefile</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>hardware/a-31_modifications/panel-arduino.dxf</filename>
    </removed>
    <removed>
      <filename>hardware/a-31_modifications/panel-sensors.dxf</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>c7a66da2a4a0ea3eee3482aef5164d4ded3df75f</id>
    </parent>
  </parents>
  <author>
    <name>LJO</name>
    <email>orluke@gmail.com</email>
  </author>
  <url>http://github.com/evanfarrar/opensprints/commit/ee429f284622bec53ec67480590b17072438efb8</url>
  <id>ee429f284622bec53ec67480590b17072438efb8</id>
  <committed-date>2009-11-12T21:31:20-08:00</committed-date>
  <authored-date>2009-11-12T21:31:20-08:00</authored-date>
  <message>removed non letter-etched faceplate drawings</message>
  <tree>669daf89466e287613e585781080198cea588b1d</tree>
  <committer>
    <name>LJO</name>
    <email>orluke@gmail.com</email>
  </committer>
</commit>
