1. You can build standalone Arduino library for use in your projects without
need to use Arduino IDE and Arduino language.
AVR GCC and avr-binutils must be installed and accessible through PATH.
2. Before using you have to build the library for specific Arduino platform.
Set ARCH variable to the specific platform for which you are going to build the
library. The currently supported platforms are mega and nano. So if you want to
build Arduino library for Arduino Nano you have to use:
make ARCH=nano
The built library is put in lib/$(ARCH)/libarduino.a.
3. To generate new project you have to use:
make new-project ARCH=mini DESTDIR=~/work/myprj
Links
https://www.arduino.cc/en/Hacking/PinMapping168