One Makefile to rule them all, One Makefile to find them, One Makefile to bring them all, and in the darkness bind them
A generic makefile, tuned for:
- Microchip/Atmel AVR microcontrollers (default)
- STM32 ARM microcontrollers (e.g. F103, L031, ...)
- Give a name to the project changing
PROJ_NAME
. This will be the name of the binary output too. - Add sources (C, C++, assembly) to
SRCS
.
- Choose the target chip and put in
MCU
. - Choose the clock frequency and put in
F_CPU
.
- Comment out all AVR lines inside ARCHITECTURE section.
- Choose the target chip and put in
MCU
. - You may want to download or write your own startup file, then add it to
SRCS
. - Download/write an appropriate linker script and add to
LDSCRIPT
.