aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/MakefileExample/Makefile-example.mk33
1 files changed, 26 insertions, 7 deletions
diff --git a/examples/MakefileExample/Makefile-example.mk b/examples/MakefileExample/Makefile-example.mk
index 8d64a83..964f9de 100644
--- a/examples/MakefileExample/Makefile-example.mk
+++ b/examples/MakefileExample/Makefile-example.mk
@@ -2,26 +2,30 @@
### This is an example Makefile and it MUST be configured to suit your needs.
### For detailled explanations about all the avalaible options,
### please refer to https://github.com/sudar/Arduino-Makefile/blob/master/arduino-mk-vars.md
+### Original project where this Makefile comes from: https://github.com/WeAreLeka/Bare-Arduino-Project
### PROJECT_DIR
### This is the path to where you have created/cloned your project
-PROJECT_DIR = /Users/Ladislas/dev/leka/moti
+PROJECT_DIR = /Users/MyUserName/path/to/my/Project
### ARDMK_DIR
### Path to the Arduino-Makefile directory.
-ARDMK_DIR = $(PROJECT_DIR)/arduino-mk
+ARDMK_DIR = $(PROJECT_DIR)/Arduino-Makefile
### ARDUINO_DIR
### Path to the Arduino application and ressources directory.
+### On OS X:
ARDUINO_DIR = /Applications/Arduino.app/Contents/Resources/Java
+### or on Linux: (remove the one you don't want)
+ARDUINO_DIR = /usr/share/arduino
### USER_LIB_PATH
### Path to where the your project's libraries are stored.
-USER_LIB_PATH := $(PROJECT_DIR)/lib
+USER_LIB_PATH := $(PROJECT_DIR)/lib
### BOARD_TAG
### It must be set to the board you are currently using. (i.e uno, mega2560, etc.)
-BOARD_TAG = mega2560
+BOARD_TAG = uno
### MONITOR_BAUDRATE
### It must be set to Serial baudrate value you are using.
@@ -29,21 +33,36 @@ MONITOR_BAUDRATE = 115200
### AVR_TOOLS_DIR
### Path to the AVR tools directory such as avr-gcc, avr-g++, etc.
+### On OS X with `homebrew`:
AVR_TOOLS_DIR = /usr/local
+### or on Linux: (remove the one you don't want)
+AVR_TOOLS_DIR = /usr/bin
### AVRDDUDE
### Path to avrdude directory.
+### On OS X with `homebrew`:
AVRDDUDE = /usr/local/bin/avrdude
+### or on Linux: (remove the one you don't want)
+AVRDDUDE = /usr/bin/avrdude
-### CPPFLAGS
+### CFLAGS_STD
+### Set the C standard to be used during compilation. Documentation (https://github.com/WeAreLeka/Arduino-Makefile/blob/std-flags/arduino-mk-vars.md#cflags_std)
+CFLAGS_STD = -std=gnu11
+
+### CXXFLAGS_STD
+### Set the C++ standard to be used during compilation. Documentation (https://github.com/WeAreLeka/Arduino-Makefile/blob/std-flags/arduino-mk-vars.md#cxxflags_std)
+CXXFLAGS_STD = -std=gnu++11
+
+### CXXFLAGS
### Flags you might want to set for debugging purpose. Comment to stop.
-CPPFLAGS = -pedantic -Wall -Wextra
+CXXFLAGS += -pedantic -Wall -Wextra
### MONITOR_PORT
### The port your board is connected to. Using an '*' tries all the ports and finds the right one.
MONITOR_PORT = /dev/tty.usbmodem*
-### don't touch this
+### CURRENT_DIR
+### Do not touch - used for binaries path
CURRENT_DIR = $(shell basename $(CURDIR))
### OBJDIR