makefile clarifications

master
ugrnm 5 years ago
parent 8817b8f67b
commit 5d6d21787d

@ -0,0 +1,14 @@
This is a bare Makefile project sample to work with ino files, and makes use
of the arduino-make/arduino-mk Makefile framework that aims to provide all of
the IDE functionalities but via a Makefile.
See https://github.com/sudar/Arduino-Makefile
Once installed you need to set at least these two env variables to be able to
use the Makefile:
export ARDUINO_DIR=/usr/share/arduino
export ARDMK_DIR=/usr/share/arduino
Adjust to reflect your own paths! Put that in your shell rc!

@ -0,0 +1,11 @@
You don't need the Arduino IDE, you can simply use a Makefile and write your
C code as long as you have avr-gcc, avr-libc and avrdude installed!
make # compile and generate main.hex
make flash # flash it to the Arduino nano
CAUTION: This makefile is for getting started with bare/from-scratch
development, you still need to link extra stuff yourself and take into
account header files if you want to make use of some of Arduino's
libs and whatnot. If you want a Makefile that comes with batteries included
check the arduino-make folder.

@ -1,6 +0,0 @@
You don't need the Arduino IDE, you can simply use a Makefile and write your
C code as long as you have avr-gcc, avr-libc and avrdude installed!
make # compile and generate main.hex
make flash # flash it to the Arduino nano
Loading…
Cancel
Save