diff options
| author | tinyladi <ladislas@weareleka.com> | 2014-02-27 20:57:43 +0100 |
|---|---|---|
| committer | Sudar <sudar@sudarmuthu.com> | 2014-03-06 22:48:25 +0530 |
| commit | 668a4470548514b96311a976d6b3527a5a532f38 (patch) | |
| tree | e45032468a167083514036619242e765006d2a7e /examples/MakefileExample | |
| parent | f62b5838df23c73fb12f8b39e276de18c57e1d38 (diff) | |
Add a reference makefile, with real-world example
Diffstat (limited to 'examples/MakefileExample')
| -rw-r--r-- | examples/MakefileExample/Makefile-example.mk | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/examples/MakefileExample/Makefile-example.mk b/examples/MakefileExample/Makefile-example.mk new file mode 100644 index 0000000..8d64a83 --- /dev/null +++ b/examples/MakefileExample/Makefile-example.mk @@ -0,0 +1,55 @@ +### 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 + +### PROJECT_DIR +### This is the path to where you have created/cloned your project +PROJECT_DIR = /Users/Ladislas/dev/leka/moti + +### ARDMK_DIR +### Path to the Arduino-Makefile directory. +ARDMK_DIR = $(PROJECT_DIR)/arduino-mk + +### ARDUINO_DIR +### Path to the Arduino application and ressources directory. +ARDUINO_DIR = /Applications/Arduino.app/Contents/Resources/Java + +### USER_LIB_PATH +### Path to where the your project's libraries are stored. +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 + +### 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. +AVR_TOOLS_DIR = /usr/local + +### AVRDDUDE +### Path to avrdude directory. +AVRDDUDE = /usr/local/bin/avrdude + +### CPPFLAGS +### Flags you might want to set for debugging purpose. Comment to stop. +CPPFLAGS = -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 = $(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. +include $(ARDMK_DIR)/Arduino.mk + |
