From a43ed8cc544eefd47366fc07f20138610f891e94 Mon Sep 17 00:00:00 2001 From: dakkar Date: Fri, 29 Apr 2016 17:50:09 +0100 Subject: use Arduino-Makefile --- .gitignore | 1 + Makefile | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile 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) -- cgit v1.2.3