|
@@ -1,12 +1,12 @@
|
1
|
1
|
# Sprinter Arduino Project Makefile
|
2
|
|
-#
|
|
2
|
+#
|
3
|
3
|
# Makefile Based on:
|
4
|
4
|
# Arduino 0011 Makefile
|
5
|
5
|
# Arduino adaptation by mellis, eighthave, oli.keller
|
6
|
6
|
# Marlin adaption by Daid
|
7
|
7
|
#
|
8
|
8
|
# This has been tested with Arduino 0022.
|
9
|
|
-#
|
|
9
|
+#
|
10
|
10
|
# This makefile allows you to build sketches from the command line
|
11
|
11
|
# without the Arduino environment (or Java).
|
12
|
12
|
#
|
|
@@ -21,7 +21,7 @@
|
21
|
21
|
# (e.g. UPLOAD_PORT = /dev/tty.USB0). If the exact name of this file
|
22
|
22
|
# changes, you can use * as a wildcard (e.g. UPLOAD_PORT = /dev/tty.usb*).
|
23
|
23
|
#
|
24
|
|
-# 3. Set the line containing "MCU" to match your board's processor.
|
|
24
|
+# 3. Set the line containing "MCU" to match your board's processor.
|
25
|
25
|
# Older one's are atmega8 based, newer ones like Arduino Mini, Bluetooth
|
26
|
26
|
# or Diecimila have the atmega168. If you're using a LilyPad Arduino,
|
27
|
27
|
# change F_CPU to 8000000. If you are using Gen7 electronics, you
|
|
@@ -44,7 +44,7 @@ ARDUINO_INSTALL_DIR ?= ../../arduino-0022
|
44
|
44
|
ARDUINO_VERSION ?= 22
|
45
|
45
|
|
46
|
46
|
# You can optionally set a path to the avr-gcc tools. Requires a trailing slash. (ex: /usr/local/avr-gcc/bin)
|
47
|
|
-AVR_TOOLS_PATH ?=
|
|
47
|
+AVR_TOOLS_PATH ?=
|
48
|
48
|
|
49
|
49
|
#Programmer configuration
|
50
|
50
|
UPLOAD_RATE ?= 115200
|
|
@@ -213,7 +213,7 @@ CXXSRC = WMath.cpp WString.cpp Print.cpp Marlin_main.cpp \
|
213
|
213
|
SdFile.cpp SdVolume.cpp motion_control.cpp planner.cpp \
|
214
|
214
|
stepper.cpp temperature.cpp cardreader.cpp ConfigurationStore.cpp \
|
215
|
215
|
watchdog.cpp
|
216
|
|
-CXXSRC += LiquidCrystal.cpp ultralcd.cpp SPI.cpp
|
|
216
|
+CXXSRC += LiquidCrystal.cpp ultralcd.cpp SPI.cpp Servo.cpp
|
217
|
217
|
|
218
|
218
|
#Check for Arduino 1.0.0 or higher and use the correct sourcefiles for that version
|
219
|
219
|
ifeq ($(shell [ $(ARDUINO_VERSION) -ge 100 ] && echo true), true)
|
|
@@ -317,19 +317,19 @@ endif
|
317
|
317
|
# Default target.
|
318
|
318
|
all: sizeafter
|
319
|
319
|
|
320
|
|
-build: $(BUILD_DIR) elf hex
|
|
320
|
+build: $(BUILD_DIR) elf hex
|
321
|
321
|
|
322
|
322
|
# Creates the object directory
|
323
|
|
-$(BUILD_DIR):
|
|
323
|
+$(BUILD_DIR):
|
324
|
324
|
$P mkdir -p $(BUILD_DIR)
|
325
|
325
|
|
326
|
326
|
elf: $(BUILD_DIR)/$(TARGET).elf
|
327
|
327
|
hex: $(BUILD_DIR)/$(TARGET).hex
|
328
|
328
|
eep: $(BUILD_DIR)/$(TARGET).eep
|
329
|
|
-lss: $(BUILD_DIR)/$(TARGET).lss
|
|
329
|
+lss: $(BUILD_DIR)/$(TARGET).lss
|
330
|
330
|
sym: $(BUILD_DIR)/$(TARGET).sym
|
331
|
331
|
|
332
|
|
-# Program the device.
|
|
332
|
+# Program the device.
|
333
|
333
|
# Do not try to reset an arduino if it's not one
|
334
|
334
|
upload: $(BUILD_DIR)/$(TARGET).hex
|
335
|
335
|
ifeq (${AVRDUDE_PROGRAMMER}, arduino)
|
|
@@ -356,7 +356,7 @@ COFFCONVERT=$(OBJCOPY) --debugging \
|
356
|
356
|
--change-section-address .data-0x800000 \
|
357
|
357
|
--change-section-address .bss-0x800000 \
|
358
|
358
|
--change-section-address .noinit-0x800000 \
|
359
|
|
- --change-section-address .eeprom-0x810000
|
|
359
|
+ --change-section-address .eeprom-0x810000
|
360
|
360
|
|
361
|
361
|
|
362
|
362
|
coff: $(BUILD_DIR)/$(TARGET).elf
|