summaryrefslogtreecommitdiff
path: root/Tonokip_Firmware/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Tonokip_Firmware/Makefile')
-rw-r--r--Tonokip_Firmware/Makefile28
1 files changed, 13 insertions, 15 deletions
diff --git a/Tonokip_Firmware/Makefile b/Tonokip_Firmware/Makefile
index d847f13..7f4f23e 100644
--- a/Tonokip_Firmware/Makefile
+++ b/Tonokip_Firmware/Makefile
@@ -1,35 +1,33 @@
+# Sprinter Arduino Project Makefile
+#
+# Makefile Based on:
# Arduino 0011 Makefile
# Arduino adaptation by mellis, eighthave, oli.keller
#
+# This has been tested with Arduino 0022.
+#
# 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
+# 1. 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
+# 2. 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.
+# 3. 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.
+# 4. Type "make" and press enter to compile/verify your program.
#
-# 7. Type "make upload", reset your Arduino board, and press enter to
+# 5. Type "make upload", reset your Arduino board, and press enter to
# upload your program to the Arduino board.
#
# $Id$
@@ -39,7 +37,7 @@ INSTALL_DIR = /home/chris/arduino-0022
UPLOAD_RATE = 38400
AVRDUDE_PROGRAMMER = stk500v1
PORT = /dev/ttyUSB0
-MCU = atmega644p
+MCU = atmega2560
F_CPU = 16000000
@@ -53,7 +51,7 @@ $(ARDUINO)/wiring_analog.c $(ARDUINO)/wiring_digital.c \
$(ARDUINO)/wiring_pulse.c $(ARDUINO)/wiring_serial.c \
$(ARDUINO)/wiring_shift.c $(ARDUINO)/WInterrupts.c
CXXSRC = $(ARDUINO)/HardwareSerial.cpp $(ARDUINO)/WMath.cpp \
-$(ARDUINO)/Print.cpp
+$(ARDUINO)/Print.cpp ./SdFile.cpp ./SdVolume.cpp ./Sd2Card.cpp
FORMAT = ihex
@@ -95,7 +93,7 @@ LDFLAGS = -lm
# Programming support using avrdude. Settings and variables.
AVRDUDE_PORT = $(PORT)
AVRDUDE_WRITE_FLASH = -U flash:w:applet/$(TARGET).hex
-AVRDUDE_FLAGS = -V -F -C $(INSTALL_DIR)/hardware/tools/avr/etc/avrdude.conf \
+AVRDUDE_FLAGS = -V -F -C $(INSTALL_DIR)/hardware/tools/avrdude.conf \
-p $(MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER) \
-b $(UPLOAD_RATE)