瀏覽代碼

Merge pull request #4756 from thinkyhead/rc_makefilefix

makefile fix for arduino 1.6.9 unzipped
Scott Lahteine 8 年之前
父節點
當前提交
8a8d6e00b7
共有 1 個檔案被更改,包括 27 行新增5 行删除
  1. 27
    5
      Marlin/Makefile

+ 27
- 5
Marlin/Makefile 查看文件

33
 #  5. Type "make upload", reset your Arduino board, and press enter to
33
 #  5. Type "make upload", reset your Arduino board, and press enter to
34
 #     upload your program to the Arduino board.
34
 #     upload your program to the Arduino board.
35
 #
35
 #
36
-# Note that all settings are set with ?=, this means you can override them
37
-# from the commandline with "make HARDWARE_MOTHERBOARD=71" for example
36
+# Note that all settings at the top of this file can be overriden from
37
+# the command line with, for example, "make HARDWARE_MOTHERBOARD=71"
38
+#
39
+# To compile for RAMPS (atmega2560) with Arduino 1.6.9 at root/arduino you would use...
40
+#
41
+#   make ARDUINO_VERSION=10609 AVR_TOOLS_PATH=/root/arduino/hardware/tools/avr/bin/ \
42
+#   HARDWARE_MOTHERBOARD=33 ARDUINO_INSTALL_DIR=/root/arduino
43
+#
44
+# To compile and upload simply add "upload" to the end of the line...
45
+#
46
+#   make ARDUINO_VERSION=10609 AVR_TOOLS_PATH=/root/arduino/hardware/tools/avr/bin/ \
47
+#   HARDWARE_MOTHERBOARD=33 ARDUINO_INSTALL_DIR=/root/arduino upload
48
+# 
49
+# If uploading doesn't work try adding the parameter "AVRDUDE_PROGRAMMER=wiring" or
50
+# start upload manually (using stk500) like so:
51
+#
52
+#   avrdude -C /root/arduino/hardware/tools/avr/etc/avrdude.conf -v -p m2560 -c stk500 \
53
+#   -U flash:w:applet/Marlin.hex:i -P /dev/ttyUSB0
54
+#
55
+# Or, try disconnecting USB to power down and then reconnecting before running avrdude.
56
+#
38
 
57
 
39
-# This defined the board you are compiling for (see boards.h for the options)
58
+# This defines the board to compile for (see boards.h for your board's ID)
40
 HARDWARE_MOTHERBOARD ?= 11
59
 HARDWARE_MOTHERBOARD ?= 11
41
 
60
 
42
 # Arduino source install directory, and version number
61
 # Arduino source install directory, and version number
237
 HARDWARE_DIR = ../ArduinoAddons/Arduino_0.xx
256
 HARDWARE_DIR = ../ArduinoAddons/Arduino_0.xx
238
 endif
257
 endif
239
 endif
258
 endif
240
-HARDWARE_SRC = $(HARDWARE_DIR)/marlin/avr/cores/arduino
259
+HARDWARE_SRC= $(HARDWARE_DIR)/arduino/avr/cores/arduino
241
 
260
 
242
 TARGET = $(notdir $(CURDIR))
261
 TARGET = $(notdir $(CURDIR))
243
 
262
 
251
 ifeq ($(HARDWARE_VARIANT), $(filter $(HARDWARE_VARIANT),arduino Teensy Sanguino))
270
 ifeq ($(HARDWARE_VARIANT), $(filter $(HARDWARE_VARIANT),arduino Teensy Sanguino))
252
 VPATH += $(HARDWARE_DIR)/marlin/avr/libraries/LiquidCrystal/src
271
 VPATH += $(HARDWARE_DIR)/marlin/avr/libraries/LiquidCrystal/src
253
 VPATH += $(HARDWARE_DIR)/marlin/avr/libraries/SPI
272
 VPATH += $(HARDWARE_DIR)/marlin/avr/libraries/SPI
273
+VPATH += $(HARDWARE_DIR)/arduino/avr/libraries/SPI
274
+VPATH += $(ARDUINO_INSTALL_DIR)/libraries/LiquidCrystal/src
254
 ifeq ($(LIQUID_TWI2), 1)
275
 ifeq ($(LIQUID_TWI2), 1)
255
 VPATH += $(ARDUINO_INSTALL_DIR)/libraries/Wire
276
 VPATH += $(ARDUINO_INSTALL_DIR)/libraries/Wire
256
 VPATH += $(ARDUINO_INSTALL_DIR)/libraries/Wire/utility
277
 VPATH += $(ARDUINO_INSTALL_DIR)/libraries/Wire/utility
276
 ifeq ($(HARDWARE_VARIANT), arduino)
297
 ifeq ($(HARDWARE_VARIANT), arduino)
277
 HARDWARE_SUB_VARIANT ?= mega
298
 HARDWARE_SUB_VARIANT ?= mega
278
 VPATH += $(ARDUINO_INSTALL_DIR)/hardware/arduino/variants/$(HARDWARE_SUB_VARIANT)
299
 VPATH += $(ARDUINO_INSTALL_DIR)/hardware/arduino/variants/$(HARDWARE_SUB_VARIANT)
300
+VPATH += $(ARDUINO_INSTALL_DIR)/hardware/arduino/avr/variants/$(HARDWARE_SUB_VARIANT)
279
 else
301
 else
280
 ifeq ($(HARDWARE_VARIANT), Sanguino)
302
 ifeq ($(HARDWARE_VARIANT), Sanguino)
281
 VPATH += $(HARDWARE_DIR)/marlin/avr/variants/sanguino
303
 VPATH += $(HARDWARE_DIR)/marlin/avr/variants/sanguino
297
 	SdFile.cpp SdVolume.cpp planner.cpp stepper.cpp \
319
 	SdFile.cpp SdVolume.cpp planner.cpp stepper.cpp \
298
 	temperature.cpp cardreader.cpp configuration_store.cpp \
320
 	temperature.cpp cardreader.cpp configuration_store.cpp \
299
 	watchdog.cpp SPI.cpp servo.cpp Tone.cpp ultralcd.cpp digipot_mcp4451.cpp \
321
 	watchdog.cpp SPI.cpp servo.cpp Tone.cpp ultralcd.cpp digipot_mcp4451.cpp \
300
-	dac_mcp4728.cpp vector_3.cpp qr_solve.cpp buzzer.cpp
322
+	dac_mcp4728.cpp vector_3.cpp qr_solve.cpp endstops.cpp stopwatch.cpp utility.cpp
301
 ifeq ($(LIQUID_TWI2), 0)
323
 ifeq ($(LIQUID_TWI2), 0)
302
 CXXSRC += LiquidCrystal.cpp
324
 CXXSRC += LiquidCrystal.cpp
303
 else
325
 else

Loading…
取消
儲存