Add makefile
This commit is contained in:
parent
005d98332d
commit
c59e8b96be
3 changed files with 23 additions and 0 deletions
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
[submodule "Arduino-Makefile"]
|
||||
path = arduino-makefile
|
||||
url = https://github.com/sudar/Arduino-Makefile
|
1
arduino-makefile
Submodule
1
arduino-makefile
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 6f786a96b0acfb0c9b2d2f4e39911d2803088729
|
19
src/makefile
Normal file
19
src/makefile
Normal file
|
@ -0,0 +1,19 @@
|
|||
ARCHITECTURE = avr
|
||||
BOARD_TAG = nano
|
||||
BOARD_SUB = atmega328old
|
||||
ARDUINO_LIBS = arduino-mcp2515
|
||||
|
||||
ARDUINO_DEV ?= /dev/ttyUSB0
|
||||
|
||||
ARDUINO_VERSION ?= 1.5
|
||||
ifeq ($(origin ARDUINO_SKETCHBOOK), undefined)
|
||||
ARDUINO_SKETCHBOOK := $(shell sed -n 's/^sketchbook.path=//p' ~/.arduino$(subst .,,$(ARDUINO_VERSION))/preferences.txt)
|
||||
endif
|
||||
ifeq ($(origin BOARDS_TXT), undefined)
|
||||
BOARDS_TXT := $(shell locate '*/arduino/*/boards.txt') # ¯\_(ツ)_/¯
|
||||
endif
|
||||
|
||||
ARDMK_DIR ?= ../arduino-makefile
|
||||
AVR_TOOLS_DIR ?= /usr
|
||||
|
||||
include $(ARDMK_DIR)/Arduino.mk
|
Loading…
Reference in a new issue