diff options
author | dakkar <dakkar@thenautilus.net> | 2016-04-29 17:50:09 +0100 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2016-04-29 17:50:09 +0100 |
commit | a43ed8cc544eefd47366fc07f20138610f891e94 (patch) | |
tree | 551851e1c4ec2aaeea08edcc6e222f99a113dc28 | |
parent | start using a vcs (diff) | |
download | keepon-eeg-a43ed8cc544eefd47366fc07f20138610f891e94.tar.gz keepon-eeg-a43ed8cc544eefd47366fc07f20138610f891e94.tar.bz2 keepon-eeg-a43ed8cc544eefd47366fc07f20138610f891e94.zip |
use Arduino-Makefile
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile | 20 |
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) |