-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathMakefile
76 lines (66 loc) · 2.56 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#########################################
# #
# Make OpenBCI Wifi Module #
# #
#########################################
#########################################
# makeEspArduino Source #
#########################################
# from: https://github.com/plerup/makeEspArduino
makeEspArduino ?= $(HOME)/makeEspArduino/makeEspArduino.mk
#########################################
# Arduino Lib #
#########################################
ARDUINO_LIBS ?= $(HOME)/Documents/Arduino/libraries
#########################################
# Arduino Sketch #
#########################################
SKETCH ?= $(ARDUINO_LIBS)/OpenBCI_WIFI/examples/DefaultWifiShield/DefaultWifiShield.ino
#########################################
# OpenBCI Lib #
#########################################
OPENBCI_WIFI_DIR ?= $(ARDUINO_LIBS)/OpenBCI_WIFI
OPENBCI_WIFI_LIB ?= $(OPENBCI_WIFI_DIR)/src
#########################################
# ESP8266 Lib #
#########################################
ESP_ROOT ?= $(HOME)/esp8266
ESP_LIBS ?= $(ESP_ROOT)/libraries
#########################################
# Board Info #
#########################################
HTTP_ADDR ?= OpenBCI-2114.local
UPLOAD_PORT ?= /dev/ttyUSB0
# BOARD ?= openbci
BOARD ?= huzzah
FLASH_DEF ?= 4M1M
F_CPU ?= 80000000l
#########################################
# Include/Exclude Libs #
#########################################
LIBS ?= $(OPENBCI_WIFI_LIB) \
$(ARDUINO_LIBS)/WiFiManager \
$(ARDUINO_LIBS)/ArduinoJson \
$(ARDUINO_LIBS)/PubSubClient \
$(ARDUINO_LIBS)/Time \
$(ARDUINO_LIBS)/NTPClient \
$(ESP_LIBS)/Wire \
$(ESP_LIBS)/GDBStub \
$(ESP_LIBS)/ESP8266WiFi \
$(ESP_LIBS)/DNSServer \
$(ESP_LIBS)/ESP8266SSDP \
$(ESP_LIBS)/ESP8266WebServer \
$(ESP_LIBS)/ESP8266HTTPClient \
$(ESP_LIBS)/SPISlave \
$(ESP_LIBS)/ESP8266mDNS \
$(ESP_LIBS)/ESP8266HTTPUpdateServer \
$(ESP_LIBS)/ArduinoOTA
EXCLUDE_DIRS ?= $(ARDUINO_LIBS)/ArduinoJson/test \
$(ARDUINO_LIBS)/ArduinoJson/third-party \
$(ARDUINO_LIBS)/ArduinoJson/fuzzing \
$(ARDUINO_LIBS)/WebSockets/examples \
$(ARDUINO_LIBS)/PubSubClient/tests \
$(ARDUINO_LIBS)/OpenBCI_WIFI/test \
$(ARDUINO_LIBS)/OpenBCI_WIFI/tests-ptw-assert \
$(ARDUINO_LIBS)/OpenBCI_WIFI/extras
include $(makeEspArduino)