Skip to content

Instantly share code, notes, and snippets.

@luisfmcalado
Last active October 16, 2017 08:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luisfmcalado/fe00552f44975f99711c4b3d3169f65e to your computer and use it in GitHub Desktop.
Save luisfmcalado/fe00552f44975f99711c4b3d3169f65e to your computer and use it in GitHub Desktop.
makefile-blink.make
all:
avr-gcc -g -Os -mmcu=atmega328p -c blink.c
avr-gcc -g -mmcu=atmega328p -o blink.elf blink.o
avr-objcopy -j .text -j .data -O ihex blink.elf blink.hex
clean:
rm *.o *.elf *.hex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment