summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2016-04-29 17:50:09 +0100
committerdakkar <dakkar@thenautilus.net>2016-04-29 17:50:09 +0100
commita43ed8cc544eefd47366fc07f20138610f891e94 (patch)
tree551851e1c4ec2aaeea08edcc6e222f99a113dc28
parentstart using a vcs (diff)
downloadkeepon-eeg-a43ed8cc544eefd47366fc07f20138610f891e94.tar.gz
keepon-eeg-a43ed8cc544eefd47366fc07f20138610f891e94.tar.bz2
keepon-eeg-a43ed8cc544eefd47366fc07f20138610f891e94.zip
use Arduino-Makefile
-rw-r--r--.gitignore1
-rw-r--r--Makefile20
2 files changed, 21 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..cebbcdf
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/build-*/
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..2ce49fb
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,20 @@
+ARDMK_DIR = /home/dakkar/src/Arduino-Makefile
+ARDUINO_DIR = /usr/share/arduino
+AVR_TOOLS_DIR = /usr
+AVRDUDE = /usr/bin/avrdude
+MONITOR_PORT = /dev/ttyACM*
+CURRENT_DIR = $(basename $(CURDIR))
+
+
+PROJECT_DIR = $(CURDIR)
+BOARD_TAG = uno
+MONITOR_BAUDRATE = 115200
+
+CFLAGS_STD = -std=gnu11
+CXXFLAGS_STD = -std=gnu++11
+CXXFLAGS += -pedantic -Wall -Wextra
+
+include $(ARDMK_DIR)/Arduino.mk
+
+check-syntax:
+ $(CXX) -c -include Arduino.h -x c++ $(CXXFLAGS) $(CPPFLAGS) -fsyntax-only $(CHK_SOURCES)