makefile fix for arduino 1.6.9 unzipped
This commit is contained in:
parent
6f71bd7372
commit
494d5770b8
@ -33,10 +33,29 @@
|
|||||||
# 5. 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.
|
# upload your program to the Arduino board.
|
||||||
#
|
#
|
||||||
# Note that all settings are set with ?=, this means you can override them
|
# Note that all settings at the top of this file can be overriden from
|
||||||
# from the commandline with "make HARDWARE_MOTHERBOARD=71" for example
|
# the command line with, for example, "make HARDWARE_MOTHERBOARD=71"
|
||||||
|
#
|
||||||
|
# To compile for RAMPS (atmega2560) with Arduino 1.6.9 at root/arduino you would use...
|
||||||
|
#
|
||||||
|
# make ARDUINO_VERSION=10609 AVR_TOOLS_PATH=/root/arduino/hardware/tools/avr/bin/ \
|
||||||
|
# HARDWARE_MOTHERBOARD=33 ARDUINO_INSTALL_DIR=/root/arduino
|
||||||
|
#
|
||||||
|
# To compile and upload simply add "upload" to the end of the line...
|
||||||
|
#
|
||||||
|
# make ARDUINO_VERSION=10609 AVR_TOOLS_PATH=/root/arduino/hardware/tools/avr/bin/ \
|
||||||
|
# HARDWARE_MOTHERBOARD=33 ARDUINO_INSTALL_DIR=/root/arduino upload
|
||||||
|
#
|
||||||
|
# If uploading doesn't work try adding the parameter "AVRDUDE_PROGRAMMER=wiring" or
|
||||||
|
# start upload manually (using stk500) like so:
|
||||||
|
#
|
||||||
|
# avrdude -C /root/arduino/hardware/tools/avr/etc/avrdude.conf -v -p m2560 -c stk500 \
|
||||||
|
# -U flash:w:applet/Marlin.hex:i -P /dev/ttyUSB0
|
||||||
|
#
|
||||||
|
# Or, try disconnecting USB to power down and then reconnecting before running avrdude.
|
||||||
|
#
|
||||||
|
|
||||||
# This defined the board you are compiling for (see boards.h for the options)
|
# This defines the board to compile for (see boards.h for your board's ID)
|
||||||
HARDWARE_MOTHERBOARD ?= 11
|
HARDWARE_MOTHERBOARD ?= 11
|
||||||
|
|
||||||
# Arduino source install directory, and version number
|
# Arduino source install directory, and version number
|
||||||
@ -237,7 +256,7 @@ else
|
|||||||
HARDWARE_DIR = ../ArduinoAddons/Arduino_0.xx
|
HARDWARE_DIR = ../ArduinoAddons/Arduino_0.xx
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
HARDWARE_SRC = $(HARDWARE_DIR)/marlin/avr/cores/arduino
|
HARDWARE_SRC= $(HARDWARE_DIR)/arduino/avr/cores/arduino
|
||||||
|
|
||||||
TARGET = $(notdir $(CURDIR))
|
TARGET = $(notdir $(CURDIR))
|
||||||
|
|
||||||
@ -251,6 +270,8 @@ VPATH += $(HARDWARE_SRC)
|
|||||||
ifeq ($(HARDWARE_VARIANT), $(filter $(HARDWARE_VARIANT),arduino Teensy Sanguino))
|
ifeq ($(HARDWARE_VARIANT), $(filter $(HARDWARE_VARIANT),arduino Teensy Sanguino))
|
||||||
VPATH += $(HARDWARE_DIR)/marlin/avr/libraries/LiquidCrystal/src
|
VPATH += $(HARDWARE_DIR)/marlin/avr/libraries/LiquidCrystal/src
|
||||||
VPATH += $(HARDWARE_DIR)/marlin/avr/libraries/SPI
|
VPATH += $(HARDWARE_DIR)/marlin/avr/libraries/SPI
|
||||||
|
VPATH += $(HARDWARE_DIR)/arduino/avr/libraries/SPI
|
||||||
|
VPATH += $(ARDUINO_INSTALL_DIR)/libraries/LiquidCrystal/src
|
||||||
ifeq ($(LIQUID_TWI2), 1)
|
ifeq ($(LIQUID_TWI2), 1)
|
||||||
VPATH += $(ARDUINO_INSTALL_DIR)/libraries/Wire
|
VPATH += $(ARDUINO_INSTALL_DIR)/libraries/Wire
|
||||||
VPATH += $(ARDUINO_INSTALL_DIR)/libraries/Wire/utility
|
VPATH += $(ARDUINO_INSTALL_DIR)/libraries/Wire/utility
|
||||||
@ -276,6 +297,7 @@ endif
|
|||||||
ifeq ($(HARDWARE_VARIANT), arduino)
|
ifeq ($(HARDWARE_VARIANT), arduino)
|
||||||
HARDWARE_SUB_VARIANT ?= mega
|
HARDWARE_SUB_VARIANT ?= mega
|
||||||
VPATH += $(ARDUINO_INSTALL_DIR)/hardware/arduino/variants/$(HARDWARE_SUB_VARIANT)
|
VPATH += $(ARDUINO_INSTALL_DIR)/hardware/arduino/variants/$(HARDWARE_SUB_VARIANT)
|
||||||
|
VPATH += $(ARDUINO_INSTALL_DIR)/hardware/arduino/avr/variants/$(HARDWARE_SUB_VARIANT)
|
||||||
else
|
else
|
||||||
ifeq ($(HARDWARE_VARIANT), Sanguino)
|
ifeq ($(HARDWARE_VARIANT), Sanguino)
|
||||||
VPATH += $(HARDWARE_DIR)/marlin/avr/variants/sanguino
|
VPATH += $(HARDWARE_DIR)/marlin/avr/variants/sanguino
|
||||||
@ -297,7 +319,7 @@ CXXSRC = WMath.cpp WString.cpp Print.cpp Marlin_main.cpp \
|
|||||||
SdFile.cpp SdVolume.cpp planner.cpp stepper.cpp \
|
SdFile.cpp SdVolume.cpp planner.cpp stepper.cpp \
|
||||||
temperature.cpp cardreader.cpp configuration_store.cpp \
|
temperature.cpp cardreader.cpp configuration_store.cpp \
|
||||||
watchdog.cpp SPI.cpp servo.cpp Tone.cpp ultralcd.cpp digipot_mcp4451.cpp \
|
watchdog.cpp SPI.cpp servo.cpp Tone.cpp ultralcd.cpp digipot_mcp4451.cpp \
|
||||||
dac_mcp4728.cpp vector_3.cpp qr_solve.cpp buzzer.cpp
|
dac_mcp4728.cpp vector_3.cpp qr_solve.cpp endstops.cpp stopwatch.cpp utility.cpp
|
||||||
ifeq ($(LIQUID_TWI2), 0)
|
ifeq ($(LIQUID_TWI2), 0)
|
||||||
CXXSRC += LiquidCrystal.cpp
|
CXXSRC += LiquidCrystal.cpp
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user