Skip to content

Instantly share code, notes, and snippets.

# Name: Makefile
# Author: Dragan Marjanovic
# Based on https://github.com/obdev/CrossPack-AVR/
DEVICE = atmega324a
CLOCK = 8000000
PROGRAMMER = -c avrispmkii
OBJECTS = project.o
AVRDUDE = avrdude $(PROGRAMMER) -p m324pa -F -B10
COMPILE = avr-gcc -Wall -Os -std=gnu99 -DF_CPU=$(CLOCK) -mmcu=$(DEVICE)