diff options
| author | Sudar <sudar@sudarmuthu.com> | 2014-08-14 14:59:44 +0530 |
|---|---|---|
| committer | Sudar <sudar@sudarmuthu.com> | 2014-08-14 14:59:44 +0530 |
| commit | e17b2a4781d661246a44f14b4096cf2e19eefafd (patch) | |
| tree | e5a1b3be9e502995c8173e5bbe6e8b891db7c89d /examples | |
| parent | 9bef267f62f7399e2bb1114cb1ac4f206e1ead89 (diff) | |
| parent | 51e65b0a081411c57cce77c043f88ea266713417 (diff) | |
Merge pull request #234 from WeAreLeka/std-flags
CFLAGS_STD and CXXFLAGS_STD
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/MakefileExample/Makefile-example.mk | 33 |
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 |
