-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (36 loc) · 1019 Bytes
/
Makefile
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
31
32
33
34
35
36
37
38
39
40
41
42
PROJECT_DIR = $(PWD)
# on the Linux
ARDUINO_DIR = $(PROJECT_DIR)/core/MegaCore/avr
ALTERNATE_CORE_PATH = $(PROJECT_DIR)/core/MegaCore/avr
ARDMK_DIR = /usr/share/arduino
AVR_TOOLS_DIR = /usr
ARDUINO_PORT = /dev/ttyUSB0
AVRDUDE_CONF = $(ALTERNATE_CORE_PATH)/avrdude.conf
# on the Mac
# ARDUINO_DIR = $(PROJECT_DIR)/core/MegaCore/avr
# ALTERNATE_CORE_PATH = $(PROJECT_DIR)/core/MegaCore/avr
# ARDMK_DIR = /usr/local/opt/arduino-mk
# AVR_TOOLS_DIR = /usr/local
# AVRDUDE_CONF = $(ALTERNATE_CORE_PATH)/avrdude.conf
# ARDUINO_PORT = /dev/tty.SLAB_USBtoUART
AVRDUDE_ARD_PROGRAMMER = arduino
AVRDUDE_ARD_BAUDRATE = 38400
BOARD_TAG = 64
F_CPU = 8000000L
USER_LIB_PATH += $(PROJECT_DIR)/lib
ARDUINO_LIBS += Wire \
SoftwareSerial \
VariableTimedAction \
Adafruit_GPS \
Rtc \
HT16K33 \
KappaGPS \
KappaDateTime \
KappaSegment \
CDS \
DHT \
Button \
NoInteraction
CURRENT_DIR = $(shell basename $(CURDIR))
OBJDIR = $(PROJECT_DIR)/build/$(BOARD_TAG)/$(CURRENT_DIR)
include $(ARDMK_DIR)/Arduino.mk