blob: 86ad49e1c7cbd5ff748577ecde7ee907e724ecdd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
AVR_TOOLS_DIR = /usr
ARDUINO_DIR = /usr/local/arduino
ARDMK_DIR = /usr/share/arduino
ARDMK_VENDOR = arduino
ARCHITECTURE = avr
BOARD_TAG = model01
ALTERNATE_CORE = keyboardio
ARDUINO_SKETCHBOOK = ./lib
ARDUINO_VERSION = $(shell tr "." "0" <$(ARDUINO_DIR)/lib/version.txt)
SOURCEDIR = ./src
OBJDIR = ./build
LOCAL_CPP_SRCS = $(wildcard $(SOURCEDIR)/*.cpp)
LOCAL_INO_SRCS = $(wildcard $(SOURCEDIR)/*.ino)
USER_LIB_PATH = $(ALTERNATE_CORE_PATH)/libraries
ARDUINO_LIBS = EEPROM Kaleidoscope Kaleidoscope-HIDAdaptor-KeyboardioHID KeyboardioHID KeyboardioScanner
# extra definitions from boards.txt
CXXFLAGS = -DARDUINO_AVR_MODEL01 \
-DUSB_MANUFACTURER="\"keyboardio\"" -DUSB_PRODUCT="\"Model 01\"" \
-DKALEIDOSCOPE_HARDWARE_H="\"Kaleidoscope-Hardware-Model01.h\""
AVRDUDE_OPTS = -q
AVRDUDE_CONF = /etc/avrdude.conf
#MONITOR_PORT = $(firstword $(wildcard /dev/serial/by-id/usb-keyboardio_Model_01_*))
include $(ARDMK_DIR)/Arduino.mk
|