diff options
| author | Sudar Muthu <sudar@sudarmuthu.com> | 2015-02-25 14:56:02 +0530 |
|---|---|---|
| committer | Sudar Muthu <sudar@sudarmuthu.com> | 2015-02-25 14:56:02 +0530 |
| commit | dddce32ef8ca82a58cae3f7f006eb0436d275ef3 (patch) | |
| tree | 324ebb13a25c237930449392ee7e6130dcdf7aeb | |
| parent | d535bf5fde2d49b190913e858ce644c1a50c3c40 (diff) | |
| parent | 1ec5e6c2530efa0bce3d96efc8d3dce9612086f5 (diff) | |
Merge pull request #321 from fbielejec/master
instructions on setting CodeBlocks IDE to use the makefiles
| -rw-r--r-- | README.md | 42 |
1 files changed, 42 insertions, 0 deletions
@@ -262,6 +262,48 @@ Then, the following line must be added to the project Makefile : $(CXX) -c -include Arduino.h -x c++ $(CXXFLAGS) $(CPPFLAGS) -fsyntax-only $(CHK_SOURCES) ``` +### Code:Blocks integration + +In Code:Blocks open Project -> Properties -> Project settings tab -> check "This is custom Makefile". + +Now go to Settings -> Environment -> Environment variables -> Add + +Add three keys with paths as values, using full paths (!): + +``` +ARDUINO_DIR=/full/path/to/arduino-1.0.6 +ARDMK_DIR=/full/path/to/sketchbook +AVR_TOOLS_DIR=/usr +``` + +Now to set DEBUG target (this will compile the project) go to Build options -> Debug -> "Make" commands + +In Build Project/Target remove $target: + +``` +$make -f $makefile +``` + +In Clean Project/Target remove $target: + +``` +$make -f $makefile clean +``` + +To set the RELEASE target (which will compile and upload) go to Build options -> Release -> "Make" commands + +In Build Project/Target put: + +``` +$make -f $makefile upload +``` + +In Clean Project/Target remove $target: + +``` +$make -f $makefile clean +``` + ## Test Suite This project includes a suite of example Makefiles and small Arduino and chipKIT |
