2014-02-27 20:57:43 +01:00
### DISCLAIMER
### 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
2014-08-13 11:16:16 +02:00
### Original project where this Makefile comes from: https://github.com/WeAreLeka/Bare-Arduino-Project
2014-02-27 20:57:43 +01:00
### PROJECT_DIR
### This is the path to where you have created/cloned your project
2014-08-13 11:16:16 +02:00
PROJECT_DIR = /Users/MyUserName/path/to/my/Project
2014-02-27 20:57:43 +01:00
### ARDMK_DIR
### Path to the Arduino-Makefile directory.
2014-08-13 11:16:16 +02:00
ARDMK_DIR = $( PROJECT_DIR) /Arduino-Makefile
2014-02-27 20:57:43 +01:00
### ARDUINO_DIR
### Path to the Arduino application and ressources directory.
2014-08-13 11:16:16 +02:00
### On OS X:
2014-02-27 20:57:43 +01:00
ARDUINO_DIR = /Applications/Arduino.app/Contents/Resources/Java
2014-08-13 11:16:16 +02:00
### or on Linux: (remove the one you don't want)
ARDUINO_DIR = /usr/share/arduino
2014-02-27 20:57:43 +01:00
### USER_LIB_PATH
### Path to where the your project's libraries are stored.
2014-08-13 11:16:16 +02:00
USER_LIB_PATH := $( PROJECT_DIR) /lib
2014-02-27 20:57:43 +01:00
### BOARD_TAG
### It must be set to the board you are currently using. (i.e uno, mega2560, etc.)
2014-08-13 11:16:16 +02:00
BOARD_TAG = uno
2014-02-27 20:57:43 +01:00
### MONITOR_BAUDRATE
### It must be set to Serial baudrate value you are using.
MONITOR_BAUDRATE = 115200
### AVR_TOOLS_DIR
### Path to the AVR tools directory such as avr-gcc, avr-g++, etc.
2014-08-13 11:16:16 +02:00
### On OS X with `homebrew`:
2014-02-27 20:57:43 +01:00
AVR_TOOLS_DIR = /usr/local
2014-08-13 11:16:16 +02:00
### or on Linux: (remove the one you don't want)
2014-08-14 18:14:40 +02:00
AVR_TOOLS_DIR = /usr
2014-02-27 20:57:43 +01:00
### AVRDDUDE
### Path to avrdude directory.
2014-08-13 11:16:16 +02:00
### On OS X with `homebrew`:
2014-02-27 20:57:43 +01:00
AVRDDUDE = /usr/local/bin/avrdude
2014-08-13 11:16:16 +02:00
### or on Linux: (remove the one you don't want)
AVRDDUDE = /usr/bin/avrdude
2014-02-27 20:57:43 +01:00
2014-08-13 11:16:16 +02:00
### 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
2014-02-27 20:57:43 +01:00
### Flags you might want to set for debugging purpose. Comment to stop.
2014-08-13 11:16:16 +02:00
CXXFLAGS += -pedantic -Wall -Wextra
2014-02-27 20:57:43 +01:00
### 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*
2014-08-13 11:16:16 +02:00
### CURRENT_DIR
### Do not touch - used for binaries path
2014-02-27 20:57:43 +01:00
CURRENT_DIR = $( shell basename $( CURDIR) )
### OBJDIR
### This is were you put the binaries you just compile using 'make'
OBJDIR = $( PROJECT_DIR) /bin/$( BOARD_TAG) /$( CURRENT_DIR)
### path to Arduino.mk, inside the ARDMK_DIR, don't touch.
i n c l u d e $( ARDMK_DIR ) / A r d u i n o . m k